POV-Ray : Newsgroups : povray.animations : Move fast then slow down? : Re: Move fast then slow down? Server Time
28 Jul 2024 12:35:52 EDT (-0400)
  Re: Move fast then slow down?  
From: Bob Hughes
Date: 2 Aug 2000 22:49:43
Message: <3988ddc7@news.povray.org>
"ryan constantine" <rco### [at] yahoocom> wrote in message
news:3988BD8D.2974105C@yahoo.com...
| chris colfax has an animation setup for pov that includes all kinds of
| acceleration and deceleration.  find a link to it from the pov links at
| pov.org.  don't reinvent the wheel.

Exactly.  Were you to use the ClockMod.inc file you would put:

#declare clock_type="D"
#include "clockmod.inc"
#declare Decel=mclock;

Then use Decel in place of 'clock' where you want the deceleration.
To combine different types just add this:

#declare clock_combine="W"

before the include line and you will get a wave, or back and forth movement
that also slows down.
Also using separate declarations for individual parts of movement too:

#declare clock_type="D"
#include "clockmod.inc"
#declare Decel=mclock;

#declare clock_type="W"
#include "clockmod.inc"
#declare Wave=mclock;

and put those in where most likely to go, like one for z translation and
other for y.  Hope that made sense.
Plenty is possble just using the include, but there is a macro now too.

Bob


Post a reply to this message

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