PDA

View Full Version : Qbasic 3D Engine I wrote...


Rider
05-16-2005, 10:54 AM
I have written my very first 3D engine... in Qbasic! It's still very 'young' but so far I got to defining points in actual 3D space and drawing them. Loading external 'models' and outputting the current defined points.

I do need to warn you though, it's pretty lame, maximum dimensions are 20x20x20 and it only uses 15 colors (screen 12 in QB)

it comes with 2 built in demo's and a couple of external models I made to test the parser. I tested the EXE in DOS, win98 and Win2K and it works there, not sure about XP.

You can get it here: REngine Zip (Http://www.aaronmnash.com/3DR/Temp/Rengine.zip)

Comments and critics are highly appreciated http://forums.3drealms.com/ubbthreads/images/graemlins/smile.gif

oh right: !don't expect flashy graphics!

Phait
05-17-2005, 05:43 AM
Oh FFS you didn't even give us HDR! http://forums.3drealms.com/ubbthreads/images/graemlins/tinyted.gif

Haven't looked, but keep going.

ikkejw
05-19-2005, 02:12 PM
I always love QuickBASIC 3D Engines! Too bad it doesn't work on my WinXP.

NetNessie
05-21-2005, 07:58 AM
Worked for me, but I dont have the suitable computer degree to run it correctly, http://forums.3drealms.com/ubbthreads/images/graemlins/tongue.gif

Rider
05-21-2005, 01:15 PM
The program can load any file as "Model" the examples are all in RMD (RiderMoDel http://forums.3drealms.com/ubbthreads/images/graemlins/grin.gif) format and can be loaded from the Main menu by choosing "L" (Load File) and entering the FULL filename, or the complete path if it's not in the current folder.

then choose Display from the MainMenu and you can view them.

To make your own file simply start a new text file. Enter 006 on the first line, this is the current version number of the file. After this you can draw the pixels using this template:

(X Coordinate),(Y Coordinate),(Z Coordinate),(Color)
X,Y and Z coordinates have to be below 20 and above 0 to work correctly.
Color can be 1 through 15 I think there's an executable in the archive that shows all the 15 Qbasic colors.

So one of your lines looks sorta like this: 13,2,19,4
instead of comma's you can also use the end of the line as sepparator.

I'm currently working on a 2D version of this program wich I'll release as soon as it works properly


on another note...

anyone care to see the source? I could upload it but only if people would be interrested to see it http://forums.3drealms.com/ubbthreads/images/graemlins/smile.gif

Dreams
05-22-2005, 03:18 AM
hehe, i also programmed a lot in Qbasic! Until a year ago, then i learned a bit DirectX at school.. but i still use QB for small games and programs.

http://forums.3drealms.com/ubbthreads/images/graemlins/smile.gif