arx-convert 11.1.0 → 13.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -6
- package/dist/amb/AMB.d.ts +1 -0
- package/dist/amb/AMB.js +1 -0
- package/dist/amb/AMB.js.map +1 -1
- package/dist/common/Color.js +1 -1
- package/dist/common/Color.js.map +1 -1
- package/dist/common/types.d.ts +20 -0
- package/dist/dlf/DLF.d.ts +4 -4
- package/dist/dlf/DLF.js +16 -10
- package/dist/dlf/DLF.js.map +1 -1
- package/dist/dlf/DlfHeader.d.ts +16 -5
- package/dist/dlf/DlfHeader.js +13 -11
- package/dist/dlf/DlfHeader.js.map +1 -1
- package/dist/dlf/Fog.d.ts +23 -5
- package/dist/dlf/Fog.js +4 -4
- package/dist/dlf/Fog.js.map +1 -1
- package/dist/dlf/{InteactiveObject.d.ts → InteractiveObject.d.ts} +6 -2
- package/dist/dlf/{InteactiveObject.js → InteractiveObject.js} +5 -5
- package/dist/dlf/InteractiveObject.js.map +1 -0
- package/dist/dlf/ZoneAndPathHeader.d.ts +7 -3
- package/dist/dlf/ZoneAndPathHeader.js +6 -6
- package/dist/dlf/ZoneAndPathHeader.js.map +1 -1
- package/dist/dlf/ZoneAndPathPoint.d.ts +6 -3
- package/dist/dlf/ZoneAndPathPoint.js +17 -12
- package/dist/dlf/ZoneAndPathPoint.js.map +1 -1
- package/dist/ftl/FTL.d.ts +3 -1
- package/dist/ftl/FTL.js +1 -0
- package/dist/ftl/FTL.js.map +1 -1
- package/dist/ftl/Face.d.ts +5 -1
- package/dist/ftl/Face.js +5 -1
- package/dist/ftl/Face.js.map +1 -1
- package/dist/fts/Anchor.d.ts +2 -1
- package/dist/fts/Anchor.js.map +1 -1
- package/dist/fts/AnchorData.d.ts +1 -1
- package/dist/fts/AnchorData.js +3 -3
- package/dist/fts/AnchorData.js.map +1 -1
- package/dist/fts/EPData.d.ts +2 -2
- package/dist/fts/EPData.js +4 -4
- package/dist/fts/EPData.js.map +1 -1
- package/dist/fts/FTS.d.ts +13 -5
- package/dist/fts/FTS.js +27 -3
- package/dist/fts/FTS.js.map +1 -1
- package/dist/fts/FtsHeader.js +1 -1
- package/dist/fts/FtsHeader.js.map +1 -1
- package/dist/fts/Polygon.d.ts +8 -5
- package/dist/fts/Polygon.js +23 -7
- package/dist/fts/Polygon.js.map +1 -1
- package/dist/fts/Portal.d.ts +1 -2
- package/dist/fts/Portal.js +6 -5
- package/dist/fts/Portal.js.map +1 -1
- package/dist/fts/RoomDistance.d.ts +3 -0
- package/dist/fts/RoomDistance.js +1 -1
- package/dist/fts/RoomDistance.js.map +1 -1
- package/dist/fts/SceneHeader.d.ts +3 -0
- package/dist/fts/SceneHeader.js +3 -3
- package/dist/fts/SceneHeader.js.map +1 -1
- package/dist/fts/TextureContainer.d.ts +3 -0
- package/dist/fts/TextureContainer.js.map +1 -1
- package/dist/fts/TextureVertex.d.ts +3 -1
- package/dist/fts/TextureVertex.js +2 -2
- package/dist/fts/TextureVertex.js.map +1 -1
- package/dist/fts/helpers.d.ts +4 -0
- package/dist/fts/helpers.js +10 -0
- package/dist/fts/helpers.js.map +1 -1
- package/dist/llf/LLF.d.ts +6 -1
- package/dist/llf/LLF.js +1 -0
- package/dist/llf/LLF.js.map +1 -1
- package/dist/llf/Light.d.ts +11 -13
- package/dist/llf/Light.js +2 -2
- package/dist/llf/Light.js.map +1 -1
- package/dist/llf/LlfHeader.d.ts +6 -3
- package/dist/llf/LlfHeader.js +7 -7
- package/dist/llf/LlfHeader.js.map +1 -1
- package/dist/tea/KeyFrame.d.ts +1 -1
- package/dist/tea/KeyFrame.js +2 -2
- package/dist/tea/KeyFrame.js.map +1 -1
- package/dist/tea/TEA.d.ts +2 -1
- package/dist/tea/TEA.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
- package/schemas/amb.schema.json +123 -0
- package/schemas/dlf.schema.json +408 -0
- package/schemas/ftl.schema.json +253 -0
- package/schemas/fts.schema.json +414 -0
- package/schemas/llf.schema.json +169 -0
- package/schemas/tea.schema.json +7 -7
- package/dist/dlf/InteactiveObject.js.map +0 -1
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://arx-tools.github.io/schemas/fts.schema.json",
|
|
4
|
+
"title": "FTS",
|
|
5
|
+
"description": "FTS (FasT Scene) format of Arx Fatalis interpreted as JSON by arx-convert",
|
|
6
|
+
"$defs": {
|
|
7
|
+
"uint8": {
|
|
8
|
+
"type": "integer",
|
|
9
|
+
"minimum": 0,
|
|
10
|
+
"maximum": 255
|
|
11
|
+
},
|
|
12
|
+
"vector3": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"properties": {
|
|
15
|
+
"x": {
|
|
16
|
+
"type": "number"
|
|
17
|
+
},
|
|
18
|
+
"y": {
|
|
19
|
+
"type": "number"
|
|
20
|
+
},
|
|
21
|
+
"z": {
|
|
22
|
+
"type": "number"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": [
|
|
26
|
+
"x",
|
|
27
|
+
"y",
|
|
28
|
+
"z"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"positiveInt16": {
|
|
32
|
+
"type": "integer",
|
|
33
|
+
"minimum": 0,
|
|
34
|
+
"maximum": 32767
|
|
35
|
+
},
|
|
36
|
+
"positiveInt32": {
|
|
37
|
+
"type": "integer",
|
|
38
|
+
"minimum": 0,
|
|
39
|
+
"maximum": 2147483647
|
|
40
|
+
},
|
|
41
|
+
"vertex": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"properties": {
|
|
44
|
+
"x": {
|
|
45
|
+
"type": "number"
|
|
46
|
+
},
|
|
47
|
+
"y": {
|
|
48
|
+
"type": "number"
|
|
49
|
+
},
|
|
50
|
+
"z": {
|
|
51
|
+
"type": "number"
|
|
52
|
+
},
|
|
53
|
+
"u": {
|
|
54
|
+
"type": "number"
|
|
55
|
+
},
|
|
56
|
+
"v": {
|
|
57
|
+
"type": "number"
|
|
58
|
+
},
|
|
59
|
+
"llfColorIdx": {
|
|
60
|
+
"$ref": "#/$defs/positiveInt32"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"required": [
|
|
64
|
+
"x",
|
|
65
|
+
"y",
|
|
66
|
+
"z",
|
|
67
|
+
"u",
|
|
68
|
+
"v"
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
"int16": {
|
|
72
|
+
"type": "integer",
|
|
73
|
+
"minimum": -32768,
|
|
74
|
+
"maximum": 32767
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"type": "object",
|
|
78
|
+
"properties": {
|
|
79
|
+
"header": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"properties": {
|
|
82
|
+
"levelIdx": {
|
|
83
|
+
"type": "integer",
|
|
84
|
+
"minimum": 0
|
|
85
|
+
},
|
|
86
|
+
"mScenePosition": {
|
|
87
|
+
"$ref": "#/$defs/vector3"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"required": [
|
|
91
|
+
"levelIdx",
|
|
92
|
+
"mScenePosition"
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
"uniqueHeaders": {
|
|
96
|
+
"type": "array",
|
|
97
|
+
"items": {
|
|
98
|
+
"type": "object",
|
|
99
|
+
"properties": {
|
|
100
|
+
"path": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"maxLength": 256
|
|
103
|
+
},
|
|
104
|
+
"check": {
|
|
105
|
+
"type": "array",
|
|
106
|
+
"items": {
|
|
107
|
+
"$ref": "#/$defs/uint8"
|
|
108
|
+
},
|
|
109
|
+
"minLength": 512,
|
|
110
|
+
"maxLength": 512
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"required": [
|
|
114
|
+
"path",
|
|
115
|
+
"check"
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"textureContainers": {
|
|
120
|
+
"type": "array",
|
|
121
|
+
"items": {
|
|
122
|
+
"type": "object",
|
|
123
|
+
"properties": {
|
|
124
|
+
"id": {
|
|
125
|
+
"$ref": "#/$defs/positiveInt32"
|
|
126
|
+
},
|
|
127
|
+
"filename": {
|
|
128
|
+
"description": "Filename of an image within graph/obj3d/textures, like \"[stone]_human_castle_wall1.bmp\"",
|
|
129
|
+
"type": "string",
|
|
130
|
+
"maxLength": 256
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"required": [
|
|
134
|
+
"id",
|
|
135
|
+
"filename"
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"cells": {
|
|
140
|
+
"type": "array",
|
|
141
|
+
"items": {
|
|
142
|
+
"type": "object",
|
|
143
|
+
"properties": {
|
|
144
|
+
"anchors": {
|
|
145
|
+
"type": "array",
|
|
146
|
+
"items": {
|
|
147
|
+
"$ref": "#/$defs/positiveInt32"
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"polygons": {
|
|
154
|
+
"type": "array",
|
|
155
|
+
"items": {
|
|
156
|
+
"type": "object",
|
|
157
|
+
"properties": {
|
|
158
|
+
"vertices": {
|
|
159
|
+
"type": "array",
|
|
160
|
+
"items": {
|
|
161
|
+
"$ref": "#/$defs/vertex"
|
|
162
|
+
},
|
|
163
|
+
"minItems": 4,
|
|
164
|
+
"maxItems": 4
|
|
165
|
+
},
|
|
166
|
+
"textureContainerId": {
|
|
167
|
+
"$ref": "#/$defs/positiveInt32"
|
|
168
|
+
},
|
|
169
|
+
"norm": {
|
|
170
|
+
"$ref": "#/$defs/vector3"
|
|
171
|
+
},
|
|
172
|
+
"norm2": {
|
|
173
|
+
"$ref": "#/$defs/vector3"
|
|
174
|
+
},
|
|
175
|
+
"normals": {
|
|
176
|
+
"type": "array",
|
|
177
|
+
"items": {
|
|
178
|
+
"$ref": "#/$defs/vector3"
|
|
179
|
+
},
|
|
180
|
+
"minItems": 4,
|
|
181
|
+
"maxItems": 4
|
|
182
|
+
},
|
|
183
|
+
"transval": {
|
|
184
|
+
"description": "Opacity type and amount when ArxPolygon.flags & ArxPolygonFlags.Transparent: 2 or more = multiplicative; 1 = additive; 0 = normal; -1 or less = subtractive",
|
|
185
|
+
"type": "integer"
|
|
186
|
+
},
|
|
187
|
+
"area": {
|
|
188
|
+
"type": "number"
|
|
189
|
+
},
|
|
190
|
+
"flags": {
|
|
191
|
+
"description": "ArxPolygonFlags",
|
|
192
|
+
"$ref": "#/$defs/positiveInt32"
|
|
193
|
+
},
|
|
194
|
+
"room": {
|
|
195
|
+
"$ref": "#/$defs/positiveInt16"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"required": [
|
|
199
|
+
"vertices",
|
|
200
|
+
"textureContainerId",
|
|
201
|
+
"norm",
|
|
202
|
+
"norm2",
|
|
203
|
+
"transval",
|
|
204
|
+
"area",
|
|
205
|
+
"flags",
|
|
206
|
+
"room"
|
|
207
|
+
]
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"anchors": {
|
|
211
|
+
"type": "array",
|
|
212
|
+
"items": {
|
|
213
|
+
"type": "object",
|
|
214
|
+
"properties": {
|
|
215
|
+
"data": {
|
|
216
|
+
"type": "object",
|
|
217
|
+
"properties": {
|
|
218
|
+
"position": {
|
|
219
|
+
"$ref": "#/$defs/vector3"
|
|
220
|
+
},
|
|
221
|
+
"radius": {
|
|
222
|
+
"type": "number",
|
|
223
|
+
"minimum": 0
|
|
224
|
+
},
|
|
225
|
+
"height": {
|
|
226
|
+
"type": "number",
|
|
227
|
+
"minimum": 0
|
|
228
|
+
},
|
|
229
|
+
"isBlocked": {
|
|
230
|
+
"type": "boolean"
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"required": [
|
|
234
|
+
"position",
|
|
235
|
+
"radius",
|
|
236
|
+
"height",
|
|
237
|
+
"isBlocked"
|
|
238
|
+
]
|
|
239
|
+
},
|
|
240
|
+
"linkedAnchors": {
|
|
241
|
+
"type": "array",
|
|
242
|
+
"items": {
|
|
243
|
+
"$ref": "#/$defs/positiveInt32"
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"required": [
|
|
248
|
+
"data",
|
|
249
|
+
"linkedAnchors"
|
|
250
|
+
]
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
"portals": {
|
|
254
|
+
"type": "array",
|
|
255
|
+
"items": {
|
|
256
|
+
"type": "object",
|
|
257
|
+
"properties": {
|
|
258
|
+
"polygon": {
|
|
259
|
+
"type": "object",
|
|
260
|
+
"properties": {
|
|
261
|
+
"min": {
|
|
262
|
+
"$ref": "#/$defs/vector3"
|
|
263
|
+
},
|
|
264
|
+
"max": {
|
|
265
|
+
"$ref": "#/$defs/vector3"
|
|
266
|
+
},
|
|
267
|
+
"norm": {
|
|
268
|
+
"$ref": "#/$defs/vector3"
|
|
269
|
+
},
|
|
270
|
+
"norm2": {
|
|
271
|
+
"$ref": "#/$defs/vector3"
|
|
272
|
+
},
|
|
273
|
+
"vertices": {
|
|
274
|
+
"type": "array",
|
|
275
|
+
"items": {
|
|
276
|
+
"description": "D3DTLVERTEX with hardcoded color, specular, tu and tv values - see https://learn.microsoft.com/en-us/previous-versions/ms896915(v=msdn.10)",
|
|
277
|
+
"type": "object",
|
|
278
|
+
"properties": {
|
|
279
|
+
"position": {
|
|
280
|
+
"description": "sx, sy and sz of D3DTLVERTEX (screen coordinates)",
|
|
281
|
+
"$ref": "#/$defs/vector3"
|
|
282
|
+
},
|
|
283
|
+
"rhw": {
|
|
284
|
+
"description": "portal bounds radius - used by ARX_PORTALS_Frustrum_ComputeRoom; [r]eciprocal of [h]omogeneous [w] from homogeneous coordinates (x, y, z, w) - see https://learn.microsoft.com/en-us/previous-versions/ms896915(v=msdn.10)#members",
|
|
285
|
+
"type": "number"
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
"required": [
|
|
289
|
+
"position",
|
|
290
|
+
"rhw"
|
|
291
|
+
]
|
|
292
|
+
},
|
|
293
|
+
"minLength": 4,
|
|
294
|
+
"maxLength": 4
|
|
295
|
+
},
|
|
296
|
+
"center": {
|
|
297
|
+
"$ref": "#/$defs/vector3"
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"required": [
|
|
301
|
+
"min",
|
|
302
|
+
"max",
|
|
303
|
+
"norm",
|
|
304
|
+
"norm2",
|
|
305
|
+
"vertices",
|
|
306
|
+
"center"
|
|
307
|
+
]
|
|
308
|
+
},
|
|
309
|
+
"room1": {
|
|
310
|
+
"$ref": "#/$defs/positiveInt32"
|
|
311
|
+
},
|
|
312
|
+
"room2": {
|
|
313
|
+
"$ref": "#/$defs/positiveInt32"
|
|
314
|
+
},
|
|
315
|
+
"usePortal": {
|
|
316
|
+
"$ref": "#/$defs/int16"
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
"required": [
|
|
320
|
+
"polygon",
|
|
321
|
+
"room1",
|
|
322
|
+
"room2",
|
|
323
|
+
"usePortal"
|
|
324
|
+
]
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"rooms": {
|
|
328
|
+
"type": "array",
|
|
329
|
+
"items": {
|
|
330
|
+
"type": "object",
|
|
331
|
+
"properties": {
|
|
332
|
+
"portals": {
|
|
333
|
+
"type": "array",
|
|
334
|
+
"items": {
|
|
335
|
+
"$ref": "#/$defs/positiveInt32"
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
"polygons": {
|
|
339
|
+
"type": "array",
|
|
340
|
+
"items": {
|
|
341
|
+
"type": "object",
|
|
342
|
+
"properties": {
|
|
343
|
+
"cellX": {
|
|
344
|
+
"type": "integer",
|
|
345
|
+
"minimum": 0,
|
|
346
|
+
"maximum": 160
|
|
347
|
+
},
|
|
348
|
+
"cellY": {
|
|
349
|
+
"type": "integer",
|
|
350
|
+
"minimum": 0,
|
|
351
|
+
"maximum": 160
|
|
352
|
+
},
|
|
353
|
+
"polygonIdx": {
|
|
354
|
+
"description": "This number is a counter for polygons in the cell, it has no relation to the order of polygons globally",
|
|
355
|
+
"$ref": "#/$defs/positiveInt16"
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
"required": [
|
|
359
|
+
"cellX",
|
|
360
|
+
"cellY",
|
|
361
|
+
"polygonIdx"
|
|
362
|
+
]
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
"required": [
|
|
367
|
+
"portals",
|
|
368
|
+
"polygons"
|
|
369
|
+
]
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
"roomDistances": {
|
|
373
|
+
"type": "array",
|
|
374
|
+
"items": {
|
|
375
|
+
"type": "object",
|
|
376
|
+
"properties": {
|
|
377
|
+
"distance": {
|
|
378
|
+
"anyOf": [
|
|
379
|
+
{
|
|
380
|
+
"const": -1,
|
|
381
|
+
"description": "-1 means use truedist"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"type": "number",
|
|
385
|
+
"minimum": 0
|
|
386
|
+
}
|
|
387
|
+
]
|
|
388
|
+
},
|
|
389
|
+
"startPosition": {
|
|
390
|
+
"$ref": "#/$defs/vector3"
|
|
391
|
+
},
|
|
392
|
+
"endPosition": {
|
|
393
|
+
"$ref": "#/$defs/vector3"
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
"required": [
|
|
397
|
+
"distance",
|
|
398
|
+
"startPosition",
|
|
399
|
+
"endPosition"
|
|
400
|
+
]
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
"required": [
|
|
405
|
+
"header",
|
|
406
|
+
"textureContainers",
|
|
407
|
+
"cells",
|
|
408
|
+
"polygons",
|
|
409
|
+
"anchors",
|
|
410
|
+
"portals",
|
|
411
|
+
"rooms",
|
|
412
|
+
"roomDistances"
|
|
413
|
+
]
|
|
414
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://arx-tools.github.io/schemas/llf.schema.json",
|
|
4
|
+
"title": "LLF",
|
|
5
|
+
"description": "LLF (Level Lighting File) format of Arx Fatalis interpreted as JSON by arx-convert",
|
|
6
|
+
"$defs": {
|
|
7
|
+
"uint8": {
|
|
8
|
+
"type": "integer",
|
|
9
|
+
"minimum": 0,
|
|
10
|
+
"maximum": 255
|
|
11
|
+
},
|
|
12
|
+
"positiveInt32": {
|
|
13
|
+
"type": "integer",
|
|
14
|
+
"minimum": 0,
|
|
15
|
+
"maximum": 2147483647
|
|
16
|
+
},
|
|
17
|
+
"color": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"properties": {
|
|
20
|
+
"r": {
|
|
21
|
+
"$ref": "#/$defs/uint8"
|
|
22
|
+
},
|
|
23
|
+
"g": {
|
|
24
|
+
"$ref": "#/$defs/uint8"
|
|
25
|
+
},
|
|
26
|
+
"b": {
|
|
27
|
+
"$ref": "#/$defs/uint8"
|
|
28
|
+
},
|
|
29
|
+
"a": {
|
|
30
|
+
"description": "0.0 = fully transparent, 1.0 = fully opaque",
|
|
31
|
+
"type": "number",
|
|
32
|
+
"minimum": 0,
|
|
33
|
+
"maximum": 1
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"required": [
|
|
37
|
+
"r",
|
|
38
|
+
"g",
|
|
39
|
+
"b",
|
|
40
|
+
"a"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"vector3": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"properties": {
|
|
46
|
+
"x": {
|
|
47
|
+
"type": "number"
|
|
48
|
+
},
|
|
49
|
+
"y": {
|
|
50
|
+
"type": "number"
|
|
51
|
+
},
|
|
52
|
+
"z": {
|
|
53
|
+
"type": "number"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"required": [
|
|
57
|
+
"x",
|
|
58
|
+
"y",
|
|
59
|
+
"z"
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"type": "object",
|
|
64
|
+
"properties": {
|
|
65
|
+
"header": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"properties": {
|
|
68
|
+
"lastModifiedBy": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"maxLength": 256
|
|
71
|
+
},
|
|
72
|
+
"lastModifiedAt": {
|
|
73
|
+
"description": "Unix timestamp in seconds",
|
|
74
|
+
"$ref": "#/$defs/positiveInt32"
|
|
75
|
+
},
|
|
76
|
+
"numberOfPolygonsInFTS": {
|
|
77
|
+
"$ref": "#/$defs/positiveInt32"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"required": [
|
|
81
|
+
"lastModifiedBy",
|
|
82
|
+
"lastModifiedAt",
|
|
83
|
+
"numberOfPolygonsInFTS"
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
"lights": {
|
|
87
|
+
"type": "array",
|
|
88
|
+
"items": {
|
|
89
|
+
"type": "object",
|
|
90
|
+
"properties": {
|
|
91
|
+
"position": {
|
|
92
|
+
"$ref": "#/$defs/vector3"
|
|
93
|
+
},
|
|
94
|
+
"color": {
|
|
95
|
+
"$ref": "#/$defs/color"
|
|
96
|
+
},
|
|
97
|
+
"fallStart": {
|
|
98
|
+
"description": "The radius of a sphere around `position` in which the light is at full intensity.",
|
|
99
|
+
"type": "number"
|
|
100
|
+
},
|
|
101
|
+
"fallEnd": {
|
|
102
|
+
"description": "The radius of a sphere around `position` where the light's intensity gradually fades to 0.",
|
|
103
|
+
"type": "number"
|
|
104
|
+
},
|
|
105
|
+
"intensity": {
|
|
106
|
+
"description": "How bright the light is.",
|
|
107
|
+
"type": "number"
|
|
108
|
+
},
|
|
109
|
+
"exFlicker": {
|
|
110
|
+
"description": "This color periodically overrides `color`. The frequency of the flicker cannot be changed. Subtractive color mixing is used, the color will get subtracted from `color` resulting in a negative color",
|
|
111
|
+
"$ref": "#/$defs/color"
|
|
112
|
+
},
|
|
113
|
+
"exRadius": {
|
|
114
|
+
"description": "Determines the spread of the smoke and fire particles: creates a circle around the center of the light with a radius of `exRadius`. When `ArxLightFlags.SpawnFire` is set, then it also sets the radius of the spheare around the light's center which harms the NPCs and the player with fire damage when getting in contact.",
|
|
115
|
+
"type": "number"
|
|
116
|
+
},
|
|
117
|
+
"exFrequency": {
|
|
118
|
+
"description": "How frequently should the light source spawn flame particles when `flags` has `ArxLightFlags.SpawnFire` set, or smoke particle when `ArxLightFlags.SpawnSmoke` is set. The range is between 0.0 and 1.0 where 0.0 completely stops fire from spawning.",
|
|
119
|
+
"type": "number"
|
|
120
|
+
},
|
|
121
|
+
"exSize": {
|
|
122
|
+
"description": "Size of the fire/smoke particles if `ArxLightFlags.SpawnFire` or `ArxLightFlags.SpawnSmoke` is set. The value is supposed to be set between 0.0 and 1.0, but it can go over 1.0 for extreme effect.",
|
|
123
|
+
"type": "number"
|
|
124
|
+
},
|
|
125
|
+
"exSpeed": {
|
|
126
|
+
"description": "How far the fire/smoke particles go during the time they are alive. A larger number will make the particles shoot up like a fountain, a smaller number will make all of them stay in one place. The value is supposed to be set between 0.0 and 1.0, but it can go over 1.0 for extreme effect.",
|
|
127
|
+
"type": "number",
|
|
128
|
+
"minimum": 0,
|
|
129
|
+
"maximum": 9007199254740991
|
|
130
|
+
},
|
|
131
|
+
"exFlareSize": {
|
|
132
|
+
"description": "The radius of the flare/halo when `ArxLightFlags.Flare` is set. The value of `exFlareSize` is ignored when `ArxLightFlags.FixFlareSize` is set. Danae only allows setting it to a maximum of 200, but there isn't any limitiations in the game.",
|
|
133
|
+
"type": "number"
|
|
134
|
+
},
|
|
135
|
+
"flags": {
|
|
136
|
+
"description": "See ArxLightFlags for values",
|
|
137
|
+
"$ref": "#/$defs/positiveInt32"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"required": [
|
|
141
|
+
"position",
|
|
142
|
+
"color",
|
|
143
|
+
"fallStart",
|
|
144
|
+
"fallEnd",
|
|
145
|
+
"intensity",
|
|
146
|
+
"exFlicker",
|
|
147
|
+
"exRadius",
|
|
148
|
+
"exFrequency",
|
|
149
|
+
"exSize",
|
|
150
|
+
"exSpeed",
|
|
151
|
+
"exFlareSize",
|
|
152
|
+
"flags"
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"colors": {
|
|
157
|
+
"description": "pre-computed vertex light colors for FTS.polygons",
|
|
158
|
+
"type": "array",
|
|
159
|
+
"items": {
|
|
160
|
+
"$ref": "#/$defs/color"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"required": [
|
|
165
|
+
"header",
|
|
166
|
+
"lights",
|
|
167
|
+
"colors"
|
|
168
|
+
]
|
|
169
|
+
}
|
package/schemas/tea.schema.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://arx-tools.github.io/schemas/tea.schema.json",
|
|
4
4
|
"title": "TEA",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "TEA (ThEo Animation) format of Arx Fatalis interpreted as JSON by arx-convert",
|
|
6
6
|
"$defs": {
|
|
7
7
|
"vector3": {
|
|
8
8
|
"type": "object",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"w"
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
|
-
"
|
|
49
|
+
"positiveInt32": {
|
|
50
50
|
"type": "integer",
|
|
51
51
|
"minimum": 0,
|
|
52
52
|
"maximum": 2147483647
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"type": "string"
|
|
63
63
|
},
|
|
64
64
|
"totalNumberOfFrames": {
|
|
65
|
-
"$ref": "#/$defs/
|
|
65
|
+
"$ref": "#/$defs/positiveInt32"
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
"required": [
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"properties": {
|
|
79
79
|
"frame": {
|
|
80
80
|
"description": "Should be between 0 (inclusive) and header.totalNumberOfFrames (exclusive)",
|
|
81
|
-
"$ref": "#/$defs/
|
|
81
|
+
"$ref": "#/$defs/positiveInt32"
|
|
82
82
|
},
|
|
83
83
|
"flags": {
|
|
84
84
|
"anyOf": [
|
|
@@ -96,8 +96,8 @@
|
|
|
96
96
|
"isKeyFrame": {
|
|
97
97
|
"type": "boolean"
|
|
98
98
|
},
|
|
99
|
-
"
|
|
100
|
-
"$ref": "#/$defs/
|
|
99
|
+
"timeFrame": {
|
|
100
|
+
"$ref": "#/$defs/positiveInt32"
|
|
101
101
|
},
|
|
102
102
|
"groups": {
|
|
103
103
|
"type": "array",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
"frame",
|
|
139
139
|
"isMasterKeyFrame",
|
|
140
140
|
"isKeyFrame",
|
|
141
|
-
"
|
|
141
|
+
"timeFrame",
|
|
142
142
|
"groups"
|
|
143
143
|
]
|
|
144
144
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InteactiveObject.js","sourceRoot":"","sources":["../../src/dlf/InteactiveObject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAa3C,MAAM,OAAO,iBAAiB;IAC5B,MAAM,CAAC,QAAQ,CAAC,MAAiC;QAC/C,MAAM,IAAI,GAAyB;YACjC,IAAI,EAAE,iBAAiB,CAAC,cAAc,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;YAC9D,GAAG,EAAE,MAAM,CAAC,WAAW,EAAE;YACzB,KAAK,EAAE,MAAM,CAAC,YAAY,EAAE;YAC5B,UAAU,EAAE,MAAM,CAAC,SAAS,EAAE;SAC/B,CAAA;QAED,MAAM,CAAC,SAAS,EAAE,CAAA,CAAC,mBAAmB;QACtC,MAAM,CAAC,cA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