/* The creates a camera for one of 5 views Left, front, right, back, top The following must be declared in the main scene file The up vector MUST be perpendicular to the view direction eg: #declare VP = <0,0,0>; /* Camera position */ #declare VD = <1,0,0>; /* View direction vector */ #declare VU = <0,0,1>; /* Up vector */ */ #declare VR = vcross(VU,VD); #switch (clock) #case (0) /* left */ camera { perspective location VP up y right x angle 90 sky VU look_at VP - VR } #break #case (1) /* front */ camera { perspective location VP up y right x angle 90 sky VU look_at VP + VD } #break #case (2) /* right */ camera { perspective location VP up y right x angle 90 sky VU look_at VP + VR } #break #case (3) /* back */ camera { perspective location VP up y right x angle 90 sky VU look_at VP - VD } #break #case (4) /* top */ camera { perspective location VP up y right x angle 90 sky -VD look_at VP + VU } #break; #case (5) camera { fisheye location VP up y right x angle 180 sky -VD look_at VP + VU } #break #end