Giving Fire in OpenGL

I want to visualize the effect of fire in OpenGL based on particle modeling. I have hundreds of particles that have position and temperature (and therefore color), as well as with all their other properties. Simple rendering solidSphereusing oversaturation doesn't look very realistic since the particles are too wide. How can I draw fire based on particle information?

+5
source share
2 answers

If you are just trying to create a realistic fire effect, I would use some kind of re-existing library, as recommended in other answers. But it seems to me that you are after a simulation demonstration.

A direct solution that is worth a try can replace your current areas with billboards (that is, a graphic that always faces the camera) that are solid white in the middle and fade to transparent at the edges - obviously, positioning and coloring the images to fit your particles .

, , - 2D-, . OpenGL, ( ) . OpenGL " ".

+5

All Articles