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
    - pattern types
     Regular patterns
    - checker, hexagon,
      square, triangular
    - brick
    - object pattern (1)
    - object pattern (2)
    - object pattern (3)
    > tiling
    - pavement
     Stripe patterns
    - color_map{...}
      Patterns by pigments
    - pigment_pattern (1)
    - pigment_pattern (2)
    Patterns Lists
    - Regular Patterns
    - Random Patterns
    - Fractal Patterns
    - Other Patterns
    Warps
    - warp mapping
    uv_mapping
    Mapping
    Superpositions

    Your own Textures
 
                                           
Regular Patterns: tiling - New in POV-Ray 3.7

tiling = tiling with 24 different classical patterns in the x-z plane.
            (original field lenght and width: 1 unit)
Example:
box{ <0,0,0>,<1,1,1>
     texture {
        pigment{
           tiling 5 // 1~24 Pattern_Number
              color_map{
                [ 0.0 color rgb<1,1,1>]
                [ 1.0 color rgb<0,0,0>]
                } // end color_map
           scale 0.15
         } // end pigment
        finish { phong 1}
      } // end of texture
   } // end of box


tiling patterns:A choice between 24 different tiling patterns.
Used with the last example:
     color_map{ [ 0.00 color rgb<0.50, 0.80, 0.00> ]
                [ 0.02 color rgb<1.00, 0.80, 0.00> ]
                [ 0.05 color rgb<0.00, 0.00, 0.00> ]
                [ 0.25 color rgb<0.00, 0.00, 0.00> ]
                [ 0.50 color rgb<1.00, 1.00, 1.00> ]
                [ 0.52 color rgb<0.00, 0.00, 0.00> ]
                [ 0.55 color rgb<1.00, 0.50, 0.00> ]
                [ 0.65 color rgb<1.00, 1.00, 0.00> ]
                [ 0.67 color rgb<1.00, 1.00, 0.00> ]
                [ 0.71 color rgb<0.00, 1.00, 0.00> ]
                [ 0.75 color rgb<0.00, 0.00, 0.00> ]
                [ 1.00 color rgb<0.00, 1.00, 1.00> ]
              } // end color_map 

'tiling' and 'frequency'
An interesting effect together with frequency:
#declare Pigment_1 =
   pigment{
      tiling 6 // 1~24 Pattern_Number
      color_map{
         [0.0 color rgb<0,0,0>]
         [0.4 color rgb<1,0,0>]
         [1.0 color rgb<0,0,0>]
       } // end color_map
      rotate<-90,0,0>
      frequency 5
      scale<0.05,0.25,1>*0.5
    } // end pigment
//------------------------------------
torus{ 1, 0.333
  texture { uv_mapping
     pigment{ uv_mapping Pigment_1 }
     finish { phong 0.1}
  } // end of texture
translate<0.5,0.75,0.5>
} // end of torus --------------------
Sample uv_mapping on a torus
uv_mapping on a torus without frequency
Sample uv_mapping on a torus
uv_mapping on a torus with frequency 5
top
© Friedrich A. Lohmüller, 2010
www.f-lohmueller.de