Paper burning

Started by
2 comments, last by Rasmadrak 18 years, 8 months ago
Are there any articles on fire effect that burns a paper inside out ? I.e. not the fire effect itself, but the effect of paper burning.
We're doing this for a living, George. We are not amateurs.
Advertisement
Here's a very simple way to simulate that.

Model your paper as a single quad, with 2 textures. 1 texture is the actual paper material itself, and the other texture is an alpha map that with transparency values for each location on the quad.

Initially set the alpha values in the texture to be all 1, so the paper is fully opaque. Then select a location to start a flame. That location on the texture should be given an alpha value of 0, then using some sort of algorithm, simply spread out from that point on the alpha texture and decrement the pixel values by some given amount each frame. This will basically simulate the paper looking like its fading away.

At the same time you can be coloring the corresponding pixels in the paper texture itself. Simply darken each one as you go along the alpha texture.

Author Freeworld3Dhttp://www.freeworld3d.org
Thanks
We're doing this for a living, George. We are not amateurs.
or perhaps use and alpha image with the final burn and use glEnable(GL_ALPHA_TEST); with an increasing value....? :) that way you´d get crisp edges too, and if you want, you could even manipulate the colors of the paper with the burn alpha... i.e transforming the alpha values into colors that is...

peace.
"Game Maker For Life, probably never professional thou." =)

This topic is closed to new replies.

Advertisement