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
 
                                           
Transparency mapping (2) - Transparency controlled by Patterns -

Example 3: transparent wire-netting.
#declare T_Map = // transparency map --
pigment{
  image_map{ jpeg "Wire_Net_01.jpg"
             interpolate 2 }//
  warp{ cylindrical
        orientation 1 dist_exp 1}//
  scale 0.09 //0.135
} // ----------------------------------
#declare Opaque_Texture   =
texture{ pigment{ color rgb<1,1,1>*.05}
         finish { phong 0.2 }
       } // ---------------------------
#declare Surface_Material  =
material{
  texture{
    pigment_pattern{ T_Map }
    texture_map{
     [0.0 pigment{rgbf<1,1,1,1>}]
     [1.0 Opaque_Texture  ]
    } // end texture_map
  }// end texture
}// end material ----------------------
// ------------------------------------
difference{
 cylinder{<0, 0  ,0>,<0,1.535,0>,0.700}
 cylinder{<0,-0.1,0>,<0,1.536,0>,0.699}
 material{ Surface_Material
           scale <1,3.89,1>
           translate<0,0.015,0>}
 rotate<0,30,0>
} // end of cylinder ------------------
torus{ 0.700, 0.0075
       translate<0,0.005,0>
       texture { Opaque_Texture }
     } //------------------------------
torus{ 0.700, 0.0075
       translate<0,1.535,0>
       texture { Opaque_Texture }
     } //------------------------------

Example trancparency mappping
The image used here as transparency map:
Wire_Net_01.jpg (128x128 pixels)
Example trancparency mappping
POV-Ray scene file: Transparent_Wire_Net_01.pov
needs the above image: Wire_Net_01.jpg ! *)




*) Note: Save the according image files in the same
  subdirectory like the scene files or
  in any other subdirctory in your include file paths.
top

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