Descriptions and Examples for the POV-Ray Raytracer by Friedrich A. Lohmüller
Design of Surfaces by "texture" with POV-Ray -
Deutsch Deutsch
Italiano Italiano
Français français

Home
- POV-Ray Tutorial

  Design of Surfaces
  - Colors and Textures
    Index

    texture Syntax
    Ready-made Textures
    Do-it-yourself Colors
    Patterns
    - pattern types
      Regular patterns
    - checker, hexagon
      square, triangular
    - brick
    - object pattern (1)
    - object pattern (2)
    - object pattern (3)
    - tiling
    - pavement
      Stripes pattern
    - color_map{...}
      Patterns by pigments
    - pigment_pattern (1)
    - pigment_pattern (2)
    - image_pattern
    Patterns Lists
    - Regular Patterns
    - Random Patterns
    - Fractal Patterns
   > Other Patterns
    Warps
    - warp mapping
    uv_mapping
    Mapping
    Superpositions

    Your own Textures
 
                                           

Patterns for 'pigment' and 'normal'

Other Pigment and Normal Patterns

Name

Example

function

#declare Function_1 = function{ pow(sin(y),2) }
pigment{ function{ Function_1 (x,5*y,z) }
         color_map { [0.0 color rgb <1,0.5,0>]
                     [1.0 color rgb <1,1,1>]
                   } // end of color_map
        } // end of pigment
#declare Function_1 = function{ pow(sin(y),2) }
pigment{ color rgb <1,1,1>}
normal { function{ Function_1 (x,4*y,z) }
         bump_size 1 scale 0.5
       } // end of normal

slope

pigment{ slope{ <0, 1,0> , -1.5, 0.35}
         //<direction>[, Lo_slope, Hi_slope ]
         color_map{[0.0 color rgb <0,1,0>]
                   [0.1 color rgb <1,0,0>]
                   [0.2 color rgb <1,1,0>]
                   [1.0 color rgb <1,1,1>]
                  }//end of color_map
        } // end of pigment
pigment{ slope{ <0,-1,0> , 0.0, 0.22}
         // <direction> [, Lo_slope, Hi_slope ]
    //altitude <Alt_Direction>, Lo_alt, Hi_alt
         color_map{[0.0 color rgb<0.2,0.7,0.2>]
                   [0.1 color rgb<0.5, 1, 0.5>]
                   [0.2 color rgb<  1, 1, 0>]
                   [1.0 color rgb<  1, 0, 0>]
                  }//end of color_map
        } // end of pigment

top

© Friedrich A. Lohmüller, 2010
www.f-lohmueller.de