POV-Ray : Newsgroups : povray.animations : colefax spline.mcr : spline_clock spacing Server Time
23 Nov 2024 21:57:24 EST (-0500)
  colefax spline.mcr : spline_clock spacing (Message 1 to 1 of 1)  
From: glenn xnhase
Subject: colefax spline.mcr : spline_clock spacing
Date: 11 Jun 2004 20:30:01
Message: <web.40ca4d637f090938eb4acbd0@news.povray.org>
#declare T_spline = create_spline ( {... array of spline data points ...},
                      create_cubic_spline
                        + uniform_spline_times(on)
                        + spline_sampling(on) )

#declare T_time = 0;   // 0 <= T_time <= 1 in the animation

evaluate_spline(T_spline, spline_clock(T_time))
#declare T_distance = spline_distance;

#declare T_pos = spline_pos;
#declare T_value = spline_value (T_spline, T_time);
#declare T_even_value = even_spline_value (T_spline, T_distance);

Now, if both uniform_spline_times and spline-sampling are off, the values
for T_pos, T_value, and T_even_value agree nicely for all T_time.  But, if
either is on, T_value does not agree with the other two.  All agree at the
beginning and end points.

Would someone please explain to me what is going on here?  When is
spline_clock proportional to distance along the spline?

Thanks.

Glenn
"When math is outlawed, only outlaws will do math."


Post a reply to this message

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