|
|
Am 13.02.2017 um 17:46 schrieb Klewlis:
> "Klewlis" <nomail@nomail> wrote:
>
> Anyone know why this works:
>
> camera {
> location <-240, 100, 118>
> //direction <0, 0, 3.0>
> //right x*1.33
> look_at <0, 50, 118>
> //experimental
> #if (frame_number>5)
> rotate x*(frame_number*10)
> #end
> //#end experimental
> }
>
> But this doesn't:
>
> camera {
> location <-240, 100, 118>
> //direction <0, 0, 3.0>
> //right x*1.33
> look_at <0, 50, 118>
> //experimental
> #while (frame_number<11)
> rotate x*(frame_number*10)
> #end
> //#end experimental
> }
Because you can't loop over frames in your .pov file. POV-Ray already
does that loop for you, and re-parses the .pov file all over again for
each frame, with values like frame_number acting as some kind of
parameter. So in your .pov file you can test which frame is currently
being rendered, but you cannot actively loop over multiple frames.
Post a reply to this message
|
|