POV-Ray : Newsgroups : povray.newusers : Splines in future versions : Re: Splines in future versions Server Time
28 May 2024 21:53:22 EDT (-0400)
  Re: Splines in future versions  
From: nimda
Date: 26 Mar 2013 13:40:01
Message: <web.5151dd6297a177f49563d5420@news.povray.org>
Christian Froeschlin <chr### [at] chrfrde> wrote:
> nimda wrote:
>
> > Between time = 0 and 0.25 the fox opens its left eye and start opening its right
> > eye. Between 0.25 and 1 the right eye opens completely. At time = 0.5 a question
> > mark appears above it's head.
>
> this sounds like fun ;)
>
> > I hope that in a future implementation it will be possible to use more than the
> > x, y and z components so it can be used to make complex time tables.
>
> An interesting use of splines, but implementing n-dimensional splines
> for this maybe a bit overkill. It probably only makes sense with linear
> splines since you need to have independent interpolation for each
> timeline. But you can get the same effect using a 2d array initializer
> (see 3.3.1.10.2). Then you just need one macro TIMELINE(t,n) to find
> the rows before and after a given time t, and return the interpolated
> value for timeline n.

This seems very feasible to me. Thanks for the hint.


Post a reply to this message

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