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

"normal_map" textures "material_map"

Surface Design by "texture"

"average "- Weighted average for normal, pigment and texture

The Syntax of "average" is similar to this of "color_map", "pigment_map" etc.
But: The first values behind the "["-brakets have the meaning of factors of how much of this is to apply! According to this factors the listed pigments and patterns are averaged! "average" can be used with pigment_map as well as with normal_map or texture_map in the according way.

Sample "average" with "pigment-map" :


Sample average 640x480

sphere{<0,0,0>,0.8 scale <1.5,1,1>  translate<0.2,1.1,0>
       texture{
         pigment {average turbulence 0.75
                  pigment_map{
                   [3 color Yellow] // Gewichtung, Pigment
                   [3 Candy_Cane translate<-10,-10,-10> ]
                   [5 color Clear ]
                           } // end of pigment_map
                  scale 0.5 } // end of pigment
        finish  {ambient 0.1 diffuse 0.9 phong 0.5}
              } // end of texture
      interior{ caustics 0.5 }
      clipped_by{sphere{< 0.5,1,0.5>,1.25}}
    }// end of sphere ------------------------------

Sample "average" with "texture-map" :


Sample average 640x480

sphere{<0,0,0>,1.0 scale <1,0.8,1>  translate<0,1.5,0>
       texture{ average turbulence 0.75
                texture_map{
                 [5 Peel scale 0.25 translate<-30,-30,-30> ]
                 [1 Polished_Chrome
normal{bumps 1.5 scale 0.05} ] [3 pigment{color rgb<1,0.8,0> filter 0.7} finish {ambient 0.1 diffuse 0.9 phong 0.5}] } // end of texture_map scale 1.5} // end of texture } // end of sphere -------------------------------------


"normal_map" textures "material_map"

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