POV-Ray : Newsgroups : povray.newusers : camera orbit with simultaneous image plane rotation : Re: camera orbit with simultaneous image plane rotation Server Time
5 Jul 2024 02:31:28 EDT (-0400)
  Re: camera orbit with simultaneous image plane rotation  
From: Alain
Date: 25 Jan 2011 12:57:56
Message: <4d3f0f24@news.povray.org>


>
>  
rotation<0,cameraRoll[mod(float[frame_number],float[array_size])],-(178+(clock*-356))>
>
>

This should be writen as:

rotate<0, cameraRoll[mod(frame_number-1, array_size), -(178+ clock*-356)>
Without the "-1", the first frame would use cameraRoll[1] not cameraRoll[0].

This returns the following values for an array_size value of 4:
0, 1, 2 and 3.

So, as long that you place the desired values into those array elements, 
you get the expected results.




Alain


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.