3D Engine like "Descent" Game

Game development specific discussions.
Post Reply
jepalza
Posts: 149
Joined: Feb 24, 2010 10:08
Location: Spain (Bilbao)

3D Engine like "Descent" Game

Post by jepalza »

Autor original:
CUBES6 Engine by John Wilbert Villamor ("Jobert14")
Copyleft (<) 2008 - 2011 Crap Systems Inc.

I found this little 3D engine "similar" to the "Descent" game engine, several years ago in a forum of the extinct QB64, but it was not until today that I decided to convert to FreeBasic.

Based on an idea of the author of "Duke Nukem", Ken Silverman called "CUBES5" ( http://advsys.net/ken/download.htm ), but with an extra degree of movement (6DOF) and now called CUBES6 instead of CUBES5.

I have converted it as much as possible to FB with the use of OpenGL.
The mouse movement is not perfect, it has some glitches, but it does the job.
I have changed the keys of the real time editing mode of blocks and textures, to accommodate my taste, but it is easy to adapt.
As I have already indicated in other occasions, I don't speak or write English, I do what I can, that's why the texts are in Spanish, sorry for this. I always need the help of "Online" translators.

Maybe someone will get a better mouse control or incorporate improvements to the engine, and we can make a FB-Descent game ;-)

I make use of the "consoleprint" and "createtext" routines taken from somewhere in this forum, with some small changes needed.



Since the original QB64 forum does not exist, thanks to "archive.org" we can see the copy saved in 2011.
https://web.archive.org/web/20210414082 ... ic_4362-0/

And interestingly enough, the original download is still active!!!!
http://www.mediafire.com/?h76vdghihsmrge2


Cogerlo de mi "Google Drive":
https://drive.google.com/file/d/1DQrpJu ... share_link


Image


Translated with www.DeepL.com/Translator (free version)
jepalza
Posts: 149
Joined: Feb 24, 2010 10:08
Location: Spain (Bilbao)

Re: 3D Engine like "Descent" Game

Post by jepalza »

I leave an image of the system of movements and order of creation of faces in the cube, since it is difficult to interpret.
The cubes are created with the faces in the order that I indicate in the drawing, being the face n2 the one of the front.
traduccion:
der(derecha)=right
izq(izquierda)=left
arriba=up
retroceder=go back
andar adelante=go ahead

Also, a comment (see drawing) about the textures that I have left in the file.
When I converted the original PCX files, I didn't convert correctly and I converted them to half the scale, and with only 16 colors.
I didn't see the error until late in the conversion, but I left them that way, because it was enough to work with.


Image
D.J.Peters
Posts: 8588
Joined: May 28, 2005 3:28
Contact:

Re: 3D Engine like "Descent" Game

Post by D.J.Peters »

Again I fixed some stuff for 32/64-bit targets and renamed some vars look for "' !!!" and I added some WITH / END WITH blocks.

download: FB_Cubes6.zip (note I used .zip not .rar)

Joshy
jepalza
Posts: 149
Joined: Feb 24, 2010 10:08
Location: Spain (Bilbao)

Re: 3D Engine like "Descent" Game

Post by jepalza »

Thanks for the corrections.

When I work, I do it "too fast" thinking only about functionality, not optimization. That's why a lot of my code has "bugs".

As for FB32/64, sorry to say it, but I "hate" :twisted: Win64, I ONLY works with Win7 x32, and then run it in Win10 x64, but always using only FB32, I NEVER USE FB64 (let's say I'm too anchored to the past, to the 8bits :oops: )
D.J.Peters
Posts: 8588
Joined: May 28, 2005 3:28
Contact:

Re: 3D Engine like "Descent" Game

Post by D.J.Peters »

OpenGL handles/names (for textures etc.) are not pointers 32/64-bit this are 32-bit only so you have to use "ulong" or better "gluint" NOT INTEGER
and RGBA pixels in FreeBASIC and OpenGL are only 32-bit also use "ulong" NOT INTEGER

Thats all 32 vs 64-bit targets.

Joshy
Post Reply