Archived

This topic is now archived and is closed to further replies.

kenjin

blending and particle effects question

Recommended Posts

does anyone know if you can do particle and blending effects toc create fires and such , but can we view these in perspective mode using glLookat ( I want to make this for my game but it seems to turn off whenever I used glLookat. Is it possible, I'' making a space simulator game

Share this post


Link to post
Share on other sites
To do fire effects (additive), just use a GL_ONE, GL_ONE blend function with writing to the depth buffer disabled.

eg:


If you want a smoke effect, use GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA. Your particles will need to be depth sorted first (preferably with a radix sort).

eg:




[edited by - benjamin bunny on May 7, 2003 8:57:25 PM]

Share this post


Link to post
Share on other sites
hey Benjamin Bunny,
Can you send me send a small snippet of your code.
I tried using some laser effects and put it into mycode
but I use gllookat and I don''t know where the laser is.

I know you can do it in perspective but I need a small example.
My frame work for my school game project is Nehe''s space ship game framework. Do I just add it in when I''m drawing the lasers.I know you have to draw it at the right time or somethings don''t show up. Or should I just try to just get a texture up there first.?
if you have any suggestions or small code it''d be great

-Kenjin

Share this post


Link to post
Share on other sites