This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| formats:modules:derigxml:xml_rig_file_.rig.xml [2008/03/21 00:35] – dragonlord | formats:modules:derigxml:xml_rig_file_.rig.xml [2020/10/26 23:03] (current) – [Sample file] dragonlord | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Rig File format ====== | + | {{tag> |
| - | The rig file format is recognized by the [[http:// | + | <WRAP youarehere> |
| + | [[:start|Start Page]] >> [[: | ||
| + | </WRAP> | ||
| + | ====== Rig File Format (*.derig) ====== | ||
| + | The rig file format is recognized by the [[http:// | ||
| + | ====== Structure ====== | ||
| - | |||
| - | ====== Structure ====== | ||
| * rig | * rig | ||
| * comments | * comments | ||
| Line 20: | Line 23: | ||
| * dynamic | * dynamic | ||
| * parent | * parent | ||
| - | * sphere | + | * < |
| - | * position | + | * < |
| - | * x, y, z | + | |
| - | * radius | + | |
| - | * box | + | |
| - | * position | + | |
| - | * x, y, z | + | |
| - | * rotation | + | |
| - | * x, y, z | + | |
| - | * halfExtends | + | |
| - | * x, y, z | + | |
| - | * cylinder | + | |
| - | * position | + | |
| - | * x, y, z | + | |
| - | * rotation | + | |
| - | * x, y, z | + | |
| - | * topRadius | + | |
| - | * bottomRadius | + | |
| - | * capsule | + | |
| - | * position | + | |
| - | * x, y, z | + | |
| - | * rotation | + | |
| - | * x, y, z | + | |
| - | * topRadius | + | |
| - | * bottomRadius | + | |
| + | Where < | ||
| + | * sphere | ||
| + | * position | ||
| + | * x, y, z | ||
| + | * radius | ||
| + | * box | ||
| + | * position | ||
| + | * x, y, z | ||
| + | * rotation | ||
| + | * x, y, z | ||
| + | * halfExtends | ||
| + | * x, y, z | ||
| + | * cylinder | ||
| + | * position | ||
| + | * x, y, z | ||
| + | * rotation | ||
| + | * x, y, z | ||
| + | * halfHeight | ||
| + | * topRadius | ||
| + | * bottomRadius | ||
| + | * radius | ||
| + | * capsule | ||
| + | * position | ||
| + | * x, y, z | ||
| + | * rotation | ||
| + | * x, y, z | ||
| + | * halfHeight | ||
| + | * topRadius | ||
| + | * bottomRadius | ||
| + | * radius | ||
| ====== Tags ====== | ====== Tags ====== | ||
| + | |||
| ^Tag^Description^Required^Occurance^Default^ | ^Tag^Description^Required^Occurance^Default^ | ||
| |rig|Defines the properties of the entire rig.|yes|once|-| | |rig|Defines the properties of the entire rig.|yes|once|-| | ||
| Line 70: | Line 81: | ||
| |cylinder.position|Position of the cylinder shape.|no|once|(0, | |cylinder.position|Position of the cylinder shape.|no|once|(0, | ||
| |cylinder.rotation|Rotation of the cylinder shape. Rotation is counter clockwise for all axes and is measured in degrees.|no|once|(0, | |cylinder.rotation|Rotation of the cylinder shape. Rotation is counter clockwise for all axes and is measured in degrees.|no|once|(0, | ||
| + | |cylinder.halfHeight|Half height of the cylinder. This is half the length of the top part of the cylinder to the bottom part.|no|once|0.5| | ||
| |cylinder.topRadius|Radius of the top part of the cylinder.|no|once|0.5| | |cylinder.topRadius|Radius of the top part of the cylinder.|no|once|0.5| | ||
| |cylinder.bottomRadius|Radius of the bottom part of the cylinder.|no|once|0.5| | |cylinder.bottomRadius|Radius of the bottom part of the cylinder.|no|once|0.5| | ||
| Line 76: | Line 88: | ||
| |capsule.position|Position of the capsule shape.|no|once|(0, | |capsule.position|Position of the capsule shape.|no|once|(0, | ||
| |capsule.rotation|Rotation of the capsule shape. Rotation is counter clockwise for all axes and is measured in degrees.|no|once|(0, | |capsule.rotation|Rotation of the capsule shape. Rotation is counter clockwise for all axes and is measured in degrees.|no|once|(0, | ||
| + | |capsule.halfHeight|Half height of the capsule. This is half the length of the top sphere center of the cylinder to the bottom one.|no|once|0.5| | ||
| |capsule.topRadius|Radius of the top part of the capsule.|no|once|0.5| | |capsule.topRadius|Radius of the top part of the capsule.|no|once|0.5| | ||
| |capsule.bottomRadius|Radius of the bottom part of the capsule.|no|once|0.5| | |capsule.bottomRadius|Radius of the bottom part of the capsule.|no|once|0.5| | ||
| |capsule.radius|Shortcut to define the top and bottom radius of the capsule to the same value.|no|once|0.5| | |capsule.radius|Shortcut to define the top and bottom radius of the capsule to the same value.|no|once|0.5| | ||
| + | |||
| ====== Sample file ====== | ====== Sample file ====== | ||
| + | |||
| <code xml><? | <code xml><? | ||
| - | < | ||
| <rig> | <rig> | ||
| + | < | ||
| - | <author>RPTD (roland@rptd.ch)</author> | + | <bone> |
| - | + | <name>rootBone</name> | |
| - | <bone name=" | + | < |
| - | < | + | <x>0</x> <y>0</y> <z>0</z> |
| - | < | + | </ |
| - | < | + | < |
| + | <x>0</x> <y>0</y> <z>0</z> | ||
| + | </ | ||
| + | < | ||
| + | <x>0</x> <y>0.2</y> <z>0</z> | ||
| + | </ | ||
| < | < | ||
| - | <center | + | <position> |
| - | <halfSize | + | <x>0</x> <y>0</y> <z>0</z> |
| + | </ | ||
| + | < | ||
| + | <x>0.2</x> <y>0.4</y> <z>0.1</ | ||
| + | </halfExtends> | ||
| </ | </ | ||
| < | < | ||
| Line 99: | Line 123: | ||
| </ | </ | ||
| - | <bone name=" | + | <bone> |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | <x>0</x> <y>0.6</y> <z>0</z> |
| - | <box> | + | </ |
| - | <center | + | < |
| - | <halfSize x="0.1" y="0.15" z=" | + | <x>0</x> <y>0</y> <z>0</z> |
| - | </box> | + | </rotation> |
| + | < | ||
| + | <x>0</x> <y>0.75</y> <z>0</z> | ||
| + | </ | ||
| + | < | ||
| + | <position> | ||
| + | <x>0</x> <y>0</y> <z>0</ | ||
| + | </ | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | < | ||
| + | <topRadius> | ||
| + | < | ||
| + | </capsule> | ||
| < | < | ||
| < | < | ||
| Line 114: | Line 152: | ||
| </ | </ | ||
| </ | </ | ||
| - | |||
| - | ====== Links ====== | ||
| - | * [[gamedev: | ||
| - | * [[: | ||