/* * grid_pattern-demo.pov - Grid pattern demo code. * Needs patched version of POVRay. * * Written 2003-2004 by Wolfgang Wieser. * * This file is put under the public domain. * */ global_settings { assumed_gamma 2.1 } plane { y,-0.2 pigment { checker color rgb 1 color rgb 0.85 scale 0.5 } } light_source { 30*y+40*(z) color rgb <1,1,1> } light_source { 40*x+10*y color rgb <1,1,1> shadowless } camera { location <1,0.7,1>*0.6 up y look_at <0,-0.03,0> angle 40 } cylinder { -0.2*y,0*y, 0.1 open pigment { grid_pattern cylindrical frequency 6 color_map { [0.2 rgb <0.3,1,0.3>] [0.2 rgbf 1 ] } scale <1,0.04,1> } translate 0.1*(x-z)+0.05*x-0.05*z } cylinder { 0.17*y,0*y, 0.1 open pigment { grid_pattern cylindrical frequency 22 color_map { [0.2 rgb <0.3,0.3,1>] [0.2 rgbf 1 ] } scale <1,0.01,1> } translate 0.1*(x-z)+0.05*x-0.05*z } union { cylinder { -0.2*y,0*y, 0.1 } box { <-0.1,0,-0.1>, <0.1,0.13,0.1> } pigment { grid_pattern cylindrical frequency 6 scale <1,0.05,1> } translate -0.1*(x+z)-0.05*x-0.05*z } box { <-0.1,0,-0.1>, <0.1,0.05,0.1> pigment { grid_pattern planar translate 0.3*x scale <1,1,1>/20 } translate -0.2*y translate -0.1*(-x-z)-0.05*x //+0.05*z } box { <-0.1,0,-0.1>, <0.1,0.001,0.1> pigment { grid_pattern planar color_map { [0.2 rgb <1,0.3,0.3>] [0.2 rgbf 1 ] } scale <1,1,1>/50 } scale 1.5 rotate 90*x translate -0.05*y translate -0.1*(x-z)-0.10*x+0.05*z }