Previous:Adding the Sun Main Index Next:The Fog

#### Adding Some Clouds

To further improve our image we want to add some clouds by adding a second pigment. This new pigment uses the bozo pattern to create some nice clouds. Since it lays on top of the other pigment it needs some transparent colors in the color map (look at entries 0.5 to 1.0).

      sky_sphere {

        pigment {

          gradient y

          color_map {

            [0.000 0.002 color rgb <1.0, 0.2, 0.0>

                         color rgb <1.0, 0.2, 0.0>]

            [0.002 0.200 color rgb <0.8, 0.1, 0.0>

                         color rgb <0.2, 0.2, 0.3>]

          }

          scale 2

          translate -1

        }

        pigment {

          bozo

          turbulence 0.65

          octaves 6

          omega 0.7

          lambda 2

          color_map {

              [0.0 0.1 color rgb <0.85, 0.85, 0.85>

                       color rgb <0.75, 0.75, 0.75>]

              [0.1 0.5 color rgb <0.75, 0.75, 0.75>

                       color rgbt <1, 1, 1, 1>]

              [0.5 1.0 color rgbt <1, 1, 1, 1>

                       color rgbt <1, 1, 1, 1>]

          }

          scale <0.2, 0.5, 0.2>

        }

        rotate -135*x

      }

A cloudy sky with a setting sun.

The sky sphere has one drawback as you might notice when looking at the final image (`skysph3.pov`). The sun doesn't emit any light and the clouds will not cast any shadows. If you want to have clouds that cast shadows you'll have to use a real, large sphere with an appropriate texture and a light source somewhere outside the sphere.

Previous:Adding the Sun Main Index Next:The Fog