com.microcrowd.loader.java3d.max3ds.chunks
Class KeyFramerInfoChunk
java.lang.Object
com.microcrowd.loader.java3d.max3ds.chunks.Chunk
com.microcrowd.loader.java3d.max3ds.chunks.KeyFramerInfoChunk
public class KeyFramerInfoChunk
- extends Chunk
A KeyFramerInfoChunk stores information about things
that happen to meshes: Position information, rotation
information, scale information, pivot information
and frame information.
Together with the frames chunk thes are used
display animation behaviors.
- Author:
- Josh DeFord
|
Method Summary |
void |
initialize(ChunkChopper chopper)
Retrieves the named object for the current key framer
inserts the rotation, position and pivot transformations for frame 0
and assigns the coordinate system to it. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
KeyFramerInfoChunk
public KeyFramerInfoChunk()
initialize
public void initialize(ChunkChopper chopper)
- Retrieves the named object for the current key framer
inserts the rotation, position and pivot transformations for frame 0
and assigns the coordinate system to it.
The inverse of the local coordinate system converts from 3ds
semi-absolute coordinates (what is in the file) to local coordinates.
Then these local coordinates are converted with matrix
that will instantiate them to absolute coordinates:
Xabs = sx a1 (Xl-Px) + sy a2 (Yl-Py) + sz a3 (Zl-Pz) + Tx
Yabs = sx b1 (Xl-Px) + sy b2 (Yl-Py) + sz b3 (Zl-Pz) + Ty
Zabs = sx c1 (Xl-Px) + sy c2 (Yl-Py) + sz c3 (Zl-Pz) + Tz
Where:
(Xabs,Yabs,Zabs) = absolute coordinate
(Px,Py,Pz) = mesh pivot (constant)
(X1,Y1,Z1) = local coordinates
- Overrides:
initialize in class Chunk
- Parameters:
chopper - the ChunkChopper containing the current state of the parser.
Copyright © 2000-2011 Microcrowd. All Rights Reserved.