Both sides previous revisionPrevious revisionNext revision | Previous revision |
formats:modules:deskinxml:xml_skin_file_.skin.xml [2012/12/01 18:00] – dragonlord | formats:modules:deskinxml:xml_skin_file_.skin.xml [2019/05/24 23:43] (current) – ↷ Links adapted because of a move operation dragonlord |
---|
| {{tag>graphic skin texture fileformat}} |
<WRAP youarehere> | <WRAP youarehere> |
[[:start|Start Page]] >> [[gamedev:main|Game Development with the Drag[en]gine]] >> **Skin File Format** | [[:start|Start Page]] >> [[:gamedev|Game Development with the Drag[en]gine]] >> **Skin File Format** |
</WRAP> | </WRAP> |
| |
| ====== Skin File Format (*.deskin) ====== |
| |
The skin file format is recognized by the [[http://dragengine.rptd.ch/module.php?id=10|Drag[en]gine Skin XML Module]]. The file is an XML file with a simple structure to define a skin. | The skin file format is recognized by the [[http://dragengine.rptd.ch/module.php?id=10|Drag[en]gine Skin XML Module]]. The file is an XML file with a simple structure to define a skin. |
====== 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 skin SYSTEM "DragengineSkin.dtd"> | <!DOCTYPE skin SYSTEM 'DragengineSkin.dtd'> |
<skin> | <skin> |
<texture name="skin"> | <texture name='material'> |
<image property="diffuse">skin_diffuse.png</image> | <image property='color'>color.png</image> |
<color property="normal" r="0.5" g="0.5" b="1.0"/> | <renderable property='color.tint'>tint</renderable> |
<value property="specularity">0.2</value> | <image property='normal'>normal.png</image> |
<renderable property="transparency">dynamicTransparency</renderable> | <color property='reflectivity' r='0.17' g='0.17' b='0.17'/> |
| <image property='roughness'>roughness.png</image> |
| <value property='roughness.remap.lower'>0.1</value> |
| <value property='roughness.remap.upper'>0.2</value> |
</texture> | </texture> |
</skin></code> | </skin></code> |