Well I've just posted my latest image in the news group that included lots of burning flames, look for "My Basement".
http://news.povray.org/povray.binaries.images/These were done with media, and as media is such a P.I.T.A. I thought I'd post the code here with some info about what its doing. Hopefully anyone reading this will find it helpful.
difference {
sphere { <0,0,0>, 1 }
box { <4,0,4>, <-4,-4,-4> }
hollow
scale <2,20,2>
interior {
media {
intervals 5
samples 5
emission .6
density {
spherical
scale <3,20,3>
warp {
turbulence <.8,.07,.05>
}
density_map {
[0 rgb 0]
[.5 rgb 0]
[.6 rgb Orange]
[.7 color Yellow]
[.8 color Yellow]
[.9 color White]
[1 color White ]
}
}
}
}
texture {
pigment {
Clear
}
}
translate <0,5,0>
}
The Explanation.
I decided to create the burning flame inside a sphere, but as the flame is sitting in a dish in the final scene I used the difference to cut off the bottom of the sphere.
The Object has to be "hollow" to show the media.
The CSG is stretched vertically so that the flame can be tall. Note stretching the containing CSG will not effect the shape of the media!
Intervals and samples are set fairly low to speed rendering, increase these for final render. If you set these lower then the media becomes blocky, as if its made of layers. (YUK!)
emission is set to .6 so that the flames will be transparent, if set to 1 then the flame would appear solid.
The pattern dor the density is "spherical" basicly the overall shape I want is a stretched sphere so that from above the flame is round, and from the side, taller than it is wide.
The sphereical pattern is then stretched up and down to make the flame taller rather than a round ball.
The Warp is used to turbulate the pattern. Without this the media would appear as a perfect ball, that had been stretched by the scale statement above.
The density map is the trick. This defines the colors used in the flame. Density 1 represents the center of the pattern (sphere) and density 0 is outside the ball. Note here the useage of the "rgb 0", this is effectively no color, that is transparent. This is used to prevent the flames reaching the edge of the containg CSG. the flames would be cut off by the edge of CSG, so this needs to be prevented. Alternatively you could scale the pattern down.