I’m in the process of creating a bottom-of-the-sea scene with your typical landscape, fish, and wave caustics to show as an effects demo. Currently I’m trying to make the fog look good, but I just can’t cut it! What I’m trying to do is make the fog brighter near the surface of the water, and darker near the bottom as more light gets filtered out.
Here’s my attempts, and how they failed:
Idea 1: Make a regular cube with a 100% transparent material, connect a volumetric fog shader to it, and connect the fog color value to a vertical gradient.
Failure 1: The color is flat & static, can’t be connected to anything
Idea 2: Divide the fog into several layers, so the layers near the surface are given a lighter color and the layers near the bottom are given a darker color. This would produce a somewhat stepped effect, but better than no gradient at all.
failure 2: XSI/mr only sees the first fog. The camera renders the first fog it sees, but not the fogs behind the first fog.
Idea 3: Make a single dark fog, and illuminate it from above with a gradually weakening volumic light.
Failure 3: To create a realistic sunlight-effect the light has to be very far away. Take this, and combine it with the fact that the volumic effect doesn’t use the lights attenuation settings at all (just the exponent), and you just can’t tune the effect to a perceptible gradient. If there was a MAX-style directional light it would be easy, but there isn’t…
I think I had a fourth idea as well, but you get the point. I’d welcome any ideas on how to do something like this.
I also noticed that volumetric effects do not work with implicit objects like the manual says, you need a polygon or NURBS object with a transparent surface. Another thing is that the volumic light shadows do not seem to take into account the transparency of an object, even a 100% transparent object stops the volumic light unless you make it invisible to shadow rays. I find myself somewhat dissapointed here, can someone show me how XSI can do all these, but I just need to check a button somewhere?


