POV-Ray : Newsgroups : povray.animations : animation tracks for armour vehicul : Re: animation tracks for armour vehicul Server Time
28 Jul 2024 16:17:50 EDT (-0400)
  Re: animation tracks for armour vehicul  
From: Chris Colefax
Date: 24 Sep 1999 05:38:32
Message: <37eb4698@news.povray.org>
Bob Hughes <inv### [at] aolcom> wrote:
> Thought I'd try and locate this message post again so I could reply.
> I was looking into doing something like this myself long ago and again
> because you brought it up here.  I figured the Spline Generator from
> Chris Colefax would suffice easily enough.  Wrong.  It fails to
> animate a continuous track for some reason unknown to me.  It drops a
> position (tractor tread) out every frame of the animation.  Well maybe
> there's still hope in the future, Chris has stated he may have a
> Spline Generator for POV-Ray 3.1 someday soon, perhaps the fix will
> appear then.

Without seeing your code I couldn't say for sure why the include file might
be missing a tread - are you using a direct spline clock counter (between 0
and 1) to return the tread positions?  In this case you might find that
rounding errors are causing the last tread to be skipped.  I would usually
recommend using an integer counter, from which you can calculate your spline
clock value, eg:

   #declare Steps = 100;
   #declare Counter = 0; #while (Counter <= Steps)
      #declare spline_clock = Counter/Steps;
      .....
   #declare Counter = Counter + 1; #end

More importantly, I do indeed have a complete Spline macro system pretty
much waiting to go, but after posting a description on my site I had the
crazy idea of completely rewriting the memory usage to take advantage of an
apparently undocumented feature of POV-Ray arrays.  Fortunately all went as
planned, and I even managed to add a couple of extra features (such as

latest message I've posted a track preview animation in

details...


Post a reply to this message

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