OBD:TRAM/raw0x34: Difference between revisions

m
mNo edit summary
Line 120: Line 120:
==Bone tracks==
==Bone tracks==
===General info===
===General info===
An orientation track is a succession of keyframe fields (either 6 or 16 bytes depending on the "compression size") defining the orientation of the bone at a key moment. Every pair of keyframes is separated by an interval field (one byte) defining the number of frames between the two key moments. Orientation is interpolated linearly between two keyframes over the interval between them. If the cumulated intervals reach the total frame count of the animation (minus 1) then the next keyframe is the final one.
An orientation track is a succession of keyframe fields (either 6 or 16 bytes depending on the "compression size") defining the orientation of a bone (with respect to its parent) at a key moment. Every pair of keyframes is separated by an interval field (one byte) defining the number of frames between the two key moments. Orientation is interpolated linearly between two keyframes over the interval between them. If the cumulated intervals reach the total frame count of the animation (minus 1) then the next keyframe is the final one.


Thus the length of the track is determined upon reading
Thus the length of the track is determined upon reading
===Compression size 6===
===Compression size 6===
{|border="1" cellspacing="0" align="right"
{|border="1" cellspacing="0" align="right"