// First POV-ray example, a single sphere. // Joe O'Rourke, Nov. 2006. // Chrome, so see reflection. #include "colors.inc" #include "metals.inc" #include "finish.inc" #include "textures.inc" //background { color Cyan } camera { location <0, 3, -10> look_at <0, 1, 2> } // Move sphere down by 1 - sqrt{3} // cos(30) because sin(30) = 1/2. sphere { //<0, 3-0.14, 2>, 1 <0, 3-(1-sqrt(3)/2), 2>, 1 texture { Chrome_Metal } } cylinder { <0, -1, 2>, // Center of one end <0, 2, 2>, // Center of other end 0.5 // Radius open // Remove end caps texture { Red_Marble } } // y is the vector <0,1,0> plane { y, -1 pigment { checker color Maroon, color LightWood } } // Dark, so add a second light source. light_source { <-4, 5, -10> color White } light_source { <-14, 20, -10> color White }