Previous:Starting With a Simple Rainbow   Main Index   Next:Using a Rainbow Arc



Increasing the Rainbow's Translucency

The result we have so far looks much too bright. Just reducing the rainbow's color helps but it's much better to increase the translucency of the rainbow because it is more realistic if the background is visible through the rainbow.

We can use the transmittance channel of the colors in the color map to specify a minimum translucency, just like we did with the fog. To get realistic results we have to use very large transmittance values as you can see in the following example (rainbow2.pov).

  rainbow {

    angle 42.5

    width 5

    distance 1.0e7

    direction <-0.2, -0.2, 1>

    jitter 0.01

    color_map {

      [0.000  color r_violet1 transmit 0.98]

      [0.100  color r_violet2 transmit 0.96]

      [0.214  color r_indigo  transmit 0.94]

      [0.328  color r_blue    transmit 0.92]

      [0.442  color r_cyan    transmit 0.90]

      [0.556  color r_green   transmit 0.92]

      [0.670  color r_yellow  transmit 0.94]

      [0.784  color r_orange  transmit 0.96]

      [0.900  color r_red1    transmit 0.98]

    }

  }

The transmittance values increase at the outer bands of the rainbow to make it softly blend into the background.

A much more realistic rainbow.

The resulting image looks much more realistic than our first rainbow.



Previous:Starting With a Simple Rainbow   Main Index   Next:Using a Rainbow Arc