Game Development Community

Blending particles with fog

by Thomas Bang · in Arcane FX (Public) · 11/21/2011 (3:23 am) · 2 replies

Hi

I should ask in the TGEA-Forum, but i guess, i get a better answer here.

Engine: TGEA182.

Problem: Particles do not blend with the fog (from the sky-object).

Is there a solution?

Thanks

#1
11/22/2011 (8:21 am)
As far as I know, none of the Torque engines blend fog with particles. In TGEA 1.8.2, particles are rendered via fixed-function so you would have to go into the particle rendering code and make changes to mix in a fog color. An alternative solution might be to customize the particle rendering to fade based on camera distance. You might then be able to tweak the distance-fading based on fog settings to get a reasonable result. I imagine that it would probably be rather expensive to fog the particles on a per-particle basis. You might have to apply it to the particle system as a whole.
#2
11/23/2011 (11:59 pm)
Oh, bad news. I have to find a workaround.

Anyway! Thanks.