Game Development Reference
In-Depth Information
{ Envelope
1
Key 0 0 0 0 0 0 0 0 0
Behaviors 1 1
}
Channel 1
{ Envelope ......
The next section when parsing an object layer involves reading the
'ObjectMotion'. The first line after 'ObjectMotion' declares the number of
channels involved in the motion. Lightwave uses nine channels, three for
position, three for orientation and three for scale.
ObjectMotion
NumChannels 9
Channel 0
{ Envelope
nkeys
Key value time smoothing p1 p2 p3 p4 p5 p6
Behaviors pre post
Key ...
}
Channel 1
{ Envelope ...
When parsing a channel the values found are:
nkeys - the number of keys.
value - the key value.
time - the time in seconds.
smoothing - the curve type, an index into the pop-up list on the graph
editor, currently
0 TCB (Kochanek-Bartels)
1 Hermite
2 Bezier
3 Linear
4 Stepped
Curve parameters
p1 Tension
p2 Continuity
p3 Bias
p4 Incoming tangent
Search Nedrilad ::




Custom Search