POV-Ray : Newsgroups : povray.animations : cyclic animation Server Time
3 Jul 2024 03:29:20 EDT (-0400)
  cyclic animation (Message 1 to 2 of 2)  
From: darrenf
Subject: cyclic animation
Date: 31 Jul 2003 15:25:01
Message: <web.3f296cd6b02243b654b4acdd0@news.povray.org>
Hello

Does anyone know how I can make a cyclic animation in povray?

I am trying to make a smooth looping animation in a 150 and 300 frame
animation, can would like some advice on to program this.

Thanks

darrenf


Post a reply to this message

From: Ken
Subject: Re: cyclic animation
Date: 31 Jul 2003 21:26:18
Message: <3F29C301.999F6C9@pacbell.net>
darrenf wrote:
> 
> Hello
> 
> Does anyone know how I can make a cyclic animation in povray?
> 
> I am trying to make a smooth looping animation in a 150 and 300 frame
> animation, can would like some advice on to program this.


5.2.1.4  Cyclic Animation


INI file option -
Cyclic_Animation = bool Turn cyclic animation on/off 

Command line options -
+KC Turn cyclic animation on 
-KC Turn cyclic animation off 

Many computer animation sequences are designed to be run in a continuous loop.
Suppose you have an object that rotates exactly 360 degrees over the course of
your animation and you did rotate 360*clock*y to do so. Both the first and last
frames would be identical. Upon playback there would be a brief one frame jerkiness.
To eliminate this problem you need to adjust the clock so that the last frame does
not match the first. For example a ten frame cyclic animation should not use clock
0.0 to 1.0. It should run from 0.0 to 0.9 in 0.1 increments. However if you change
to 20 frames it should run from 0.0 to 0.95 in 0.05 increments. This complicates
things because you would have to change the final clock value every time you changed
Final_Frame. Setting Cyclic_Animation=on or using +KC will cause POV-Ray to
automatically adjust the final clock value for cyclic animation regardless of
how many total frames. The default value for this setting is off.

-- 
Ken Tyler


Post a reply to this message

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