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
 
                                           

"bump_map{ ... }" - Images for Normal Patterns


Example of 'bump_map{...}':


Sample image_map 600x450

sphere{<0,0,0>, 1
  texture{
   pigment{ color rgb<0.7,0.65,0.5>  }
    normal {
     bump_map{
     // mapps an image on the xy plane
     // from <0,0,0> to <1,1,0>
     // (aspect ratio 1:1)
     image_map{ png "plasma3.png"
     // imagetype "file name" - Path + .tga etc.
     // accepted types of images:
     // gif, tga, iff, ppm, pgm, png, jpeg, tiff, sys
     map_type 0 // 0=planar, 1=spherical, 2=cylindrical, 5=torus
     interpolate 2
     //  0=none, 1=linear, 2=bilinear, 4=normalized distance
   //once // optional
   //use_color //
     bump_size 10
       } // end of bump_map,
    translate<-0.5,-0.5,0>
    rotate<0,0,-80>
    scale 1.25
    }   // end of normal
   finish { diffuse 0.9 phong 1}// end of finish
   scale <1,1,1;  translate<0,0,0>
  } // end of texture
   translate<0.4,1,0>
} // end of sphere  ----------------------------------------

top

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