source: GTP/trunk/Lib/Illum/GPUObscurancesGT/docs/ogreskeletonxml.dtd @ 930

Revision 930, 1.5 KB checked in by igarcia, 18 years ago (diff)
Line 
1<!ELEMENT skeleton (bones, bonehierarchy, animations?, animationlinks?) >
2<!ELEMENT bones (bone+) >
3<!ELEMENT bone (position, rotation, scale?) >
4<!ATTLIST bone
5        id              CDATA   #REQUIRED
6        name    CDATA   #REQUIRED>
7<!ELEMENT position EMPTY>
8<!ATTLIST position
9        x               CDATA   #REQUIRED
10        y               CDATA   #REQUIRED
11        z               CDATA   #REQUIRED>
12<!ELEMENT rotation (axis)>
13<!ATTLIST rotation
14        angle   CDATA   #REQUIRED>
15<!ELEMENT axis EMPTY >
16<!ATTLIST axis
17        x               CDATA   #REQUIRED
18        y               CDATA   #REQUIRED
19        z               CDATA   #REQUIRED>
20<!ELEMENT bonehierarchy (boneparent*)>
21<!ELEMENT boneparent EMPTY>
22<!-- NB both the below are bone names, not ids -->
23<!ATTLIST boneparent
24        bone    CDATA   #REQUIRED
25        parent  CDATA   #REQUIRED>
26<!ELEMENT animations (animation+)>
27<!ELEMENT animation (tracks)>
28<!ATTLIST animation
29        name    CDATA   #REQUIRED
30        length  CDATA   #REQUIRED>
31<!ELEMENT tracks (track+)>
32<!ELEMENT track (keyframes)>
33<!ATTLIST track
34        bone    CDATA   #REQUIRED>
35<!ELEMENT keyframes (keyframe+)>
36<!ELEMENT keyframe (translate?, rotate?, scale?)>
37<!ATTLIST keyframe
38        time    CDATA   #REQUIRED>
39<!ELEMENT translate EMPTY>
40<!ATTLIST translate
41        x               CDATA   #REQUIRED
42        y               CDATA   #REQUIRED
43        z               CDATA   #REQUIRED>
44<!ELEMENT rotate (axis)>
45<!ATTLIST rotate
46        angle   CDATA   #REQUIRED>
47<!ELEMENT scale EMPTY>
48<!-- UNIFORM SCALE is 'factor', or you can use per-axis (not both) -->
49<!ATTLIST scale
50        factor  CDATA   #IMPLIED
51        x               CDATA   #IMPLIED
52        y               CDATA   #IMPLIED
53        z               CDATA   #IMPLIED>
54<!ELEMENT animationlinks (animationlink+)>
55<!ELEMENT animationlink EMPTY>
56<!ATTLIST animationlink
57        skeletonName    CDATA   #REQUIRED
58        scale                   CDATA   "1.0">
59
Note: See TracBrowser for help on using the repository browser.