POV-Ray : Newsgroups : povray.animations : Roller Coaster Animation : Re: Roller Coaster Animation Server Time
28 Jul 2024 14:34:47 EDT (-0400)
  Re: Roller Coaster Animation  
From: Chris Colefax
Date: 20 Feb 2000 05:40:57
Message: <38afc4b9@news.povray.org>
Steven Jones <ste### [at] tsncc> wrote:
> Yeah that would be great Chris.  Is there a way to figure out tangents
> and normals to the curve?

The spline tangent and acceleration (as well as the distance along the
curve) are by default calculated and returned when using the automatic
spline animation and object creation features.  The normal of the spline can
also be calculated, and I might add this as a feature, although you can use
the vector cross product of the tangent and acceleration.

For the animation, the direction of travel and curvature is also calculated
to automatically bank (roll), pitch, and turn the object/camera being
animated.  When creating spline-based objects the component parts (the
macros offer a choice of cylinders/cones, blob spheres, predefined link
objects, torus coils, and torus pipes) are automatically rotated to follow
the spline.


Post a reply to this message

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