Jump to content
  • Advertisement
Sign in to follow this  
Astrof

OpenGL Simple (2D) Particle Fire using OpenGL?

This topic is 3633 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

Ok, so i'm a noob at OpenGL but was wondering how to create the illusion of fire (in 2D) in OpenGL. I only recently picked up C++ and only recently started using OpenGL with SDL. My biggest question is how do you create the fire shap (IE like a cone or something, ) and how do you get the colors (Like red on outside, white on inside). I know I have to you additive blending, but I do not know what color combination will produce this. (I tried something but all I got was red and white). The particle stuff is for a 2D spaceshooter and is mostly for fire trails on the ships, projectiles, etc and I also want to eventually create explosions.

Share this post


Link to post
Share on other sites
Advertisement
ok, so i kinda got some kind of fire working, however, I do not know how to rotate it properly (like in asteroids the tail). So I figured out how to rotate the ship image, but I can't figure out how to position the particles in the proper spot without them getting "crooked"
I don't know if I'm making any sense..... I would show pics, is there any way to add attachments?

Share this post


Link to post
Share on other sites
You can link to uploaded images, I believe.

Are you having trouble rotating the particles, or are you having trouble finding the point where they should be emitted?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!