Skip to main content
gamedev.net
🔒 Locked

software 3d engines

Started by intellibug Aug 8, 2001 at 3:30 AM 3 replies 1k views
Original Post
intellibug
intellibug
hello forum, i''m currently working on a software 2d/3d engine, which supports rendering through directDraw or a simple backbuffer copied onto a GDI bitmap. what i''ve got so far is: describing triangles/objects in 3d, transforming (translate,rotate,scale)them with matrix math , simple depth sort (buggy, no Z-Buffer), rasterizing plain triangles in different colors, crappy perspective texture-mapping, all in 16bit along with simple colorkeying for simple transparency effect. right now i''m trying to do some shading/lighting, then i will start to optimize the whole thing, because it really gets too slow when rendering more than 50/60 triangles (i think the code can be optimized a lot!). a few questions: is/was someone else of you working on a software engine? where did you have the most troubles(i have a lot :-) )? i cant figue out a good method for clipping. right now im clipping every single pixel, and test every single pixel against the color key, which i guess slows down the engine very much. why are commercial software engines like Unreal,.. so F***ING FAST, i cant believe that they get 30 fps in 800x600 and still look good :-) bye
brettporter
brettporter
There''s a lot of factors. I wouldn''t really like to try my hand at a software renderer these days

If you are serious, I''d go through the Doom src and then the Quake source for the bits you are looking for. Freely available from iD. It''s not so easy on the eye though

~~~
Cheers!
Brett Porter
PortaLib3D : A portable 3D game/demo libary for OpenGL
~~~Cheers!Brett PorterPortaLib3D : A portable 3D game/demo libary for OpenGLCommunity Service Announcement: Read How to ask questions the smart way before posting!
arnero
arnero
Ask nick, who posts at flipcode
kamrann
kamrann
Check out

http://208.55.130.3/3d/techdocs/pipeline.txt

and

http://www.cubic.org/~submissive/sourcerer/3dclip.htm

for the clipping.


Cameron


- could someone let me know how to include links in posts?
thanks

Edited by - kamrann on August 9, 2001 7:35:45 AM

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.