POV-Ray : Newsgroups : povray.general : spline settings to clock correspondence : Re: spline settings to clock correspondence Server Time
5 Aug 2024 10:24:33 EDT (-0400)
  Re: spline settings to clock correspondence  
From: hughes, b 
Date: 3 Oct 2002 17:22:12
Message: <3d9cb504@news.povray.org>
"Dennis Miller" <dhm### [at] attbicom> wrote in message
news:3d9c9e40$1@news.povray.org...
> #declare CL = (From (.9, 0) To (.95, 1)) ;
>
> translate MySpline(CL)
>
> So will the spline respond to CL and move through the entire set of
points?
> In other words, does CL override the real clock settings? I'm just not
clear
> on how the "ctr" parameter in the docs actually works.

Yes, that should do it. "ctr" is an example of whatever identifier you want
it to be. Your CL takes place of that.

What to watch out for though is that the spline is always done even if CL is
outside the range specified. In other words, unless you prevent the spline,
or thing which uses it, from being parsed and rendered it will show up as
either beginning or ending regardless of there not being a value within the
range of 't'.

You can check that by setting CL to -1 or 2 and notice that the spline still
executes with the first or last (applicable) vector. This could be a good
reason for having a spline on/off setting possible to make it easier to work
with. Then again, anything using the spline would faulter because of an
invalid parameter so maybe there isn't a way to do that. Something to think
about, or perhaps already has been.
--
Farewell,
Bob


Post a reply to this message

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