User Tools

Site Tools


formats:modules:deskinxml:xml_skin_file_.skin.xml

This is an old revision of the document!


Table of Contents

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.

Structure

XML File Structure

Tags

TagDescriptionRequiredOccuranceDefault
skinDefines the skin.yesonce-
textureDefines a named texture. Name has to be unique ( attributer 'name' ).nomultiple-
fullAlphaIf specified full alpha is used instead of masked alphanoonce-
valueDefines a property with the type in the 'property' attribute having a static value as specified in the cdata.nomultiple0
colorDefines 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.nomultiple(0,0,0,1)
imageDefines a property with the type in the 'property' attribute having an image as specified by the cdata ( a path to the image file ).nomultiple-
sourceDefines 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.nomultiple-
renderableDefines 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.nomultiple-

Sample file

<?xml version='1.0' encoding='ISO-8859-1'?>
<!DOCTYPE skin SYSTEM "DragengineSkin.dtd">
<skin>
	<texture name="skin">
		<image property="diffuse">skin_diffuse.png</image>
		<color property="normal" r="0.5" g="0.5" b="1.0"/>
		<value property="specularity">0.2</value>
		<renderable property="transparency">dynamicTransparency</renderable>
	</texture>
</skin>
You could leave a comment if you were logged in.
formats/modules/deskinxml/xml_skin_file_.skin.xml.1354384835.txt.gz · Last modified: 2012/12/01 18:00 by dragonlord