Page 1 of 1

questions about 3d effects in 2d games

Posted: Mon Sep 27, 2004 8:16 pm
by aszid
3d effects in 2d?

well, i've been messing around with particle emitters, and i've been able to make some very cool effects which i want to impliment in my space shooter.

howerver, i'm a little confused as to how i can do this. I started working with the particle fire demo, and i've re-worked a bunch of the program, but the questions that i haven't be able to find answers for so far are:

- how can i make the 3d world coords relate to 2d screen coords?

- is it possible to change the direction which the particles are emitted? (it seems like they always float up, but i want them to go out evenly in each direction. currently i have adjusted the camera so that it is below the emitter, but then they always move towards the center of the screen)


anyhow, i'm going to keep researching these, but any help would be appreciated... the particle effects i've been playing with so far look incredible, and i'd love to use them for the weapons and explosions in my game.

Posted: Wed Sep 29, 2004 8:39 pm
by aszid
ugh...


well, i guess i'm going to scrap the idea of using particles as effects for my game... at least with the normal particle commands. every attempt i have made to get particles working in my game has resulted in a crash. then i looked into it (quite a bit) and found that sprite3d is not supported when you're using the 3d stuff.

so i guess that idea has been pretty much debunked, so i guess i'll just try to make my own particle engine.

Posted: Wed Sep 29, 2004 9:31 pm
by GreenGiant
As far as I know Sprite3D uses DirectX and the 3D commands use OpenGL, so no I don't think mixing them would work properly.

Posted: Thu Sep 30, 2004 12:38 am
by Kale
...and the 3D commands use OpenGL
On the windows version 3D uses DirectX on Linux it uses OpenGL.