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
    Patterns Lists
    Warps
    uv_mapping
    Mapping
    Superpositions
      Layered Textures
   > Squared Paper Grid

    Your own Textures
 
                                           

Squared Paper Grid

Layers of Partly Transparent Patterns for a Grid of Coordinate Systems.

Two lattice grilles, each of them realized by a color_map (thin dark opac + wide clear transparent), are one of them rotated by 90 degrees, are layered together with a white background.


Example: "Squared Paper":

//------------------<<<< 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>]
        }}
#end // of macro
//-----------------------------------
box{<0,0,0>,< 2,0.1,2>
    texture{
      pigment{color rgb<1,1,1>*1.3}}
    texture{ Raster( 1.0, 0.045)
             scale 0.25}
    texture{ Raster( 1.0, 0.045)
             scale 0.25
             rotate<0,90,0>}
    rotate<0,0,0>
    scale 2
    rotate<5,0,0>
    translate<-1.0,1.5,-1.5>}
//-------------------------- end ----
Demonstration of how to do:
Sample layered grids 600x450

The resulting image:
Sample grid 600x450
Click here for the complete scene description of the demo scene
for POV-Ray: ".txt" file or ".pov" file
Click here for the complete scene description of the scene "rastered box"
for POV-Ray: ".txt" file or ".pov" file

top

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