This repository has been archived by the owner on Jul 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
dotscene.dtd
276 lines (240 loc) · 6.68 KB
/
dotscene.dtd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
<!ELEMENT scene (nodes?, externals?, environment?, terrain?, userData?, light?, camera?)>
<!ATTLIST scene
formatVersion CDATA #FIXED "1.1"
id ID #IMPLIED
sceneManager CDATA #IMPLIED
minOgreVersion CDATA #IMPLIED
author CDATA #IMPLIED
>
<!ELEMENT terrainGroup (terrain*)>
<!ATTLIST terrainGroup
size CDATA #REQUIRED
worldSize CDATA #REQUIRED
>
<!ELEMENT terrain EMPTY>
<!ATTLIST terrain
x CDATA #REQUIRED
y CDATA #REQUIRED
dataFile CDATA #REQUIRED
>
<!ELEMENT nodes (node*, position?, rotation?, scale?)>
<!ELEMENT node (position?, rotation?, scale?, lookTarget?, trackTarget?, userData?, node*, entity*, light*, camera*, particleSystem*, billboardSet*, plane*)>
<!ATTLIST node
name CDATA #IMPLIED
id ID #IMPLIED
isTarget (true | false) "true"
>
<!ELEMENT particleSystem (userData?)>
<!ATTLIST particleSystem
name CDATA #IMPLIED
id ID #IMPLIED
template CDATA #REQUIRED
>
<!ELEMENT light (colourDiffuse?, colourSpecular?, lightRange?, lightAttenuation?, userData?)>
<!ATTLIST light
name CDATA #IMPLIED
id ID #IMPLIED
type (point | directional | spot ) "point"
visible (true | false) "true"
castShadows (true | false) "true"
powerScale CDATA "1.0"
>
<!ELEMENT camera (clipping?, userData?)>
<!ATTLIST camera
name CDATA #IMPLIED
id ID #IMPLIED
fov CDATA #IMPLIED
aspectRatio CDATA #IMPLIED
projectionType (perspective | orthographic) "perspective"
>
<!ELEMENT trackTarget (localDirection?, offset?)>
<!ATTLIST trackTarget
nodeName CDATA #REQUIRED
>
<!ELEMENT lookTarget (position?, localDirection?)>
<!ATTLIST lookTarget
nodeName CDATA #IMPLIED
relativeTo (local | parent | world) "parent"
>
<!ELEMENT lightAttenuation EMPTY>
<!ATTLIST lightAttenuation
range CDATA #IMPLIED
constant CDATA #IMPLIED
linear CDATA #IMPLIED
quadratic CDATA #IMPLIED
>
<!ELEMENT lightRange EMPTY>
<!ATTLIST lightRange
inner CDATA #REQUIRED
outer CDATA #REQUIRED
falloff CDATA #REQUIRED
>
<!ELEMENT entity (userData?)>
<!ATTLIST entity
name CDATA #IMPLIED
id ID #IMPLIED
meshFile CDATA #REQUIRED
material CDATA #IMPLIED
static (true | false) "false"
castShadows (true | false) "true"
>
<!ELEMENT environment (fog?, skyBox?, skyDome?, skyPlane?, colourAmbient?, colourBackground?)>
<!ELEMENT clipping EMPTY>
<!ATTLIST clipping
near CDATA #REQUIRED
far CDATA #REQUIRED
>
<!ELEMENT fog (colourDiffuse?)>
<!ATTLIST fog
expDensity CDATA "0.001"
linearStart CDATA "0.0"
linearEnd CDATA "1.0"
mode (none | exp | exp2 | linear) "none"
>
<!ELEMENT skyBox (rotation?)>
<!ATTLIST skyBox
material CDATA #REQUIRED
distance CDATA "5000"
drawFirst (true | false) "true"
>
<!ELEMENT skyDome (rotation?)>
<!ATTLIST skyDome
material CDATA #REQUIRED
curvature CDATA "10"
tiling CDATA "8"
distance CDATA "4000"
drawFirst (true | false) "true"
>
<!ELEMENT skyPlane EMPTY>
<!ATTLIST skyPlane
material CDATA #REQUIRED
planeX CDATA "0"
planeY CDATA "-1"
planeZ CDATA "0"
planeD CDATA "5000"
scale CDATA "1000"
bow CDATA "0"
tiling CDATA "10"
drawFirst (true | false) "true"
>
<!ELEMENT billboardSet (billboard*)>
<!ATTLIST billboardSet
name CDATA #REQUIRED
material CDATA #REQUIRED
id ID #IMPLIED
width CDATA "10"
height CDATA "10"
type (orientedCommon | orientedSelf | point) "point"
origin (bottomLeft | bottomCenter | bottomRight | left | center | right | topLeft | topCenter | topRight) "center"
>
<!ELEMENT billboard (position?, rotation?, colourDiffuse?)>
<!ATTLIST billboard
id ID #IMPLIED
width CDATA #IMPLIED
height CDATA #IMPLIED
>
<!ELEMENT plane (normal, upVector?)>
<!ATTLIST plane
name CDATA #REQUIRED
id ID #IMPLIED
distance CDATA #REQUIRED
width CDATA #REQUIRED
height CDATA #REQUIRED
xSegments CDATA "1"
ySegments CDATA "1"
numTexCoordSets CDATA "1"
uTile CDATA "1"
vTile CDATA "1"
material CDATA #IMPLIED
normals (true | false) "true"
>
<!ELEMENT externals (item*)>
<!ELEMENT item (file)>
<!ATTLIST item
type CDATA #REQUIRED
>
<!ELEMENT file EMPTY>
<!ATTLIST file
name CDATA #REQUIRED
>
<!ELEMENT position EMPTY>
<!ATTLIST position
x CDATA #REQUIRED
y CDATA #REQUIRED
z CDATA #REQUIRED
>
<!ELEMENT rotation EMPTY>
<!ATTLIST rotation
qx CDATA #IMPLIED
qy CDATA #IMPLIED
qz CDATA #IMPLIED
qw CDATA #IMPLIED
axisX CDATA #IMPLIED
axisY CDATA #IMPLIED
axisZ CDATA #IMPLIED
angle CDATA #IMPLIED
angleX CDATA #IMPLIED
angleY CDATA #IMPLIED
angleZ CDATA #IMPLIED
>
<!ELEMENT normal EMPTY>
<!ATTLIST normal
x CDATA #REQUIRED
y CDATA #REQUIRED
z CDATA #REQUIRED
>
<!ELEMENT upVector EMPTY>
<!ATTLIST upVector
x CDATA #REQUIRED
y CDATA #REQUIRED
z CDATA #REQUIRED
>
<!ELEMENT offset EMPTY>
<!ATTLIST offset
x CDATA #REQUIRED
y CDATA #REQUIRED
z CDATA #REQUIRED
>
<!ELEMENT localDirection EMPTY>
<!ATTLIST localDirection
x CDATA #REQUIRED
y CDATA #REQUIRED
z CDATA #REQUIRED
>
<!ELEMENT scale EMPTY>
<!ATTLIST scale
x CDATA #REQUIRED
y CDATA #REQUIRED
z CDATA #REQUIRED
>
<!ELEMENT colourDiffuse EMPTY>
<!ATTLIST colourDiffuse
r CDATA #REQUIRED
g CDATA #REQUIRED
b CDATA #REQUIRED
>
<!ELEMENT colourSpecular EMPTY>
<!ATTLIST colourSpecular
r CDATA #REQUIRED
g CDATA #REQUIRED
b CDATA #REQUIRED
>
<!ELEMENT colourAmbient EMPTY>
<!ATTLIST colourAmbient
r CDATA #REQUIRED
g CDATA #REQUIRED
b CDATA #REQUIRED
>
<!ELEMENT colourBackground EMPTY>
<!ATTLIST colourBackground
r CDATA #REQUIRED
g CDATA #REQUIRED
b CDATA #REQUIRED
>
<!ELEMENT userData (property+)>
<!ELEMENT property EMPTY>
<!ATTLIST property
name CDATA #REQUIRED
type ( bool | float | int | str ) "str"
data CDATA #REQUIRED
>