Sample showing the structure of the XML model files.

This commit is contained in:
Mark Bernard 2004-09-29 01:57:16 +00:00
parent a391fe3100
commit 99e12efd6a
1 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,40 @@
<?xml version="1.0" standalone="no"?>
<meshmodel xmlns="x-schema:MeshModelSchema.xml"
modelname="example" material="test" vertexcount="4"
type="meshed">
<mesh>
<triangle a="0" b="1" c="2" />
<triangle a="2" b="3" c="0" />
</mesh>
<skin>
<texcoord u="0.0" v="1.0" />
<texcoord u="1.0" v="1.0" />
<texcoord u="1.0" v="0.0" />
<texcoord u="0.0" v="0.0" />
</skin>
<colors>
<color red="127" green="0" blue="0" />
<color red="0" green="0" blue="127" />
<color red="0" green="127" blue="0" />
<color red="127" green="127" blue="127" />
</colors>
<animation>
<sequence sequencename="plane">
<frame time="1.0">
<vertex x="-1.0" y="1.0" z="0.0" />
<vertex x="1.0" y="1.0" z="0.0" />
<vertex x="1.0" y="-1.0" z="0.0" />
<vertex x="-1.0" y="-1.0" z="0.0" />
<action></action>
</frame>
<frame time="5.0">
<vertex x="1.0" y="1.0" z="0.0" />
<vertex x="-1.0" y="1.0" z="0.0" />
<vertex x="-1.0" y="-1.0" z="0.0" />
<vertex x="1.0" y="-1.0" z="0.0" />
<action></action>
</frame>
</sequence>
</animation>
</meshmodel>