Simple (2D) Particle Fire using OpenGL?
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.
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?
I don't know if I'm making any sense..... I would show pics, is there any way to add attachments?
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?
Are you having trouble rotating the particles, or are you having trouble finding the point where they should be emitted?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement