Those examples are very challenging because they are volumetric objects, in addition to being dynamic. The flame does not even have a well-defined surface. What you see as red/yellow in the flame is in fact just glowing soot particles, and the point where this disappears is just a temperature difference in the gas such that the soot stops glowing.