Black Smoke

I want to do black smoke effect with ParticleSystem. I have not succeed in changing the color to black in the SMOKE example of the jmetest.effects.RenParticleEditor.

If I set the start and end color to black the smoke is completely invisible. Although the background is black, the white grid lines should not be seen through smoke.


I have also tried luck by changing the blend functions, but got only bad results like solid black rectangles with no alpha.

Any ideas?
1 Like

Particles use additive blending by default, which means the particle texture gets "added" onto the existing scene, since black is color 0, 0, 0, it's completely invisible. The only way around this is to make sure the alpha of the smoke is properly set and instead use SRC_ALPHA, ONE_MINUS_SRC_ALPHA as the blending mode for the particles.

1 Like