// Persistence of Vision Ray Tracer Scene Description File // File: ?.pov // Vers: 3 // Desc: Checkered Floor Example // Date: mm/dd/yy // Auth: ? // #version 3 #include "colors.inc" #declare Cone_Ring = union { cone { <0,0,0>, 0.0, <0,-1,0>, 0.2 rotate <0,0,0> } /* cone { <0,0,0>, 0.0, <0,-1,0>, 0.2 rotate <30,0,0> } */ cone { <0,0,0>, 0.0, <0,-1,0>, 0.2 rotate <60,0,0> } cone { <0,0,0>, 0.0, <0,-1,0>, 0.2 rotate <90,0,0> } cone { <0,0,0>, 0.0, <0,-1,0>, 0.2 rotate <120,0,0> } /* cone { <0,0,0>, 0.0, <0,-1,0>, 0.2 rotate <150,0,0> } */ cone { <0,0,0>, 0.0, <0,-1,0>, 0.2 rotate <180,0,0> } cone { <0,0,0>, 0.0, <0,-1,0>, 0.2 rotate <210,0,0> } cone { <0,0,0>, 0.0, <0,-1,0>, 0.2 rotate <240,0,0> } cone { <0,0,0>, 0.0, <0,-1,0>, 0.2 rotate <270,0,0> } cone { <0,0,0>, 0.0, <0,-1,0>, 0.2 rotate <300,0,0> } cone { <0,0,0>, 0.0, <0,-1,0>, 0.2 rotate <330,0,0> } } #declare Cone_sphere = union { object { Cone_Ring rotate <0,0,0>} object { Cone_Ring rotate <15,30,0>} object { Cone_Ring rotate <0,60,0>} object { Cone_Ring rotate <15,90,0>} object { Cone_Ring rotate <0,120,0>} object { Cone_Ring rotate <15,150,0>} } global_settings { assumed_gamma 1.0 } // ---------------------------------------- camera { location <0.0, 0.0, -0.7> direction 1.5*z right 4/3*x look_at <0.2, 0.0, 1.0> } sky_sphere { pigment { gradient y color_map { [0.0 color blue 0.6] [1.0 color rgb 1] } } } light_source { 0*x // light's position (translated below) color red 1.0 green 1.0 blue 1.0 // light's color translate <-30, 30, -30> } difference {sphere { <0, 0, 0> // center of sphere 0.5 // radius of sphere pigment {color blue 1} } sphere {<0, 0, 0> 0.45 pigment {color blue 1}} object {Cone_sphere pigment {color blue 1}} } #declare Expanded_Ring = union { cone { <0,0,0>, 0.0, <0,-1,0>, 0.2 translate <0,-1,0> rotate <0,0,0> } /* cone { <0,0,0>, 0.0, <0,-1,0>, 0.2 translate <0,-1,0> rotate <30,0,0> } */ cone { <0,0,0>, 0.0, <0,-1,0>, 0.2 translate <0,-1,0> rotate <60,0,0> } cone { <0,0,0>, 0.0, <0,-1,0>, 0.2 translate <0,-1,0> rotate <90,0,0> } cone { <0,0,0>, 0.0, <0,-1,0>, 0.2 translate <0,-1,0> rotate <120,0,0> } /* cone { <0,0,0>, 0.0, <0,-1,0>, 0.2 translate <0,-1,0> rotate <150,0,0> } */ cone { <0,0,0>, 0.0, <0,-1,0>, 0.2 translate <0,-1,0> rotate <180,0,0> } cone { <0,0,0>, 0.0, <0,-1,0>, 0.2 translate <0,-1,0> rotate <210,0,0> } cone { <0,0,0>, 0.0, <0,-1,0>, 0.2 translate <0,-1,0> rotate <240,0,0> } cone { <0,0,0>, 0.0, <0,-1,0>, 0.2 translate <0,-1,0> rotate <270,0,0> } cone { <0,0,0>, 0.0, <0,-1,0>, 0.2 translate <0,-1,0> rotate <300,0,0> } cone { <0,0,0>, 0.0, <0,-1,0>, 0.2 translate <0,-1,0> rotate <330,0,0> } } #declare Expanded_sphere = union { object {Expanded_Ring} object {Expanded_Ring rotate <15,30,0>} object {Expanded_Ring rotate <0,60,0>} object {Expanded_Ring rotate <15,90,0>} object {Expanded_Ring rotate <0,120,0>} object {Expanded_Ring rotate <15,150,0>} } // object {Expanded_Ring pigment {color blue 1}}