Start Page » Game Development with the Drag[en]gine » Skin File Format
The skin file format is recognized by the Drag[en]gine Skin XML Module. The file is an XML file with a simple structure to define a skin.
Tag | Description | Required | Occurance | Default |
---|---|---|---|---|
skin | Defines the skin. | yes | once | - |
texture | Defines a named texture. Name has to be unique ( attributer 'name' ). | no | multiple | - |
fullAlpha | If specified full alpha is used instead of masked alpha | no | once | - |
value | Defines a property with the type in the 'property' attribute having a static value as specified in the cdata. | no | multiple | 0 |
color | Defines a property with the type in the 'property' attribute having a static color as specified by the attributes 'r' for red, 'g' for green, 'b' for blue and 'a' for alpha. The tags r/g/b/a are optional. If not set they default to r=0, g=0, b=0 and a=1. | no | multiple | (0,0,0,1) |
image | Defines a property with the type in the 'property' attribute having an image as specified by the cdata ( a path to the image file ). | no | multiple | - |
source | Defines a property with the type in the 'property' attribute having a complex and dynamic content. Definition is not finished yet so this tag does not do much yet. | no | multiple | - |
renderable | Defines a property with the type in the 'property' attribute having a renderable name ( cdata string ). The content of this property is defined at runtime using a component renderable of the same name. Name can be reused in multiple properties. | no | multiple | - |
<?xml version='1.0' encoding='ISO-8859-1'?> <!DOCTYPE skin SYSTEM 'DragengineSkin.dtd'> <skin> <texture name='material'> <image property='color'>color.png</image> <renderable property='color.tint'>tint</renderable> <image property='normal'>normal.png</image> <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> </skin>