A SERVICE OF

logo

112
Chapter 10: Scene Graph Engines
csInterpolator Fields
The elds in csInterpolator include:
void setFraction(float fraction);
float getFraction();
csMFFloat* key();
For an explanation of key() and setFraction(), see, Interpolator Engine Terminology on
page 111.
csSpline
A csSpline takes an array of keys as its input and outputs a set of weights. A key is one
or more pieces of data; a weight is a fractional scaling factor. How the output is weighted
depends on the order of the spline. Figure 10-3 shows two different splines that use the
same key values, but are of different orders: piecewise linear and cubic.
Figure 10-3 Spline
Note: Release 1.0 and 1.1 of Cosmo 3D only support the piecewise linear order.
Typically, the output of a csSpline is used as the input of a csMorphEng.
x
y
Attribute
Time
Piecewise linear
Cubic