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 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)


Example "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 ------------------------------
top

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