Jump to content
  • Advertisement
Sign in to follow this  
MrDarkKnight

How can i make a better fire effect ?

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

Hello everyone
I made a simple particle engine in sfml and c++ and I want to make a simple fire effect in my particle engine.

this is the best I could do. I used this color (226, 88, 34) http://www.colorcomb.../colors/E49135. I used the image in the attach file and i changed it color in my code. the image is in white and its a circle.

Here is a video that shows the best effect i could do.

[media]
[/media]

Share this post


Link to post
Share on other sites
Advertisement
You definitely want some sort of texturing & blending in there. My fire effect (purely a toy, not designed for any sort of performance) uses a combination of the following:

  • Poisson process for emission
  • Brownian motion-type disturbances to particle motion
  • Particles shrinking as they climb
  • Slight upward acceleration (so you sort of get the effect of little flakes of fuel breaking off and convecting skyward)
  • Random disturbances to the initial parameters of each of these effects (so that e.g. some particles shrink faster than others, live longer, etc)

    Just a few ideas.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!