Descriptions and Examples for the POV-Ray Raytracer by Friedrich A. Lohmüller
    POV-Ray Examples - How To Make Objects for POV-Ray
Italiano Italiano
Français français
Deutsch Deutsch

Home
- POV-Ray Tutorial
  - POV-Ray Examples
   Index of Content
  - Geometry
  - Architecture
    - House
    - Roof
    - Tower
    - Castle
    - Window + Door
    - Stairs
    - Pyramid
    - Columns
    - Arch
    - Fences
    - Furnitur
    - Household
  - Engineering
                                       
 
Fence

Fence

Objects: "box"
Methods: "difference", "layered texture", "macro"
An include file to use this object as a read-made object you can find at my POV-Ray Objects page.
The construction in details:
Two grids, each of them realized by a color_map (thin dark opaque + wide clear transparent), are rotated by 45 degrees and -45 degrees. Then they are layered to a fence grid.
//------------------------ grid macro -----
#macro Raster(RScale, RLine)
pigment{
   gradient x scale RScale
   color_map{[0.000   color rgbt<0,0,0,0>]
             [0+RLine color rgbt<0,0,0,0>]
             [0+RLine color rgbt<1,1,1,1>]
             [1-RLine color rgbt<1,1,1,1>]
             [1-RLine color rgbt<0,0,0,0>]
             [1.000   color rgbt<0,0,0,0>]
            }}
 finish {diffuse 0.9}
#end// of Raster(RScale, RLine)-macro
//-----------------------------------------
#macro ClearGrid (Rscale )
texture{Raster(1.00,0.04) rotate<0 ,45,0>
        scale Rscale rotate<90,0,0>}
texture{Raster(1.00,0.04) rotate<0,-45,0>
        scale Rscale rotate<90,0,0>}
#end //
//-----------------------------------------
box {<0,0,0>,<2,1.99,0.001>
     ClearGrid (0.2)}
//---------------------------------- end --
 
 
Demonstration of how to do:
Example layered grids 600x450
Scene description
for POV-Ray: ".txt" file or ".pov" file
 
The resulting image:
Example fence 600x450
Scene description
for POV-Ray: ".txt" file or ".pov" file
Ready-made POV-Ray objects as
include files and example files you'll find
at the POV-Ray Objects Page
top

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