POV-Ray : Newsgroups : povray.general : Animation Error : Re: Animation Error Server Time
29 Jul 2024 12:18:18 EDT (-0400)
  Re: Animation Error  
From: Christian Froeschlin
Date: 28 Aug 2011 15:50:49
Message: <4e5a9c19$1@news.povray.org>
yet### [at] gmailcom wrote:

> (I have tried following defination for spline points
> clock*50, <1.30*cos(2*pi*clock),0,2.60+1.3*sin(2*pi*clock)>
> But it doesn't work, what I expected.

This looks like it should work, but I think you are
confusing the clock value for the current render frame
with the time parameter for defining the entire
spline. You probably want something like

#declare N = 50;
#declare I = 0;
#while (I <= N)
   #local T = I/COUNT;
   T, <1.30*cos(2*pi*T),0,2.60+1.3*sin(2*pi*T)>
   #declare N = N + 1;
#end

(And yes I know #local has no effect here but I still
like to use it to indicate it's local to the block.)


Post a reply to this message

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