-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathxsm.txt
64 lines (55 loc) · 1.52 KB
/
xsm.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
vec3d = float x, float y, float z
quat16 = int16 x, int16 y, int16 z, int16 w; fX = x / 32767
string = uint32 len, char[len]
file:
byte magic[4] = 58 53 4D 20 ("XSM ")
byte majorVersion = 1
byte minorVersion = 0
byte bBigEndian
byte pad
chunk[...]
int32 chunkType
int32 length
int32 version
byte data[length]
chunk C9: metadata (v2)
float unused = 1.0f
float fMaxAcceptableError
int32 fps
byte exporterMajorVersion
byte exporterMinorVersion
byte pad[2]
string sourceApp
string origFileName
string exportDate
string motionName
chunk CA: bone animation (v2)
int32 numSubMotions
SkeletalSubMotion[numSubMotions]:
quat16 poseRot
quat16 bindPoseRot
quat16 poseScaleRot
quat16 bindPoseScaleRot
vec3D posePos
vec3D poseScale
vec3D bindPosePos
vec3D bindPoseScale
int32 numPosKeys
int32 numRotKeys
int32 numScaleKeys
int32 numScaleRotKeys
float fMaxError
string nodeName
// fTime of first item in each array must be 0
PosKey[numPosKeys]:
vec3d pos
float fTime
RotKey[numRotKeys]:
quat16 rot
float fTime
ScaleKey[numScaleKeys]:
vec3d scale
float fTime
ScaleRotKey[numScaleRotKeys]:
quat16 rot
float fTime