// A Simple POV-Ray Program // Element #1 - The CAMERA, the position of the user's eye. camera { location <1, 6, -20> // Where the Camera is located rotate <0, (30*clock), 0> look_at <0, 2, 0> // Looking in the Z-direction <0,0,Z> } // Element #2 - The LIGHT SOURCE light_source { <10, 15, -20> // Location of the light color rgbf <2.0, 2.0, 2.0, 0.0> // The RGB Color of the light (White) } // Element #3 - The OBJECTS // Object #A: A Black and White Checkerboard Plane plane { y, -1 // Plane is perpendicular to the y-axis at -1 pigment {checker // Checkerboard pigment color rgbf <0.0, 0.0, 0.0, 0.0> // Opaque Black color rgbf <1.0, 1.0, 1.0, 0.0> // Opaque White } scale 4 // Make the checkers 4-times bigger } // Object #B: A Shiny Red Sphere sphere { <0, 2, 0>, 3.0 // Sphere center and radius: , r scale 2 pigment { color rgbf <1.0, 0.0, 0.0, 0.0>} // Opaque red finish { // Add some surface finishing things: phong 0.8 // A "phong" is a highlight reflection 0.5 // Make the surface slightly shiny } translate <0, 7*cos(radians(30*clock))-7.0, 0> } // Object #C: A Transparent Blue Sphere sphere { <5, 2, -6>, 2.0 // Location of the center and its radius pigment { color rgbf <0.5+clock/24, 0.5 +clock/24, 1.0, 0.9>} // Transparent pale blue finish { // Add some surface finishing things: phong 0.8 // A "phong" is a highlight reflection 0.1 // Make the surface slightly shiny refraction 1 // Refraction is present ior 1.3 // Index of refraction } }