POV-Ray : Newsgroups : povray.animations : Animation block...acceleration on the x axis. : Re: Animation block...acceleration on the x axis. Server Time
27 Apr 2024 07:40:07 EDT (-0400)
  Re: Animation block...acceleration on the x axis.  
From: Chris B
Date: 24 Feb 2009 14:11:21
Message: <49a44659@news.povray.org>
"RC" <nomail@nomail> wrote in message 
news:web.49a42d8221b0f15ae1acfc5e0@news.povray.org...
> "Chris B" <nom### [at] nomailcom> wrote:
>>
>> #declare ObjectX = frame_number*0.1+div(frame_number+1,3)*0.9;
>
> Ahhh, interesting, and it works, but with this the motion of each frame 
> changes,
> its always 0.1 in between and a full 0.9 on the third. I'm looking to have 
> them
> move more evenly. If frames 1,2,3 are moving 1.0, 4,5,6 all should move 
> the
> same amount as what ever value the 4th frame was incremented. Does that 
> make
> sense?
>

Maybe it would help if you could list the values you'd like to generate for 
the x-displacement for say the first 12 frames.
In fact, if all else fails you could list the 60 displacements into an array 
and simply index the array using the frame_number variable.

Regards,
Chris B.


Post a reply to this message

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