|
|
#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
|
|