// 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 "shapes.inc" global_settings { assumed_gamma 1.0 ambient_light rgb<1, 1, 1> } // ---------------------------------------- camera { location <0.0, 0.75, -4.0> direction 1.5*z right x*image_width/image_height look_at <0.0, 0.0, 0.0> angle 17 } sky_sphere { pigment { White } } light_source { <0, 0, 0> // light's position (translated below) color rgb <1, 1, 1> // light's color translate <-30, 30, -30> } #declare lclock=clock+.5; //bench top #declare bwidth=1; #declare bdepth=.0125; #declare rope_radius = .005; difference{ box{-bwidth/2*(x+z),bwidth/2*(x+z)-bdepth*y pigment{color rgbt <.3,.3,.3,.4>} finish{ambient .7}} cylinder{bdepth*y,-2*bdepth*y,1.3*rope_radius } } //rope #declare rope_hlength=.4; #declare rope_vlength = .25; #declare rope_elbow_radius=rope_radius; #declare elbow= intersection{ torus { rope_elbow_radius, rope_radius} Wedge(90) translate -(x)*rope_elbow_radius }; union{ union{ cylinder{0*x,-z*rope_vlength,rope_radius} cylinder{0*x,-x*rope_hlength+2*z*rope_radius,rope_radius translate (z-x)*rope_radius} object{elbow} pigment{VeryDarkBrown} finish{ambient .2} rotate -x*90 } box { 2*<-3, 0, -3>*rope_radius, 2*<3, 3, 3>*rope_radius translate -x*rope_hlength pigment{NewMidnightBlue} finish{ambient .7}} cone { 0*z, 4*rope_radius, -8*rope_radius*y, 6*rope_radius translate -y*rope_vlength pigment{Firebrick } finish{ambient .5} } rotate -y*lclock*360 }