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
    Patterns Lists
    Warps
    uv_mapping
    Mapping
    - Mapping Methods
    - color_map{...}
    - pigment_map{...}
   > texture_map{...}
    - normal_map{...}
    - average
    - material_map{...}
    - image_map{...}
    - image_map+gif 1
    - image_map+gif 2
    - image_map+gamma
    - bump_map{ ... }
    - transparency maps 1
    - transparency maps 2
    - transparency maps 3
    Superpositions

    Your own Textures
 
                                           

Mapping - Textures by Patterns.


Example "texture_map{...}" :

Sample 1 texture_map 640x480

#declare Texture_W =
 texture{ pigment{ color White*0.9}
          normal { bumps 1 scale 0.025}
          finish { diffuse 0.9 specular 1}
        } // end of texture
#declare Texture_S =
 texture{ T_Stone10 scale 1
          normal { agate 0.5 scale 0.25}
          finish { diffuse 0.9 phong 1 }
        } // end of texture
//------------------------------------------------------
sphere { <0,0,0>, 1
         texture{ crackle  scale 1.5 turbulence 0.1
           texture_map {[0.00 Texture_W]
                        [0.05 Texture_W]
                        [0.05 Texture_S]
                        [1.00 Texture_S]
                       }// end of texture_map
                   scale 0.2
         } // end of texture ---------------------------
  scale<1,1,1>  rotate<0,0,0>  translate<0.40,1,0>
}  // end of sphere ------------------------------------

Example "texture_map{...}" :

Sample 1 texture_map 640x480

texture{ gradient<0,1,0> scale 0.25 turbulence 0.725
     texture_map{[0.00 pigment{color Red}
                       finish {ambient 0.15 diffuse 0.85 phong 1}]
                 [0.75 pigment{color Yellow}]
                 [0.75 Polished_Chrome
                       normal{ ripples 0.5 scale 0.01} ]
                 [1.00 Polished_Brass ] } // end of texture_map
   }// end of texture ------------------------------------------


Another example "texture_map{...}" :

Sample 2 texture_map 640x480

sphere{<0,0,0>,1 scale <1.2,1,1> translate<0,1.3,0>
     texture{gradient<1,1,0> turbulence 0.4
         texture_map{
            [0.00 Polished_Chrome]
            [0.40 Polished_Chrome
                  normal { bumps 0.75 scale 0.1}]
            [0.60 Polished_Chrome
                  pigment{color rgb<1,0.8,0>}
                  normal {ripples 0.75 turbulence 0.25}
                  finish {ambient 0.15 diffuse 0.85 phong 0.3}]
            [1.00 Polished_Chrome pigment{ color rgb<1,0.8,0>}
                  finish {ambient 0.15 diffuse 0.85 phong 0.3}]
                  } // end of texture_map
            } // end of texture
        }// end of sphere
top

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