background { rgb .9 } #default { pigment { rgb <1,.8,.6> } finish { specular .5 } } #declare Objiii = difference { box { -1,1 } cylinder { <-2,0,0>,<2,0,0>,0.8 } cylinder { <0,-2,0>,<0,2,0>,0.8 } cylinder { <0,0,-2>,<0,0,2>,0.8 } } #if (clock < 4) #switch(mod(clock,4)) #range(0,1) screw #break #range(2,3) roll #break #end { cristal { Objiii , 60 }, #switch(mod(clock,4.0)) #case(0) <0,0,0>,<0,0,90> #break #case(1) 1,<90,90,90>/sqrt(3) #break #case(2) <0,0,0>,<90,0,0> #break #case(3) 1,<90,90,90>/sqrt(3) #break #end } #end #if (clock = 4) object { Objiii } #end #if (clock = 5) cristal { Objiii, 60 } #end camera { location <10.0,10,10> right x look_at <0,0,0> angle 13 } light_source { <200,100,-150>, z } light_source { <00,00,150>, 1 } light_source { <200,100,100>, x } light_source { 0, y } sphere { <3,1,1>,0.1 pigment {color rgb x }} sphere { <1,3,1>,0.1 pigment {color rgb y }} sphere { <1,1,3>,0.1 pigment {color rgb z }}