Previous:Setting a Minimum Translucency   Main Index   Next:Adding Some Turbulence to the Fog



Creating a Filtering Fog

The greenish fog we have used so far doesn't filter the light passing through it. All it does is to diminish the light's intensity. We can change this by using a non-zero filter channel in the fog's color (fog3.pov).

  fog {

    distance 150

    color rgbf<0.3, 0.5, 0.2, 1.0>

  }

The filter value determines the amount of light that is filtered by the fog. In our example 100% of the light passing through the fog will be filtered by the fog. If we had used a value of 0.7 only 70% of the light would have been filtered. The remaining 30% would have passed unfiltered.

A filtering fog.

You'll notice that the intensity of the objects in the fog is not only diminished due to the fog's color but that the colors are actually influenced by the fog. The red and especially the blue sphere got a green hue.



Previous:Setting a Minimum Translucency   Main Index   Next:Adding Some Turbulence to the Fog