|
![](/i/fill.gif) |
Bob Hughes wrote:
> To add to Kens help:
> You can also put this together with a #switch. It just gets more lengthy
> script-wise but once made saves time. Making a comment line showing a
> listing of what's-what for each switchable view helps too.
>
> //BEGIN
> #declare CLL = 1; //use one of the numbered sets from below.
>
> #declare Loc1 = <0,1,-10>;
> #declare Loc2 = <1,1,-10>;
> #declare Loc3 = <0,1,-15>;
> #declare Loc4 = <1,1,-18>;
> #declare Loc5 = <1,1,-17>;
>
> #declare Look1 = <0,1,1>;
> #declare Look2 = <1,1,1>;
> #declare Look3 = <0,1,5>;
> #declare Look4 = <1,1,9>;
> #declare Look5 = <1,1,5>;
>
Why not just use arrays?
For instance
#declare Location = array[ 5 ] {
<0,1,-10>,
<1,1,-10>,
<0,1,-15>,
<1,1,-18>,
<1,1,-17>
}
#declare LookAt = array [ 5 ] {
<0,1,1>,
<1,1,1>,
<0,1,5>,
<1,1,9>,
<1,1,5>
}
#declare CamNo = 1;
camera { location Location[CamNo] look_at LookAt[CamNo] }
Or, if the cameras are very different:
#declare Camera = array [ 5 ]
#declare Camera[0] = camera { location ... look_at ... direction ... }
#declare Camera[1] = camera { orthographic right ... up ... }
#declare Camera[2] = camera { angle ... }
...
camera { Camera[CamNo] }
Just my thoughts on the matter,
Mike Andrews.
Post a reply to this message
|
![](/i/fill.gif) |