Interpolation Extension

Version 19 (Nils Peters, 07/03/2010 12:32 am)

1 1
h1. Interpolation Extension
2 1
3 1
Any parameter change in a scene description can either be discrete (jump to) or continuous/interpolated (smooth)
4 1
5 6 Trond Lossius
6 4 Trond Lossius
h2. Interpolation flag 
7 1
8 1
9 6 Trond Lossius
h3. Interpolating on a parameter of an entity (source/sink/speaker)
10 1
11 4 Trond Lossius
@/spatdif/interpolate/source/1/position 1@
12 1
13 4 Trond Lossius
@/spatdif/interpolate/source/*/position 0@
14 1
15 1
16 4 Trond Lossius
h3. Setting a target time (duration) or imply interpolation to the next occurrence of the parameter
17 1
18 4 Trond Lossius
@/spatdif/interpolate/source/1/time 2.5@
19 1
20 4 Trond Lossius
@/spatdif/interpolate/source/1/time -1@
21 1
22 4 Trond Lossius
23 4 Trond Lossius
24 1
h3. Interpolation type
25 1
26 13 Trond Lossius
For each interpolation type the formula is provided for increasing a normalized one-dimensional value {{latex($y_n$)}} from _0_ to _1_ over the normalized time {{latex($t_n$)}} starting at _0_ and ending at _1_.
27 2 Trond Lossius
28 16 Nils Peters
|*Type*|*OSC Example* | *Equation* |
29 16 Nils Peters
|None|@/spatdif/interpolate/source/1/type none@| |
30 16 Nils Peters
|Linear|@/spatdif/interpolate/source/1/type linear@|{{latex($y_n = t_n$)}}|
31 16 Nils Peters
|Cubic|@/spatdif/interpolate/source/1/type cubic@| |
32 16 Nils Peters
|Quadratic|@/spatdif/interpolate/source/1/type quadratic@| |
33 16 Nils Peters
|Cosine|@/spatdif/interpolate/source/1/type cosine@|{{latex($y_n = 0.5 - 0.5 * cos(\pi t_n)$)}}|
34 12 Trond Lossius
35 7 Trond Lossius
36 7 Trond Lossius
Q: tweening/easing?
37 1
38 1
Q: Should granularity be defined as well?
39 18 Nils Peters
40 18 Nils Peters
Q: Interpolation of multidimensional data (e.g. position, directivity) ?
41 19 Nils Peters
42 19 Nils Peters
* see attached example: InterpolationPosition.mov