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 (3) by using textures
#declare My_Pattern_Object =
text{ ttf "arialbd.ttf",
      "POV-Ray", 0.105, 0
      scale<0.8,1.25,1>*0.5
      rotate<0,0,20>
      translate<0.30,0.05,-0.025>
      } // end of text object -----------
//---------------------------------------
#declare Outside_Texture =
texture{ pigment{ Candy_Cane
                  scale <-1,1,1>*0.1 }
         normal { bumps 0.45 scale 0.05 }
         finish { specular 0.6 }
       } //------------------------------
#declare Inside_Texture =
texture{ Polished_Chrome
         normal { bumps 0.35 scale 0.05 }
       } //------------------------------
//---------------------------------------
object{ Round_Box(<0,0,0>,<2,1,1>,0.1,0)
   texture{
   object {
          My_Pattern_Object
          texture{ Outside_Texture}
          texture{ Inside_Texture }
       } // end pattern object
      // optional texture modifiers:
      //turbulence <0.1,0,0>
    } // end texture

  rotate <0,30,0>
  translate <-1,0.5,0>
} // end box
//---------------------------------------
POV-Ray scene file:  Object_Pattern_with_Textures_1.pov
Object with base texture
An object with a basic texture.
Object for Object Pattern
The text used here as pattern.
Object Test for Object Pattern
Test, if the pattern object hits the right place.
Object with Object Pattern texture
Applied object pattern texture
top
© Friedrich A. Lohmüller, 2013
www.f-lohmueller.de