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: pavement - New in POV-Ray 3.7

pavement = polyform paving the x-z plane.
(original field lenght and width: 1 unit)
Syntax:
pigment {
  pavement
  [ number_of_sides VALUE | number_of_tiles VALUE | pattern VALUE |
    exterior VALUE | interior VALUE | form VALUE |
    PATTERN_MODIFIERS ]
 } // end pigment

number_of_sides: chooses the basic polygon,
3 = equilateral triangle, 4 = square, 6 = hexagon.
number_of_sides 3
number_of_sides 4
number_of_sides 6
Basic example:
box{ <-1,0,-1>,<1,1,1>
     pigment{
         pavement
           number_of_sides 3 //  3 triangle,  4 quadrat, 6 hexagon
           number_of_tiles 1 //  (1 to 5 or 6)
           pattern 1 // from 1 to the maximum relevant VALUE
           // corners:  0 = sharp, 1 = bevelled, 2 = rounded
             exterior 0 // 0, 1 or 2; Not used for hexagon.
             interior 0 // 0, 1 or 2
           form 0//  0, 1, 2
           color_map{ [ 0.00 color rgb<1,1,1>*1 ]
                      [ 0.20 color rgb<1,1,1>*1 ]
                      [ 0.20 color rgb<1,1,1>*0 ]
                      [ 0.40 color rgb<1,1,1>*0 ]
                      [ 0.50 color rgb<1,1,1>*1 ]
                      [ 0.90 color rgb<1,1,1>*0 ]
                      [ 1.00 color rgb<1,1,1>*0 ]
                    } // end color_map
           scale 0.25
        } // end pigment
 } // end of box ------------- }    

The maximum of the number of patterns
depends from number_of_sides and number_of_tiles:
Sides | Tiles: 1   2   3   4   5   6
------------------------------------------
  3   |        1   1   1   3   4   12 
  4   |        1   1   2   5   12  35 
  6   |        1   1   3   7   22   


number_of_sides = 3
Patterns with number_of_tiles = 1, 2, 3 (1st line), 4(2nd line), 5 (3rd line)
Patterns with number_of_tiles = 6

number_of_sides = 4
Patterns with number_of_tiles = 6

number_of_sides = 6
Patterns with number_of_tiles = 5
'interior' and 'exterior' value: for variations of the angle in the corners:
Values: 0 = sharp, 1 = bevelled, 2 = rounded
'form' value: copies the look of 'interior' for some additional variations.
Values: 0, 1, 2


top

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