// http://xahlee.org/3d/index.html // POV-Ray example showing light bulb #include "colors.inc" #declare redBulb = sphere { <0,0,0>, .1 texture {pigment{color Red} finish {ambient .8 diffuse .6}} } #declare blueBulb = sphere { <0,0,0>, .1 texture {pigment{color Blue} finish {ambient .8 diffuse .6}} } #declare greenBulb = sphere { <0,0,0>, .1 texture {pigment{color Green} finish {ambient .8 diffuse .6}} } light_source { <3,3,3> color Red looks_like { redBulb } } light_source { <4,3,3> color Blue looks_like { blueBulb } } light_source { <5,3,3> color Green looks_like { greenBulb } } ///// camera { location <3,3,-3>*2 look_at <0,0,0> translate <1,1,1> } background { color Cyan } sphere { <0,1,0>, 1 // position and radius texture { pigment { color White } } } box { <2,0,0>, // one corner <4,1,1> // opposite corner pigment { color White } } cone { <-2,2,0>, 1 // Center and radius of one end <-2,2,1>, 0.5 // Center and radius of other end open // remove caps pigment { color White} } cylinder { <0,0,3>, // Center of one end <0,4,3>, // Center of other end 0.5 // Radius open // Remove end caps texture { pigment { color White } } } torus { 1, 0.2 // torus radius and tube radius rotate <0,0,0> // controls orientation. translate <4,1,4> pigment { White } } plane { <0,1,0> // normal vector , 0 // distance from origin pigment { checker color White, color Gray } }