Starting a 3D engine..

Started by
12 comments, last by jho 23 years, 9 months ago
Can anyone point me to a site that will tell me how to write a 3D engine.. from rastering lines, clipping and transform to 2D viewplane etc. Also, is there a fast way to draw/clear a pixel in windows GDI?
Advertisement
try nehe''s site.

Screw GDI
yeah GDI isn''t worth the wait, er, waste...

well i guess a bit of both...

dave

--
davidw@heehaw.com
neonstar entertainment
--david@neonstar.netneonstar entertainment
Ok, I made a typo.. I meant to ask how to draw a pixel WITHOUT using windows GDI (direct access to video ram?) so I can get faster performance.

Nehe''s site seems to be OpenGL only? I can''t use openGL on the windows CE and that''s why I have to start writing my own.
You should go to FlipCode and go to the Portal Engine series, you should see it in the menu on your left..

----------
Drago, VerSoft
osu!
Well, good luck with writing a 3D Engine on Windows CE, but... do you really think there is any palmtop or anything like that which is fast enough to display 3D Graphics?
If you manage to do it anyway, you may be sure to have my respects!

pi~
Jan PieczkowskiBrainwave Studios
wouldnt opengl work on CE since opengl in non platfoirm specific???

ECKILLER
ECKILLER
Of course there are ways to display 3D graphics under Windows without using the DX.. It wouldn''t be as FAST but it would still have a good frame rate...
The most important thing when working with GDI is to draw your pixels/whatever to a memory DC, and then copy that to the video (using BitBlt())... One way you can do it, is draw on a DIB, which can use your own memory and not a DC, which would be pretty fast, and then you can blit the bitmap to a memory DC, and then to the screen DC.. my 2 $hit$
I''m not exactly going to do this on wimpy palmtops.. I''ll be on something like a hitachi SH-4 powered machine with 640x480. My target fps is 10fps, so I think it''s feasble to at least try. I might try to use the GAPI from CE to do some direct screen memory access.

BTW, how do I implement double buffering while I''m at it?

This topic is closed to new replies.

Advertisement