Decoding a bone-based animation file (LOL ver4 .ANM file)
Posted: Sun Sep 30, 2012 7:09 pm
Hi
I'm trying to decode and extract animation data from LOL .ANM file, another people did that for version 1,2,3 but nobody done it yet for version 4.
Its because the version 4 structure is different with older version, even you can't found any information about bones, such as boneID or boneName, or if there are, i did not found them yet
Sample .anm file (v4) :
http://www.axifile.com/en/891EE4CBA2
Note that i did success to extract some information from the file such as BoneCount, FrameRate, Keyframe count from header but i can not found any bone animation data such that must be in body of file.
The bone data that i need is rotation and position of each bones per frames.
For reading header use following pseudo code:
and so
Thank you for any help.
I'm trying to decode and extract animation data from LOL .ANM file, another people did that for version 1,2,3 but nobody done it yet for version 4.
Its because the version 4 structure is different with older version, even you can't found any information about bones, such as boneID or boneName, or if there are, i did not found them yet
Sample .anm file (v4) :
http://www.axifile.com/en/891EE4CBA2
Note that i did success to extract some information from the file such as BoneCount, FrameRate, Keyframe count from header but i can not found any bone animation data such that must be in body of file.
The bone data that i need is rotation and position of each bones per frames.
For reading header use following pseudo code:
Code: Select all
data.magic1 = readLong file
data.magic2 = readLong file
data.version = readLong file
data.magic3 = readLong file
data.magic4 = readLong file
data.magic5 = readLong file
data.magic6 = readLong file
data.numberOfBones = readLong file
data.numberOfFrames = readLong file
data.playbackFPS = readFloat file
for i = 1 to 3 do
print (readLong file)
part1StartIndex=readLong file
part2StartIndex=readLong file
part3StartIndex=readLong file
Thank you for any help.