POV-Ray : Newsgroups : povray.newusers : Splines in future versions : Re: Splines in future versions Server Time
21 Jun 2024 01:20:47 EDT (-0400)
  Re: Splines in future versions  
From: Christian Froeschlin
Date: 24 Mar 2013 14:57:05
Message: <514f4c81$1@news.povray.org>
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.


Post a reply to this message

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