// Persistence of Vision Ray Tracer Scene Description File // File: ?.pov // Vers: 3.5 // Desc: Basic Scene Example // Date: mm/dd/yy // Auth: ? // #version 3.5; #include "colors.inc" #include "textures.inc" #include "metals.inc" #include "woods.inc" global_settings { assumed_gamma 1.0 ambient_light rgb <1, 1, 1> } // ---------------------------------------- #declare clock_clock=clock; camera { location <5, 5, -18.0>*1.4 look_at <0.0, 3, 0.0> } #macro make_clock(cc) union{ union{ //clock face cylinder { <0, 0, 0>, <0, 0, .1>, 1 pigment{color rgb <1, 1, 1>}} #local i = 1; #local tic_width = .04; #local tic_height = .2; #local tic_depth = .01; #while (i<=12) box { <-tic_width/2, 0, 0>, pigment{color rgb <1, .2, .2>} translate y*.7 rotate z*i*30} #local i = i+1; #end //clock hand merge { cylinder { <0, -.1, 0>, <0, .7, 0>, .05 } cone { <0, .7, 0>, 0.1, <0, .9, 0>, .001 } pigment{color rgb <.2, .2, 1>} scale <1,1,.1> translate -z*1.1*tic_depth rotate -cc*z*360 } //clock hand post cylinder { <0, 0, 0>, <0, 0, -.02>, .02 pigment{color rgb <0, 0, 0>}} translate -z} //box union{ difference{ cylinder{-1.2*y,1.2*y,1.4} //box{<-1.2,-1.2,-1.2>,<1.2,1.2,1.2>} cylinder{<0,0,-1.8>,<0,0,0>,1} } cone{1.2*y,1.4,3*y,0} cone{-1.2*y,1.4,-2*y,.3} cylinder{-2*y,-6*y,.3} cone{-6*y,.3,-6.8*y,1.4} box{<-1.4,-6.8,-1.4>,<1.4,-6.8-2,1.4>} texture{T_Brass_3B} } translate y*8.8} #end object{make_clock(clock_clock)} sky_sphere { pigment { gradient y color_map { [0.0 rgb <0.6,0.7,1.0>] [0.7 rgb <0.0,0.1,0.8>] } } } cylinder{0*y,8*y,.2 translate 2*x} light_source { <0, 0, 0> // light's position (translated below) color rgb <1, 1, 1> // light's color translate <0, 2, -5>*20 } // ---------------------------------------- plane { y, -.00001 pigment { color rgb <0.7,0.5,0.3> } }