Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Simple (2D) Particle Fire using OpenGL?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 Astrof   Members   -  Reputation: 122

Like
0Likes
Like

Posted 12 October 2008 - 08:24 AM

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.

Sponsor:

#2 Astrof   Members   -  Reputation: 122

Like
0Likes
Like

Posted 14 October 2008 - 03:16 PM

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?

#3 othello   Members   -  Reputation: 100

Like
0Likes
Like

Posted 14 October 2008 - 05:48 PM

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?




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS