Interpolation Extension
Version 9 (Trond Lossius, 06/29/2010 04:07 pm)
| 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 | 1 | For each interpolation type the formula for increasing a normalized one-dimensional value {{latex($y_n$)}} from _0_ to _1_ over the normalized time interval {{latex($t_n$)}} starting at _0_ and ending at _1_. |
|
| 27 | 2 | Trond Lossius | |
| 28 | 6 | Trond Lossius | *Linear* |
| 29 | 5 | Trond Lossius | |
| 30 | 3 | Trond Lossius | @/spatdif/interpolate/source/1/type linear@ |
| 31 | 1 | ||
| 32 | 5 | Trond Lossius | {{latex($y_n = t_n$)}} |
| 33 | 1 | ||
| 34 | 6 | Trond Lossius | *Cubic* |
| 35 | 2 | Trond Lossius | |
| 36 | 5 | Trond Lossius | @/spatdif/interpolate/source/1/type cubic@ |
| 37 | 4 | Trond Lossius | |
| 38 | 6 | Trond Lossius | *Quadratic* |
| 39 | 2 | Trond Lossius | |
| 40 | 4 | Trond Lossius | @/spatdif/interpolate/source/1/type quadratic@ |
| 41 | 2 | Trond Lossius | |
| 42 | 7 | Trond Lossius | *Cosine* |
| 43 | 1 | ||
| 44 | 7 | Trond Lossius | @/spatdif/interpolate/source/1/type cosine@ |
| 45 | 1 | ||
| 46 | 9 | Trond Lossius | {{latex($y_n = 0.5 - 0.5 * cos(\pi * t_n$\))}} |
| 47 | 1 | ||
| 48 | 7 | Trond Lossius | |
| 49 | 7 | Trond Lossius | Q: tweening/easing? |
| 50 | 1 | ||
| 51 | 1 |