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
 
                                             
  Object Pattern (2)
#declare Pattern_Object_1=
union{
 box{<-7.00,1.35,-1.50>,< 0.78,1.40,1.5>}
 box{<-7.00,1.25,-1.50>,< 0.78,1.30,1.5>}
 text{ ttf "arialbd.ttf","POV-Ray",0.5,0
        matrix<1, 0, 0, //  shear_y_to_x
            0.35, 1, 0,
               0, 0, 1,
               0, 0, 0>
        scale<0.83,0.9,1>
        translate<-5.7,1.6,-1.5>}
 text{ ttf "arialbd.ttf","POV-Ray",0.5,0
        matrix<1, 0, 0, // shear_y_to_x
            0.35, 1, 0,
               0, 0, 1,
               0, 0, 0>
        rotate<0,180,0>
        scale<0.83,0.9,1>
        translate<-2.25,1.6,1.5>}
} // end of union
//---------------------------------------
#declare Object_Pigment_1 =
pigment{
   object {
       Pattern_Object_1
       color rgb<1,0.95,0.75> // outside
       color rgb<0.8,0.15,0>  // inside
      }// object
  } // end pigment
//---------------------------------------
#declare Truck_Texture =
   texture{ pigment{ Object_Pigment_1 }
            finish { phong 1 }
          }
//---------------------------------------
#include "Truck_12.inc"
//---------------------------------------
object{ Truck_12(
           0,// Front wheel angle: ~+/-60
           Truck_Texture
         ) //----------------------------
        scale< 1,1,1>
      //  rotate<0,180,0>
      //  translate<-5.00,0,0.00>
      } //-------------------------------
POV-Ray include file: Street_10.inc
POV-Ray include file: Truck_12.inc
POV-Ray scene file:  Object_Pattern_000.pov
Object for Object Pattern
Decide which part of the space
shall be filled by the inside color.
Object for Object Pattern
Be sure that the object pattern hit
your truck surface at the right places.
Object for Object Pattern
The object pattern applied to a truck
top

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