|
|
>
>>
>> In that case, you can use an array that will contain your various rotations.
>>
>> #declare Roll = array[16] {0,0,1,3,5,7,5,3,1,0,1,3,5,7,5,3}
>>
>> This create the array and initialize it in one operation.
>> The element zero (first) can be used for single frame renderings, while
>> the others will be used during an animation.
>
> This sounds very promising. Since I am generating scripts to execute the
> raytracing with povray I would then only need to determine whether the roll
> angle is fixed or variable, based on user input.
>
>
>> You ther access the elements like this:
>>
>> Roll[frame_numnber]
>
> Could you please give me more detailed syntax, or a reference to the relevant
> manual /wiki page, on how to implement this. Thanks.
Some samples:
#declare Value = Array[Some_Integer];
camera{location Array[Some_Integer1]
look_at Another_Array[Some_Integer2]
rotate Array_Of_3D_Vectors[Some_integer3]
angle A_Fourth_Array[Some_Integer4]
} // extreeme example where most of the camera's parameters are
// defined using arrays.
For the windows version documentation:
3.2.1.8 Array Identifiers
General online documentation:
http://www.povray.org/documentation/view/3.6.1/233/
Alain
Post a reply to this message
|
|