OBD:TRTA: Difference between revisions

6 bytes removed ,  3 October 2010
m
0-based bone ids
mNo edit summary
m (0-based bone ids)
Line 21: Line 21:
;Skeleton
;Skeleton
:The hierarchy of the bones (parents, children, siblings) is defined in the [[OBD:TRIA|TRIA]] file (linked to from the same [[OBD:TRCM|TRCM]] file as the TRTA).
:The hierarchy of the bones (parents, children, siblings) is defined in the [[OBD:TRIA|TRIA]] file (linked to from the same [[OBD:TRCM|TRCM]] file as the TRTA).
:If the (0°, 0°, 0°) orientation is set for every bone, then all the bones point along the x axis of the character (from right to left) and face upwards.
:If the (0°, 0°, 0°) orientation is set for every bone, then all the bones point along the X axis of the character (from right to left) and face upwards.
:Viewed from above, you get something like this : "o" is a pivot (yeah, the shoulders are attached to the neck), and ":)" is a smiley :)  
:Viewed from above, you get something like this : "o" is a pivot (yes, the shoulders are attached to the neck), and ":)" is a smiley :)  
  15-o-14-o-13-o-12-o 4-o-3-o-2-o      ^ z
  14-o-13-o-12-o-11-o 3-o-2-o-1-o      ^ z
                   |           |      ^
                   |           |      ^
             :)11-o-10-o-9-o-8-o-1 < < <^< < <
             :)10-o-9-o-8-o-7-o-0 < < <^< < <
                   |           |  x  ^
                   |           |  x  ^
  19-o-18-o-17-o-16-o 7-o-6-o-5-o      ^
  18-o-17-o-16-o-15-o 6-o-5-o-4-o      ^
;XYZ offsets
;XYZ offsets
:The xyz-offsets in the TRTA are offsets (aka "translations") of a ''bone'' relative to its ''parent'' in that system of coordinates (see above).
:The XYZ-offsets in the TRTA are offsets (aka "translations") of a ''bone'' relative to its ''parent'' in that system of coordinates (see above).
:Thus they effectively specify the relative positions of the joints.
:Thus they effectively specify the relative positions of the joints.
:Not sure how many different TRTA there are in Oni. Probably one for every major ONCC.
:Not sure how many different TRTA there are in Oni. Probably one for every major ONCC.