Skip to main content
gamedev.net
🔒 Locked

Starting a 3D engine..

Started by jho Jun 29, 2000 at 1:35 PM 12 replies 600+ views
Original Post
jho
jho
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?
kill
kill
try nehe''s site.

Screw GDI
jho
jho
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.
drago
drago
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!
The_[PI]_ehT
The_[PI]_ehT
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
ECKILLER
ECKILLER
wouldnt opengl work on CE since opengl in non platfoirm specific???

ECKILLER
ECKILLER
Gladiator
Gladiator
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...
Gladiator
Gladiator
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$
jho
jho
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?

Shannon Barber
Shannon Barber
&ltbig grin>
Dude, you are taking on a freight train while being unable to lift a small honda.

Not that I don''t want you try... I''m sure you''ll learn alot!

If I''m not mistaken, there''s no Dx support for CE yet... or is it just no Dx7?

Getting a pointer to the video ram is a requirement, not a maybe.

Do those suckers use all that bank-switching crap? I bet they do... maybe not though... just writting a blitter could be a *royal* pain...
The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
Muzzafarath
Muzzafarath
>> wouldnt opengl work on CE since opengl in non platfoirm specific??? <<

For OGL to work on a specific platform there has to be an OGL implementation on that perticular platform. Maybe CE doesn't have one (wouldn't surprise me)?

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

You have two drawing surfaces: the primary and the back. Whenever you do any drawing, you draw everything to the back surface, then you copy the back surface to the primary surface. And voíla, you've got double duffering.

- Muzzafarath

Mad House Software
The Field Marshals

Edited by - Muzzafarath on July 2, 2000 5:52:48 AM
I'm reminded of the day my daughter came in, looked over my shoulder at some Perl 4 code, and said, "What is that, swearing?" - Larry Wall
davepermen
davepermen
does anyone know how to draw fast a poligon. I''m interested in the idea, creating a 3d-engine, but first of all you have to draw poligons, and I don''t think it''s just the win GDI, thats so slow...

could you post in here your algorithm to draw a face? perhaps we could find a faster one (perhaps much more fast, about 20fps would be enought, I think)

Other question: Is there a Direct X-like stuff for win CE?
If that's not the help you're after then you're going to have to explain the problem better than what you have. - joanusdmentia
My Page davepermen.net | My Music on Bandcamp and on Soundcloud
Shannon Barber
Shannon Barber
quote:

Other question: Is there a Direct X-like stuff for win CE?


Nope. Well, I suppose a 3rd party engine may exist...

if you want to learn how to create primative engines but a book. "Interactive Computer Graphics: A Top-down approach with OpenGL" by Edward Angel pub by Addison-Wesley ISBN 0-201-85571-2 will get you started.

Edited by - Magmai Kai Holmlor on July 2, 2000 3:49:51 PM
The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara

Topic Locked

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

Sign in to reply to this topic.