User Tools

Site Tools


formats:modules:derigxml:xml_rig_file_.rig.xml

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
formats:modules:derigxml:xml_rig_file_.rig.xml [2019/05/08 22:32] dragonlordformats:modules:derigxml:xml_rig_file_.rig.xml [2020/10/26 23:03] (current) – [Sample file] dragonlord
Line 1: Line 1:
 {{tag>physics rig fileformat}} {{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
Line 55: Line 58:
  
 ====== 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 91: Line 95:
  
 ====== 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"> 
 <rig> <rig>
  <comment>A test rig by RPTD (roland@rptd.ch)</comment>  <comment>A test rig by RPTD (roland@rptd.ch)</comment>
formats/modules/derigxml/xml_rig_file_.rig.xml.1557354731.txt.gz · Last modified: 2019/05/08 22:32 by dragonlord