Jump to content
  • Advertisement

Archived

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

kenjin

blending and particle effects question

This topic is 5549 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!