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

"average" textures "image_map"

Surface Design by "texture"

Mapping of textures by image patterns:

" material_map { ... }"


material_map{ ... }
creates a texture which uses different textures by the color indices of an image
// with color palette (i.e. 256 color gif image)
// in the xy plane from<0,0,0> to <1,1,0> .(Projection parallel in z direction)


Sample "material_map":

Sample material_map 640x480
box {<0,0,0>,< 1,1,1> scale 2 rotate<0,-20,0> translate<-0.5,0,0>
  texture{ material_map {gif "plasma3.gif" // Bilddatei
          // (allowed are: iff, gif, tga, png, sys)
          map_type 0
          // Projection type: 0=planar, 1=spherical, 2=cylindrical, 5=torus
          interpolate 2
          // Interpolation type: 0=none, 1=linear, 2=bilinear,
          // 4=normalized distance
          // [once] // optional -
          texture { EMBWood1 scale 0.3 }// texture for color index # 0
          texture { EMBWood1 scale 0.3 }// texture for color index # 1
          texture { EMBWood1 scale 0.3 }// texture for color index # 2
          texture { Polished_Chrome    }// texture for color index # 3
          texture { Polished_Chrome    }// texture for color index # 4
          texture { Polished_Chrome    }// texture for color index # 5
          texture { pigment {Pine_Wood}}// texture for color index # 6
          texture { pigment {Pine_Wood}}// texture for color index # 7
          texture { pigment {Pine_Wood}}// texture for color index # 8
          texture { pigment {Pine_Wood}}// texture for color index # 9
          texture { pigment {Pine_Wood}}// texture for color index # 10
          texture { pigment {Pine_Wood}}// texture for color index # 11
          texture { pigment {Pine_Wood}}// texture for color index # 12
          texture { pigment {Pine_Wood}}// texture for color index # 13
          texture { pigment {Pine_Wood}}// texture for color index # 14
          texture { pigment {Jade }    }// texture for color index # 15
          // etc. etc. etc. ---
         } // end of material_map
       scale 1
      }// end of texture --------------------------------------------
 }// end of sphere ------------------------------

"average" textures "image_map"

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