Friday, 18 April 2014

TRLE File Formats *.trw

Program: WadMerger
Description: Animation Editor custom import/export format for animations
Document Version: 0.1

Field Type Comment
WadMerger Version? uint8 * 8
KeyFrameOffset uint32
FrameDuraton uint8
KeyFrameSize uint8 multiply by 2 for size in bytes
State Id uint16
Unknown1 sint16
Speed sint16
Acceleration sint32
Unknown2 sint64
FrameStart uint16
FrameEnd uint16
NextAnim sint16 an offset from this anim
FrameIn uint16
Num State Changes uint16
Changes Index uint16
Num AnimCommands uint16
AnimCommands Offset uint16
File Marker? sint32 always -1
Num AnimCommands uint16
Command0 command uint16
Command0 op1 sint16
Command0 op2 sint16
Command0 op3 sint16
... continue thru all commands
CommandK command uint16
CommandK op1 sint16
CommandK op2 sint16
CommandK op3 sint16
KeyFrameDataPackageSize uint32 multiply by 2 for size in bytes
Num Frames uint32
Num KeyFrames uint32
KeyFrame0 bbx1 sint16 Bounding box as per *.wad
KeyFrame0 bbx2 sint16
KeyFrame0 bby1 sint16
KeyFrame0 bby2 sint16
KeyFrame0 bbz1 sint16
KeyFrame0 bbz2 sint16
KeyFrame0 offx sint16 Root mesh (Mesh0) offset as per *.wad
KeyFrame0 offy sint16
KeyFrame0 offz sint16
Num Meshes uint16
Mesh0 RotX unit16 Rotation angles, 1024 = 360 degrees
Mesh0 RotY uint16
Mesh0 RotZ uint16
... continue thru all meshes
MeshK RotX unit16
MeshK RotY uint16
MeshK RotZ uint16
... continue thru all keyframes
KeyFrameK bbx1 sint16 Bounding box as per *.wad
KeyFrameK bbx2 sint16
KeyFrameK bby1 sint16
KeyFrameK bby2 sint16
KeyFrameK bbz1 sint16
KeyFrameK bbz2 sint16
KeyFrameK offx sint16 Root mesh (Mesh0) offset as per *.wad
KeyFrameK offy sint16
KeyFrameK offz sint16
Num Meshes uint16
Mesh0 RotX unit16 Rotation angles, 1024 = 360 degrees
Mesh0 RotY uint16
Mesh0 RotZ uint16
... continue thru all meshes
MeshK RotX unit16
MeshK RotY uint16
MeshK RotZ uint16

TRWFileFormat.xlsx

No comments:

Post a Comment