POV-Ray : Newsgroups : povray.animations : Animation Control (time frames I Guess) : Re: Animation Control (time frames I Guess) Server Time
28 Sep 2024 20:29:28 EDT (-0400)
  Re: Animation Control (time frames I Guess)  
From: Slime
Date: 14 Sep 2003 12:42:37
Message: <3f649a7d$1@news.povray.org>
> #declare T = frame_number / 25 ;

If you're basing your animation off of the frame_number, then the usage of
the clock is useless. In addition, if you later decide you want to render
with 30fps, you have to change the *scene*, rather than just the command
line parameters.

I would suggest having the clock go from 0 to 5, and render 25*5 = 125
frames (0 through 124). Then, in the code, you can just use

#if ( clock<2 | ( clock>5 & clock<8 ) )

This way, the clock is always measured in seconds, and if you ever decide
that you want a different number of frames per second, all you do is change
the number of frames.

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

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