POV-Ray : Newsgroups : povray.animations : simple pov-ray animation code : Re: simple pov-ray animation code Server Time
28 Jul 2024 10:18:55 EDT (-0400)
  Re: simple pov-ray animation code  
From: Chris Colefax
Date: 5 May 2001 05:52:17
Message: <3af3cd51@news.povray.org>
VICTOR THABETHE <vt2### [at] coventryacuk> wrote:
> I'm looking for a simple povray animation, that has 2 aeroplans chasing
> each other or a helicopter taking off at a vertical angle,
>
> Can anyone help me, please I've been looking for pov-ray simple
> animation code and I can't seem to find anything, does anyone have any
> suggestions?

If you want an easy way to animate objects along paths, you could try my
Spline Macro File, available with a tutorial at:

http://www.geocities.com/ccolefax/spline

The file allows you to plot out paths through POV-Ray's "space" using a list
of vector points, so the path moves smoothly from one point to the next,
e.g.:

#declare Path1 = create_spline (ListOfPoints, default_options)
#declare Path2 = create_spline (ListOfPoints, spline_tension (-0.6))

Then, you can animate objects:

object {AirPlane animate_by_spline (Path1, auto_banking (0.75))
object {AirPlane animate_by_spline (Path2, default_options)

The macro takes care of positioning and rotating your objects so they follow
the path, even banking around turns.  You can also animate the camera,
lights, etc. for an all-moving spectacular!

From the main page (http://www.geocities.com/ccolefax) you can also download
the Automatic Clock Modifier macro which lets you keyframe aspects of your
scene (including numbers, colours, and textures), and there's a link to an
excellent POV animation tutorial by Steve Strickland.


Post a reply to this message

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