//+KFF10 #include "colors.inc" #include "shapes.inc" #include "glass.inc" #include "metals.inc" #include "textures.inc" //////////////////////////////////////////////////Person-eyes camera{ location<0,1.8,-5> look_at<0,0,15> angle 80 } object{ Plane_XZ texture { pigment{checker color White color Red}}} background{ color White } //---------------------------------------------object & lighting--------------------------------- #declare Towns_07SA= union{ light_source{ <-20,20,-30> color White } //////////////////// box1 box{<0,0,0>,<1,10,1> material{ M_Ruby_Glass } } //////////////////// box2 box{<0,0,0>,<5,5,5> material{ M_Ruby_Glass } translate <0,0,15> } ////////////////////////// } //---------------------------------------------animation setting--------------------------------- #declare Clock = clock*3; #declare Clock2 = Clock-1; #declare Clock3 = Clock-2; #switch(Clock) #range(0,1) object {Towns_07SA translate <0,0,-15*Clock> } #break #range(1,2) object {Towns_07SA translate <0,0,-15> rotate -90*Clock2*y } #break #else object {Towns_07SA translate <0,0,-15> rotate -90*y translate <0,0,-15*Clock3> } #end