POV-Ray : Newsgroups : povray.animations : Animation block...acceleration on the x axis. : Re: Animation block...acceleration on the x axis. Server Time
8 May 2024 09:28:45 EDT (-0400)
  Re: Animation block...acceleration on the x axis.  
From: Nicolas Alvarez
Date: 24 Feb 2009 21:28:14
Message: <49a4acbe@news.povray.org>
RC wrote:
> At what point in the code
> would I include a variable that changes the "function of t" value every
> three frames?

It doesn't work that way.

Suppose you want a variable to multiply by two every frame. You don't put
a = a * 2 assuming it will run on every frame, because a would be deleted
and re-initialized on the next frame. You need a = pow(2, frame_number), so
that 'a' is 2 to the uhh... frame_number'th power :)


Post a reply to this message

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