Descriptions and Samples for the POV-Ray Raytracer by Friedrich A. Lohmüller
Français français
Deutsch Deutsch

stripes pattern textures mapping

Surface Design by "texture"

Pattern types:


By using a "color_map", "pigment_map", "texture_map" oder "normal_map" muß the type of pattern has to be defined. Some of the possible patterns are discussed here.
Most of them work for "normal" as well as for colors. These patterns are not like a wallpaper wrapped around a shape. They are three dimensional like the veins in a marble cake or in wood! We can also scale, rotate, translate them in the "pigment" or "texture" bracket .

Turbulence brings live to the colors:

With the additional statement turbulence and values between 0.00 and 1.00 or more we modify each pattern. The attributes of pigment / normal are variable. By this we can get nearly each kind of natural pattern structure, like clouds, wood or marble.


gradient <0,1,,0> this is the direction of the following map.
agate marble granite some stone structures
bozo spotted leopard some spotted patterns
onion each ring is thick one unit
wood as it is called!
mandel 25 in the xy plane, typical values "mandel 10" bis "mandel 256"
spiral1 i.e.: pigment {spiral1 3 color_map{[ ... ] [ ... ] [ ...] } } = Spiral typ1 with 3 arms
spiral2
radial produces radial going stripes around the y axis starting at the x axis
- i.e. with "frequency 3" we can repeat this pattern 3 times each revolution.
Mainly used for "normal{ ... }" are the following patterns:
crackle like a desert floor
dents like a rough stone
ripples a little stone has fallen in the water
quilted
waves
wrinkles
See also
list of pattern types for "pigment" und "normal"
Here a sample for "crackle":

Sample crackle 640x480

// ground ----------------------------------------------------
plane{<0,1,0>, 0
      texture{Polished_Chrome
              pigment{color rgb<1,0.8,0>}
              normal {crackle 0.75 turbulence 0.25 scale 0.25}
              finish {ambient 0.1 diffuse 0.9}}
     }// end of plane
//------------------------------------------------------------

For the texture of the above sphere see here: layered textures



The following sample 1 is also know as "Bright_Blue_Sky" -

sphere{<0,0,0>,1 translate<-1,1,0>
      texture{
        pigment{
           bozo turbulence 0.56
           color_map {
             [0.0 color rgb <0.5, 0.5, 1.0>] //LightBlue
             [0.5 color rgb <0.5, 0.5, 1.0>] //LightBlue
             [0.6 color rgb <1.0, 1.0, 1.0>] //White
             [1.0 color rgb <0.5, 0.5, 0.5>] //Grey
                     } // end of color_map
               } // end of pigment
        finish {ambient 0.15 diffuse 0.85 phong 1}}}
  // end of finish, end of texture, end of sphere
sphere{<0,0,0>,1 translate<1,1,0>
       texture{
         pigment{
           ripples scale 0.5 turbulence 1.5
           color_map {
                  [0.0 color NeonPink ]
                  [0.1 color NeonPink ]
                  [0.5 color Yellow   ]
                  [0.6 color White    ]
                  [1.0 color Gray50   ]
                 } // end of color_map
              } // end of pigment
          normal {wrinkles 0.75 scale 0.1}
          finish {ambient 0.15 diffuse 0.85 phong 1}}}  

Sample color_map 640x480

stripes pattern textures mapping

© Friedrich A. Lohmüller, 2004
email email: (legacy email redacted)
homepage:www.f-lohmueller.de