// ----------------------------------------------------------------------- // Persistence Of Vision raytracer version 3.6 // Ron Bracale // Eight Directions: Move Out from Center, then back in // using clock settings 0 to 1 the 1 to 0 in INI, // and renaming pov or moving files. // ----------------------------------------------------------------------- #include "colors.inc" #include "textures.inc" #include "shapes.inc" #include "glass.inc" //global_settings { assumed_gamma 2.2 } light_source { < 0, 0, -100 > color White } camera { up < 0, 1, 0 > location < 0, 0, -25 > look_at < 0, 0, 0 > } // ----------------------------------------------------------------------- // 4 inner spheres - Move out // ----------------------------------------------------------------------- // Red sphere { < 0, 0, 0 > 2 hollow texture { pigment { color rgbf < 0.85, 0, 0, 0.13 > } } finish { ambient 0.68 diffuse 0.16 reflection 0.15 specular 0.05 } translate < (clock*8), (clock*8), 0 > } // Green sphere { < 0, 0, 0 > 2 hollow texture { pigment { color rgbf < 0, 0.85, 0, 0.13 > } } finish { ambient 0.68 diffuse 0.16 reflection 0.15 specular 0.05 } translate < (clock*8), -(clock*8), 0 > } // Blue sphere { < 0, 0, 0 > 2 hollow texture { pigment { color rgbf < 0, 0, 0.85, 0.13 > } } finish { ambient 0.68 diffuse 0.16 reflection 0.15 specular 0.05 } translate < 0, (clock*8), 0 > } // Red + Green = Yellow sphere { < 0, 0, 0 > 2 hollow texture { pigment { color rgbf < 0.85, 0.85, 0, 0.13 > } } finish { ambient 0.68 diffuse 0.16 reflection 0.15 specular 0.05 } translate < -(clock*8), -(clock*8), 0 > } // ----------------------------------------------------------------------- // 4 outer spheres move in // ----------------------------------------------------------------------- // Red + Blue = Cyan sphere { < 0, 0, 0 > 2 hollow texture { pigment { color rgbf < 0.85, 0, 0.85, 0.13 > } } finish { ambient 0.68 diffuse 0.16 reflection 0.15 specular 0.05 } translate < -(clock*8), 0, 0 > } // Blue + Green = Majenta sphere { < 0, 0, 0 > 2 hollow texture { pigment { color rgbf < 0, 0.85, 0.85, 0.13 > } } finish { ambient 0.68 diffuse 0.16 reflection 0.15 specular 0.05 } translate < 0, -(clock*8), 0 > } // Light_Purple sphere { < 0, 0, 0 > 2 hollow texture { pigment { color Light_Purple } } finish { ambient 0.68 diffuse 0.16 reflection 0.15 specular 0.05 } translate < (clock*8), 0, 0 > } // Orange sphere { < 0, 0, 0 > 2 hollow texture { pigment { color Orange } } finish { ambient 0.68 diffuse 0.16 reflection 0.15 specular 0.05 } translate < -(clock*8), (clock*8), 0 > } // ----------------------------------------------------------------------- // Center chrome ball: // ----------------------------------------------------------------------- // Red + Green + Blue = White: reflection = chrome light_source { < 0, 0, 0 > color rgbf < 0.85, 0.85, 0.85, 0.35 > looks_like { sphere { < 0, 0, 0 > 2.1 hollow texture { pigment { color rgbf < 0.85, 0.85, 0.85, 0.13 > } } finish { ambient 0.98 diffuse 0.02 reflection 1.0 } } } translate < 0, 0, 0 > }