POV-Ray : Newsgroups : povray.advanced-users : Normalizing a quadratic spline : Normalizing a quadratic spline Server Time
29 Jul 2024 14:22:51 EDT (-0400)
  Normalizing a quadratic spline  
From: Christopher Johnson
Date: 10 Jan 2002 01:11:08
Message: <3c3d307c@news.povray.org>
Alright, first off .... I do realize that Colefax's spline macros will solve
this but I'm trying to figure this out.

I wrote a macro to generate splines from a set of points.  It uses the
spline feature of 3.5 but calculates the time values to eliminate
acceleration and deceleration along the spline.

It estimates the length of the spline between control points and for the
overall length.
I'm assuming the difference in time between points is proportional to the
segment lengh / overall length.

It works fine for linear splines but quadratic's tend to drift quite a bit.
I even tried writing a length finder where you could set to acceptable error
and the times still drift.

Can anyone point me in the right direction here.

I'll try to clean up the source if anyone wants to see what I've done.

thanks
Chris


Post a reply to this message

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