PDA

View Full Version : Alpha Blending



ViolentHamster
03-05-2012, 03:53 PM
I'm trying to use additive blending on a bunch of fire particles. The fire particles are using a texture with no alpha. It works really well when the background is black. However, when the background is a light color, the fire particles blend with the background color and I end up with a white fire.

How do I fix this? I like the additive blending when the fire goes from red to orange to yellow to white at the core.

ViolentHamster
03-05-2012, 07:47 PM
This poster had the same problem. http://gamedev.stackexchange.com/questio...g-and-particles (http://gamedev.stackexchange.com/questions/22989/how-can-i-achieve-a-good-fire-effect-with-alpha-blending-and-particles)

ZbuffeR
03-06-2012, 06:34 AM
Have you ever watched real fire over a bright white background ? It is just white.

ViolentHamster
03-06-2012, 07:07 AM
No, I've never seen a completely white fire.

ZbuffeR
03-06-2012, 07:25 AM
Because background in your chimney is dark.
Try over snow on a sunny day.

Kopelrativ
03-06-2012, 08:34 AM
But then, who wants realistic effects? We want impressive effects :-)

For some reference, see http://www.youtube.com/watch?v=ellRP5pYibs
The clip contains a nice daylight firework, including explosives with lot of fire.

ZbuffeR
03-07-2012, 06:05 AM
Nice smoke !