|
![](/i/fill.gif) |
> I want to make an animation.
>
> First I want to scale an Object.
> After the Object has scaled the camera should rotate
Animation is generally achieved using POV-Ray's internal clock value, which
is a timeline for the scene that (by default) runs from 0 to 1 over the
course of the animation. You can animate anything using this value in
formulas and such, e.g. for scaling:
object {MyLittleObject scale 1 + clock*4}
Here the object grows from its original size (scale 1) to 5 times that at
the end of the animation. For rotation, something similar:
camera {location <0, 0, -20>
rotate y*clock*360
look_at <-1, 5, 2>}
Here the clock location spins around the y-axis a full revolution, but
remains looking at <-1, 5, 2> for the entire animation.
Now, if you want more complicated, multi-stage animations I might suggest
you look at my Automatic Clock Modifier macro file, which allows you to
keyframe practically any aspect of your animation (including floats,
vectors, pigments and textures):
http://www.geocities.com/ccolefax
There you'll also find a link to a great animation tutorial by Steve
Strickland, and a tutorial for my Spline Macro file that offers full support
for animation.
Post a reply to this message
|
![](/i/fill.gif) |