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
 
                                           

"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  { 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 ------------------------------

Example "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 { diffuse 0.9 phong 0.5}]
                 } // end of texture_map
                scale 1.5} // end of texture
      } // end of sphere -------------------------------------

top

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