-
3D Fog
I have a 3D scene with multiple flat layers of ‘fog’ offset in 3D. I’d like to have a camera fly through. The problem is when the camera passes through a layer, you see a sudden change, since it stops being shown abrubtly.
Can anyone help me with an expression for each layer’s opacity, it should depend on the camera’s position relative to itself. Say if the camera is 200 pixels away or more, it should be at full opacity (or something I’ll specify later.) But when the camera gets between 200 and 10 pixels away, the layer should fade out accordingly. That way I can fly my camera through and get a pretty realistic fog.
Thanks,
Abraham Perl
TAMotion