Banner
{ Deutsch | English }

coolstuff/tips.txt

//usual stuff #include "colors.inc" camera { location <6,-1,-6> look_at <0,-1,0> } light_source { < 0, 0,0> Yellow} light_source { < 2, 2, 2> White} light_source { < 2, 2,-2> White} light_source { < 2,-2, 2> White} //the white background #declare bg = union { plane { y, -200} plane { z, 200} plane { x, -200} pigment { color White} } //a coordinate system for a better orientation #declare cood = union { //y cylinder { <0,-5,0> <0,5,0> 0.005 pigment { color Blue} } //x cylinder { <-5,0,0> <5,0,0> 0.005 pigment { color Green} } //z cylinder { <0,0,-5> <0,0,5> 0.005 pigment { color Red} } } merge { sphere { <0,0,0>,2} cone {<0,-sqrt(2),0>sqrt(2) <0,-sqrt(2)-.5 ,0>1 } pigment { Yellow transmit 0.5} finish { ambient .3 } } cone {<0,-sqrt(2)-.5 ,0>1 <0,-sqrt(2)-2.5 ,0>0.9 pigment { Grey} } cone {<0,1,0>,0.05 <0,-1,0>0.05 rotate <0,0,10> translate <-0.5,-1,0>} cone {<0,1,0>,0.05 <0,-1,0>0.05 rotate <0,0,-10> translate <0.5,-1,0>} cone {<-0.66,0,0>,0.05 <0.66,0,0>0.05} //object {cood}