global_settings { assumed_gamma 1.0 noise_generator 2 } union { box { <-0.5, -0.5, -1.0>, <-0.3, -0.3, 1.0> } box { <-0.5, 0.5, -1.0>, <-0.3, 0.3, 1.0> } box { <0.3, 0.5, -1.0>, <0.5, 0.3, 1.0> } box { <0.3, -0.3, -1.0>, <0.5, -0.5, 1.0> } pigment { color rgb <0.3, 1, 0.3> } scale <1, 1, 2> } box { <-0.5, -0.5, -0.5>, <0.5, 0.5, 0.5> pigment { color rgb <1, 0.921569, 0.0431373> } scale <1, 1, 2> translate y*4 } box { <-0.5, -0.5, -0.5>, <0.5, 0.5, 0.5> pigment { color rgb <1, 0.0156863, 0.0156863> } scale <1, 1, 2> translate y*(-4) } box { <-0.5, -0.5, -0.5>, <0.5, 0.5, 0.5> pigment { color rgb <0.172549, 0.0431373, 1> } scale <1, 1, 2> translate x*4 } box { <-0.5, -0.5, -0.5>, <0.5, 0.5, 0.5> pigment { color rgb <1, 0.0431373, 0.854902> } scale <1, 1, 2> translate x*(-4) } light_source { <4, 5, -5>*10, rgb <1, 1, 1> } #declare CamPos=<0, 0, -10.5>; #declare CamLook=<0, 0, 0>; #declare Distance=vlength(CamLook-CamPos); #switch (frame_number) #case (1) #declare ShiftX=0.0; #declare ShiftY=0.0; #break #case (2) #declare ShiftX=0.0; #declare ShiftY=-0.4; #break #case (3) #declare ShiftX=-0.4; #declare ShiftY=-0.4; #break #case (4) #declare ShiftX=-0.4; #declare ShiftY=-0.0; #break #case (5) #declare ShiftX=-0.4; #declare ShiftY=0.4; #break #case (6) #declare ShiftX=0.0; #declare ShiftY=0.4; #break #end camera { perspective location CamPos look_at CamLook right x*image_width/image_height up <0, 1, 0> transform { matrix <1,0,0,0,1,0,ShiftX,ShiftY,1,ShiftX*Distance,ShiftY*Distance,0> } }