formats:modules:derigxml:xml_rig_file_.rig.xml
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision |
formats:modules:derigxml:xml_rig_file_.rig.xml [2019/05/08 22:31] – dragonlord | formats:modules:derigxml:xml_rig_file_.rig.xml [2019/05/24 23:43] – ↷ Links adapted because of a move operation dragonlord |
---|
{{tag>physics rig collision}} | {{tag>physics rig fileformat}} |
<WRAP youarehere> | <WRAP youarehere> |
[[:start|Start Page]] >> [[gamedev:main|Game Development with the Drag[en]gine]] >> **Rig File Format** | [[:start|Start Page]] >> [[:gamedev|Game Development with the Drag[en]gine]] >> **Rig File Format** |
</WRAP> | </WRAP> |
| |
| ====== Rig File Format (*.derig) ====== |
| |
The rig file format is recognized by the [[http://dragengine.rptd.ch/module.php?id=8|Rig XML Module]]. The file is an XML file with a simple structure to define a rig to be used for a component. Rigs are used for two different purpose. First they are used to deform a model using bone weighted vertices. Second they are used to define physics properties for a rig or component collider. The bones in the rig file are connected to each other forming a skeleton starting at one or more root bones. Usually only one root bone is used but depenging on the use of the rig more than one root bone can be specified. The bones are stored in the rig file in their relaxed position hence the position where they have no translation, rotation and no scaling relative to the origin of the entire rig. Physics properties can be specified for the entire rig and/or individual bones. Shapes define the individual enclosing shape for the entire rig and/or each individual bone. Shapes can be simple ( one shape ) or complex ( multiple shapes ) in which case the union of the shapes becomes the final shape. | The rig file format is recognized by the [[http://dragengine.rptd.ch/module.php?id=8|Rig XML Module]]. The file is an XML file with a simple structure to define a rig to be used for a component. Rigs are used for two different purpose. First they are used to deform a model using bone weighted vertices. Second they are used to define physics properties for a rig or component collider. The bones in the rig file are connected to each other forming a skeleton starting at one or more root bones. Usually only one root bone is used but depenging on the use of the rig more than one root bone can be specified. The bones are stored in the rig file in their relaxed position hence the position where they have no translation, rotation and no scaling relative to the origin of the entire rig. Physics properties can be specified for the entire rig and/or individual bones. Shapes define the individual enclosing shape for the entire rig and/or each individual bone. Shapes can be simple ( one shape ) or complex ( multiple shapes ) in which case the union of the shapes becomes the final shape. |
| |
====== Structure ====== | ====== Structure ====== |
| |
* rig | * rig |
* comments | * comments |
| |
====== 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|-| |
| |
====== Sample file ====== | ====== Sample file ====== |
| |
<code xml><?xml version="1.0" encoding="ISO-8859-1"?> | <code xml><?xml version="1.0" encoding="ISO-8859-1"?> |
<!DOCTYPE rig SYSTEM "DragengineRig.dtd"> | <!DOCTYPE rig SYSTEM "DragengineRig.dtd"> |
formats/modules/derigxml/xml_rig_file_.rig.xml.txt · Last modified: 2020/10/26 23:03 by dragonlord