PDA

View Full Version : MOTion file format : troubles with Bezier keys



Lone Angel
12-16-2005, 09:08 AM
Scene file format description says that channel key data stored as:

{ Envelope
nkeys
Key value time spantype p1 p2 p3 p4 p5 p6
...
}

where for Bezier keys (spantype=5) p1..p6 mean:

"The first two parameters are the incoming time and value, and the second two are the outgoing time and value."

But in practice p5 parameter often used, e.g. has non-zero values.
What does it means?

(I'm exporting Bezier-curves from 3Dmax to LW-motion and motions look strange in LW, although graph-editor shows quite reasonable values for key values and in-/out-vectors; after some quick tests I (suprisingly) discovered that p5 param usage.)

jeremyhardin
12-16-2005, 10:46 AM
not sure exactly what your asking, but here's the format:

{ Envelope
[number of keys for this channel]
Key [value] [time] [incoming curve] [tension] [continuity] [bias] [in vector] [out vector] [dunno]
Behaviors [pre behavior] [post behavior]
}

does that answer your question?

Lone Angel
12-17-2005, 10:16 AM
not sure exactly what your asking, but here's the format:

{ Envelope
[number of keys for this channel]
Key [value] [time] [incoming curve] [tension] [continuity] [bias] [in vector] [out vector] [dunno]
Behaviors [pre behavior] [post behavior]
}


This is true for TCB, Hermite and 1D-Bezier, but I need 2D-Bezier.