questions about 3d effects in 2d games

Advanced game related topics
User avatar
aszid
Enthusiast
Enthusiast
Posts: 162
Joined: Thu May 01, 2003 8:38 pm
Location: California, USA
Contact:

questions about 3d effects in 2d games

Post 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.
--Aszid--

Making crazy people sane, starting tomorrow.
User avatar
aszid
Enthusiast
Enthusiast
Posts: 162
Joined: Thu May 01, 2003 8:38 pm
Location: California, USA
Contact:

Post 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.
--Aszid--

Making crazy people sane, starting tomorrow.
GreenGiant
Enthusiast
Enthusiast
Posts: 252
Joined: Fri Feb 20, 2004 5:43 pm

Post 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.
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

...and the 3D commands use OpenGL
On the windows version 3D uses DirectX on Linux it uses OpenGL.
--Kale

Image
Post Reply