BlueGit

timfa raytracer

Merge branch 'feature/paperdolls'

timfa Ada · pushed by timfa

Authored 2026-11-09 · 7 days ago

Hash
3b7c8046c1032dc8360dadbdc5c79c200c9dfb5f
Pipeline
Passed
33 files changed +10324 −11
README.md +13 −6
@@ -1,6 +1,6 @@
1 1 # raytracer
2 2
3 Wolfenstein-achtige raycaster op [frameworkv3](https://git.timfalken.com/timfa/frameworkv3) (WebGL).
3 Wolfenstein-achtige raycaster op [frameworkv3](https://git.timfalken.com/timfa/frameworkv3) (WebGL), met **paperdoll-NPC’s** (`.ppda` + atlassen, live body+equipment-compositor).
4 4
5 5 ## Lokaal bouwen en draaien
6 6
@@ -12,12 +12,19 @@ cp js/framework.js /pad/naar/raytracer/build/framework.js
12 12 # Game-bundel
13 13 ./src/build.sh
14 14
15 # Statische server
15 # Statische server (moet paperdolls/ kunnen serveren)
16 16 python3 -m http.server 8080 --directory build
17 17 # open http://localhost:8080
18 18 ```
19 19
20 Besturing: WASD / pijltjes bewegen, klik voor pointer-lock muislook, `<` `>` voor raycast-resolutie.
20 Besturing: WASD / pijltjes, klik voor pointer-lock, `<` `>` voor raycast-resolutie.
21
22 ## Paperdolls
23
24 - Assets in `build/paperdolls/` (body + sword). Zie `build/paperdolls/ATTRIBUTION.md`.
25 - Depth-atlassen liggen als `.u16` (little-endian gray+alpha u16) naast de `.ppda` — browsers decoderen 16-bit PNG niet betrouwbaar.
26 - Live compositor (JS-poort van `compositor.rs`): per pixel dichtstbijzijnde diepte; bij gelijke diepte (±1) wint de eerdere laag (body vóór gear).
27 - NPC-billboards: yaw uit hoek speler↔NPC, frame via fps, per-pixel z-buffer t.o.v. muren en andere sprites; één overlay-texture per frame (CPU-projectie).
21 28
22 29 ## Tests
23 30
@@ -27,6 +34,6 @@ node --test test/*.test.js
27 34
28 35 ## Structuur
29 36
30 - `src/` – gamecode (wordt naar `build/game.js` geconcateneerd)
31 - `build/` – speelbare output (`framework.js`, `game.js`, `index.html`, images)
32 - `archive/legacy-js/` – oude canvas2d-versie (referentie)
37 - `src/` – game + `src/ppda/` (loader, depth, view/frame, compositor, atlas-runtime)
38 - `build/` – speelbare output
39 - `archive/legacy-js/` – oude canvas2d-versie
@@ -1,6 +1,6 @@
1# raytracer
1# raytracer
2
2
3Wolfenstein-achtige raycaster op [frameworkv3](https://git.timfalken.com/timfa/frameworkv3) (WebGL).
3Wolfenstein-achtige raycaster op [frameworkv3](https://git.timfalken.com/timfa/frameworkv3) (WebGL), met **paperdoll-NPC’s** (`.ppda` + atlassen, live body+equipment-compositor).
4
4
5## Lokaal bouwen en draaien
5## Lokaal bouwen en draaien
6
6
@@ -12,12 +12,19 @@ cp js/framework.js /pad/naar/raytracer/build/framework.js
12# Game-bundel
12# Game-bundel
13./src/build.sh
13./src/build.sh
14
14
15# Statische server
15# Statische server (moet paperdolls/ kunnen serveren)
16python3 -m http.server 8080 --directory build
16python3 -m http.server 8080 --directory build
17# open http://localhost:8080
17# open http://localhost:8080
18```
18```
19
19
20Besturing: WASD / pijltjes bewegen, klik voor pointer-lock muislook, `<` `>` voor raycast-resolutie.
20Besturing: WASD / pijltjes, klik voor pointer-lock, `<` `>` voor raycast-resolutie.
21
22## Paperdolls
23
24- Assets in `build/paperdolls/` (body + sword). Zie `build/paperdolls/ATTRIBUTION.md`.
25- Depth-atlassen liggen als `.u16` (little-endian gray+alpha u16) naast de `.ppda` — browsers decoderen 16-bit PNG niet betrouwbaar.
26- Live compositor (JS-poort van `compositor.rs`): per pixel dichtstbijzijnde diepte; bij gelijke diepte (±1) wint de eerdere laag (body vóór gear).
27- NPC-billboards: yaw uit hoek speler↔NPC, frame via fps, per-pixel z-buffer t.o.v. muren en andere sprites; één overlay-texture per frame (CPU-projectie).
21
28
22## Tests
29## Tests
23
30
@@ -27,6 +34,6 @@ node --test test/*.test.js
27
34
28## Structuur
35## Structuur
29
36
30- `src/` – gamecode (wordt naar `build/game.js` geconcateneerd)
37- `src/` – game + `src/ppda/` (loader, depth, view/frame, compositor, atlas-runtime)
31- `build/` – speelbare output (`framework.js`, `game.js`, `index.html`, images)
38- `build/` – speelbare output
32- `archive/legacy-js/` – oude canvas2d-versie (referentie)
39- `archive/legacy-js/` – oude canvas2d-versie
build/game.js +1037 −2
@@ -65,6 +65,736 @@ if (typeof module !== "undefined" && module.exports)
65 65 * /workspace/raytracer-work/src/textureColumn.js
66 66 */
67 67
68 /*
69 * Start File:
70 * /workspace/raytracer-work/src/ppda/depthDecode.js
71 */
72 /**
73 * Depth encodings matching Paperdoll Renderer camera::DepthFormat.
74 * Canonical compositor sample is u16 gray + u16 alpha (0..65535).
75 */
76 var DepthDecode =
77 {
78 EPSILON_U16: 1,
79
80 parseFormat: function (encoding, bits)
81 {
82 var enc = encoding || "gray";
83 var b = bits == null ? 16 : Number(bits);
84 if (b !== 8 && b !== 16)
85 { throw new Error("depth_bits moet 8 of 16 zijn, kreeg " + bits); }
86 if (enc !== "gray" && enc !== "rgb_bands" && enc !== "rgb_packed")
87 { throw new Error("depth_encoding onbekend: " + enc); }
88 return { encoding: enc, bits: b };
89 },
90
91 max: function (fmt)
92 { return (1 << fmt.bits) - 1; },
93
94 levels: function (fmt)
95 {
96 var m = this.max(fmt);
97 if (fmt.encoding === "gray")
98 { return m; }
99 if (fmt.encoding === "rgb_bands")
100 { return 3 * m; }
101 return Math.pow(2, 3 * fmt.bits) - 1;
102 },
103
104 decodeValue: function (fmt, c0, c1, c2)
105 {
106 var m = this.max(fmt);
107 var b = m + 1;
108 var v;
109 if (fmt.encoding === "gray")
110 { v = c0; }
111 else if (fmt.encoding === "rgb_bands")
112 { v = c0 + c1 + c2; }
113 else
114 { v = c0 * b * b + c1 * b + c2; }
115 return v / this.levels(fmt);
116 },
117
118 encodeValue: function (fmt, t)
119 {
120 t = Math.max(0, Math.min(1, Number(t) || 0));
121 var m = this.max(fmt);
122 var v = Math.round(t * this.levels(fmt));
123 if (fmt.encoding === "gray")
124 { return [v, 0, 0]; }
125 if (fmt.encoding === "rgb_bands")
126 {
127 return [
128 Math.min(v, m),
129 Math.min(Math.max(v - m, 0), m),
130 Math.min(Math.max(v - 2 * m, 0), m)
131 ];
132 }
133 var b = m + 1;
134 return [Math.floor(v / (b * b)), Math.floor(v / b) % b, v % b];
135 },
136
137 /**
138 * Decode one pixel channel tuple to canonical u16 (gray, alpha).
139 * channels: [c0,c1,c2,a] in native bit depth units.
140 */
141 decodePixelChannels: function (fmt, channels)
142 {
143 var c0 = channels[0] || 0;
144 var c1 = channels[1] || 0;
145 var c2 = channels[2] || 0;
146 var a = channels[3] != null ? channels[3] : this.max(fmt);
147 if (fmt.encoding === "rgb_bands")
148 {
149 var m = this.max(fmt);
150 if ((c1 > 0 && c0 !== m) || (c2 > 0 && c1 !== m))
151 { throw new Error("depth rgb_bands: ongeldige bandvolgorde"); }
152 }
153 var t = this.decodeValue(fmt, c0, c1, c2);
154 var scale = 65535 / this.max(fmt);
155 return {
156 gray: Math.round(t * 65535),
157 alpha: Math.round(a * scale)
158 };
159 },
160
161 /** Meters from camera using near/far and normalized t (0..1 from gray/65535). */
162 distanceMeters: function (grayU16, near, far)
163 {
164 var t = (grayU16 & 0xffff) / 65535;
165 return near + t * (far - near);
166 }
167 };
168
169 if (typeof module !== "undefined" && module.exports)
170 { module.exports = DepthDecode; }
171
172 /*
173 * End File:
174 * /workspace/raytracer-work/src/ppda/depthDecode.js
175 */
176
177 /*
178 * Start File:
179 * /workspace/raytracer-work/src/ppda/viewFrame.js
180 */
181 /**
182 * Choose paperdoll view (yaw/pitch) and animation frame.
183 * Yaw 0 = character front (Paperdoll/glTF convention).
184 */
185 var PpdaViewFrame =
186 {
187 /**
188 * Relative viewing yaw in degrees [0,360): direction from NPC to player,
189 * minus the NPC's facing yaw (degrees, 0 = faces +X/east in world… mapped
190 * so that when the player looks at the NPC's front, relative yaw ≈ 0).
191 *
192 * World: +X east, +Y south (legacy raycaster). NPC facingYawDeg: 0 looks
193 * toward +X. Paperdoll yaw 0 is front. We map world facing so that the
194 * camera looking opposite to facing sees front.
195 */
196 relativeYawDeg: function (playerX, playerY, npcX, npcY, npcFacingDeg)
197 {
198 var dx = playerX - npcX;
199 var dy = playerY - npcY;
200 // Angle of vector NPC→player in world degrees (0=+X, 90=+Y).
201 var toPlayer = Math.atan2(dy, dx) * 180 / Math.PI;
202 if (toPlayer < 0)
203 { toPlayer += 360; }
204 // When player stands in front of NPC, toPlayer ≈ npcFacing.
205 // Paperdoll wants yaw 0 for front → relative = toPlayer - facing.
206 var rel = toPlayer - (npcFacingDeg || 0);
207 rel = ((rel % 360) + 360) % 360;
208 return rel;
209 },
210
211 nearestInList: function (value, list, circular360)
212 {
213 if (!list || !list.length)
214 { return 0; }
215 var best = list[0];
216 var bestD = Infinity;
217 for (var i = 0; i < list.length; i++)
218 {
219 var v = list[i];
220 var d = Math.abs(value - v);
221 if (circular360)
222 { d = Math.min(d, 360 - d); }
223 if (d < bestD)
224 {
225 bestD = d;
226 best = v;
227 }
228 }
229 return best;
230 },
231
232 pickYaw: function (relativeYawDeg, yaws)
233 {
234 return this.nearestInList(((relativeYawDeg % 360) + 360) % 360, yaws || [0], true);
235 },
236
237 pickPitch: function (playerPitchRad, pitches)
238 {
239 // player pitch: 0 = horizon; positive looks down in this game.
240 // Paperdoll: positive pitch = from above. Invert sign for mapping.
241 var deg = -(playerPitchRad || 0) * 180 / Math.PI;
242 return this.nearestInList(deg, pitches || [0]);
243 },
244
245 frameIndex: function (timeSec, fps, frameCount)
246 {
247 var n = Math.max(1, frameCount | 0);
248 var f = Math.max(1, fps | 0);
249 var idx = Math.floor((timeSec || 0) * f);
250 idx %= n;
251 if (idx < 0)
252 { idx += n; }
253 return idx;
254 },
255
256 findClip: function (ppda, clipTokenOrName)
257 {
258 var clips = ppda && ppda.clips || [];
259 for (var i = 0; i < clips.length; i++)
260 {
261 if (clips[i].token === clipTokenOrName || clips[i].name === clipTokenOrName)
262 { return clips[i]; }
263 }
264 return clips[0] || null;
265 },
266
267 findView: function (frame, pitch, yaw)
268 {
269 var views = frame && frame.views || [];
270 for (var i = 0; i < views.length; i++)
271 {
272 if (views[i].pitch === pitch && views[i].yaw === yaw)
273 { return views[i]; }
274 }
275 return null;
276 },
277
278 uvRect: function (view, atlasW, atlasH)
279 {
280 if (!view)
281 { return { u0: 0, v0: 0, u1: 1, v1: 1, x: 0, y: 0, w: 0, h: 0 }; }
282 var w = atlasW || 1;
283 var h = atlasH || 1;
284 return {
285 x: view.x,
286 y: view.y,
287 w: view.w,
288 h: view.h,
289 u0: view.x / w,
290 v0: view.y / h,
291 u1: (view.x + view.w) / w,
292 v1: (view.y + view.h) / h
293 };
294 }
295 };
296
297 if (typeof module !== "undefined" && module.exports)
298 { module.exports = PpdaViewFrame; }
299
300 /*
301 * End File:
302 * /workspace/raytracer-work/src/ppda/viewFrame.js
303 */
304
305 /*
306 * Start File:
307 * /workspace/raytracer-work/src/ppda/compositor.js
308 */
309 /**
310 * Live body+equipment compositor — port of compositor.rs compose().
311 * Per pixel: nearest valid depth wins; ties keep lower layer index (body first).
312 * Valid = depth alpha ≠ 0 AND diffuse alpha ≠ 0.
313 */
314 var PpdaCompositor =
315 {
316 DEPTH_EPSILON_U16: 1,
317
318 /**
319 * @param {Array<{width,height,diffuse:Uint8ClampedArray|Uint8Array,depthGray:Uint16Array,depthAlpha:Uint16Array,normal?:Uint8Array,specular?:Uint8Array}>} layers
320 */
321 compose: function (layers)
322 {
323 if (!layers || !layers.length)
324 { throw new Error("geen lagen om te composeren"); }
325 var width = layers[0].width;
326 var height = layers[0].height;
327 var pixels = width * height;
328 if (!pixels)
329 { throw new Error("lege afmetingen"); }
330 for (var li = 0; li < layers.length; li++)
331 {
332 var L = layers[li];
333 if (L.width !== width || L.height !== height)
334 { throw new Error("laag " + li + " heeft andere afmetingen"); }
335 if (L.diffuse.length !== pixels * 4 || L.depthGray.length !== pixels || L.depthAlpha.length !== pixels)
336 { throw new Error("laag " + li + " inconsistente buffers"); }
337 }
338
339 var diffuse = new Uint8ClampedArray(pixels * 4);
340 var normal = new Uint8ClampedArray(pixels * 4);
341 var specular = new Uint8ClampedArray(pixels * 4);
342 var depthGray = new Uint16Array(pixels);
343 var depthAlpha = new Uint16Array(pixels);
344 var winner = new Uint8Array(pixels);
345 for (var i = 0; i < pixels; i++)
346 { winner[i] = 255; }
347
348 var eps = this.DEPTH_EPSILON_U16;
349 for (var i = 0; i < pixels; i++)
350 {
351 var bestDepth = null;
352 var bestLayer = null;
353 for (var layerIdx = 0; layerIdx < layers.length; layerIdx++)
354 {
355 var layer = layers[layerIdx];
356 if (layer.depthAlpha[i] === 0 || layer.diffuse[i * 4 + 3] === 0)
357 { continue; }
358 var gray = layer.depthGray[i];
359 if (bestDepth == null)
360 {
361 bestDepth = gray;
362 bestLayer = layerIdx;
363 }
364 else if (gray + eps < bestDepth)
365 {
366 bestDepth = gray;
367 bestLayer = layerIdx;
368 }
369 else if (gray <= bestDepth + eps)
370 {
371 /* tie: keep lower index */
372 }
373 }
374 if (bestLayer != null)
375 {
376 var src = layers[bestLayer];
377 var o = i * 4;
378 diffuse[o] = src.diffuse[o];
379 diffuse[o + 1] = src.diffuse[o + 1];
380 diffuse[o + 2] = src.diffuse[o + 2];
381 diffuse[o + 3] = src.diffuse[o + 3];
382 if (src.normal)
383 {
384 normal[o] = src.normal[o];
385 normal[o + 1] = src.normal[o + 1];
386 normal[o + 2] = src.normal[o + 2];
387 normal[o + 3] = src.normal[o + 3];
388 }
389 if (src.specular)
390 {
391 specular[o] = src.specular[o];
392 specular[o + 1] = src.specular[o + 1];
393 specular[o + 2] = src.specular[o + 2];
394 specular[o + 3] = src.specular[o + 3];
395 }
396 depthGray[i] = src.depthGray[i];
397 depthAlpha[i] = src.depthAlpha[i];
398 winner[i] = bestLayer;
399 }
400 }
401
402 return {
403 width: width,
404 height: height,
405 diffuse: diffuse,
406 normal: normal,
407 specular: specular,
408 depthGray: depthGray,
409 depthAlpha: depthAlpha,
410 winner: winner
411 };
412 },
413
414 /** Simple ambient+Lambert approx for preview (Preview2d-achtig, licht). */
415 relightDiffuse: function (composed, lightAmt)
416 {
417 lightAmt = lightAmt == null ? 1 : lightAmt;
418 var out = new Uint8ClampedArray(composed.diffuse.length);
419 for (var i = 0; i < composed.diffuse.length; i += 4)
420 {
421 var a = composed.diffuse[i + 3];
422 if (a === 0)
423 { continue; }
424 var ndot = 0.75;
425 if (composed.normal && composed.normal[i + 3])
426 {
427 var nx = composed.normal[i] / 255 * 2 - 1;
428 var ny = composed.normal[i + 1] / 255 * 2 - 1;
429 var nz = composed.normal[i + 2] / 255 * 2 - 1;
430 ndot = Math.max(0, nx * 0.3 + ny * 0.2 + nz * 0.9);
431 }
432 var shade = Math.min(1, 0.35 + 0.65 * ndot) * lightAmt;
433 out[i] = Math.min(255, Math.round(composed.diffuse[i] * shade));
434 out[i + 1] = Math.min(255, Math.round(composed.diffuse[i + 1] * shade));
435 out[i + 2] = Math.min(255, Math.round(composed.diffuse[i + 2] * shade));
436 out[i + 3] = a;
437 }
438 return out;
439 }
440 };
441
442 if (typeof module !== "undefined" && module.exports)
443 { module.exports = PpdaCompositor; }
444
445 /*
446 * End File:
447 * /workspace/raytracer-work/src/ppda/compositor.js
448 */
449
450 /*
451 * Start File:
452 * /workspace/raytracer-work/src/ppda/loadPpda.js
453 */
454 /**
455 * Strict-enough .ppda loader for formats 1–5 (Paperdoll AtlasSet consumer).
456 */
457 var PpdaLoader =
458 {
459 SUPPORTED_FORMATS: [1, 2, 3, 4, 5],
460
461 parse: function (jsonText, options)
462 {
463 options = options || {};
464 var doc;
465 try
466 { doc = typeof jsonText === "string" ? JSON.parse(jsonText) : jsonText; }
467 catch (e)
468 { throw new Error("ppda: ongeldige JSON (" + e.message + ")"); }
469
470 if (!doc || typeof doc !== "object")
471 { throw new Error("ppda: root moet een object zijn"); }
472
473 var ver = doc.format_version;
474 if (this.SUPPORTED_FORMATS.indexOf(ver) < 0)
475 { throw new Error("ppda: format_version " + ver + " niet ondersteund (wel: " + this.SUPPORTED_FORMATS.join(",") + ")"); }
476
477 if (!doc.sex || !doc.settype)
478 { throw new Error("ppda: sex/settype verplicht"); }
479 if (!doc.fps || doc.fps < 1)
480 { throw new Error("ppda: fps ongeldig"); }
481 if (!doc.cell_width || !doc.cell_height)
482 { throw new Error("ppda: cell_width/height verplicht"); }
483 if (!Array.isArray(doc.pitches) || !Array.isArray(doc.yaws) || !doc.pitches.length || !doc.yaws.length)
484 { throw new Error("ppda: pitches/yaws verplicht"); }
485 if (!doc.maps || typeof doc.maps !== "object")
486 { throw new Error("ppda: maps verplicht"); }
487 ["diffuse", "depth"].forEach(function (k)
488 {
489 if (!doc.maps[k] || !doc.maps[k].file)
490 { throw new Error("ppda: maps." + k + ".file verplicht"); }
491 if (String(doc.maps[k].file).indexOf("..") >= 0 || String(doc.maps[k].file).indexOf("/") >= 0 || String(doc.maps[k].file).indexOf("\\") >= 0)
492 { throw new Error("ppda: maps." + k + ".file mag geen pad bevatten"); }
493 });
494 if (!Array.isArray(doc.clips) || !doc.clips.length)
495 { throw new Error("ppda: clips verplicht"); }
496
497 for (var ci = 0; ci < doc.clips.length; ci++)
498 {
499 var clip = doc.clips[ci];
500 if (!clip.frames || clip.frames.length !== clip.frame_count)
501 { throw new Error("ppda: clip '" + (clip.name || ci) + "' frames≠frame_count"); }
502 for (var fi = 0; fi < clip.frames.length; fi++)
503 {
504 var fr = clip.frames[fi];
505 if (!fr.views || !fr.views.length)
506 { throw new Error("ppda: frame zonder views"); }
507 for (var vi = 0; vi < fr.views.length; vi++)
508 {
509 var v = fr.views[vi];
510 if (v.w == null || v.h == null || v.x == null || v.y == null)
511 { throw new Error("ppda: view mist x/y/w/h"); }
512 }
513 }
514 }
515
516 var encoding = doc.depth_encoding;
517 var bits = doc.depth_bits;
518 if (!encoding)
519 {
520 // v1 / legacy long text in identity.depth → gray16
521 encoding = "gray";
522 bits = bits || 16;
523 }
524 else if (/gray/i.test(encoding) && encoding.indexOf("rgb_") < 0)
525 {
526 encoding = "gray";
527 }
528 else if (encoding.indexOf("rgb_bands") >= 0)
529 { encoding = "rgb_bands"; }
530 else if (encoding.indexOf("rgb_packed") >= 0)
531 { encoding = "rgb_packed"; }
532
533 var near = doc.depth_near != null ? doc.depth_near : (doc.identity && doc.identity.near);
534 var far = doc.depth_far != null ? doc.depth_far : (doc.identity && doc.identity.far);
535 if (near == null || far == null)
536 { throw new Error("ppda: depth_near/far of identity.near/far verplicht"); }
537
538 var fmt = DepthDecode.parseFormat(encoding, bits || 16);
539
540 return {
541 format_version: ver,
542 sex: doc.sex,
543 settype: doc.settype,
544 fps: doc.fps,
545 cell_width: doc.cell_width,
546 cell_height: doc.cell_height,
547 pitches: doc.pitches.slice(),
548 yaws: doc.yaws.slice(),
549 maps: doc.maps,
550 clips: doc.clips,
551 identity: doc.identity || null,
552 project: doc.project || null,
553 depth_near: Number(near),
554 depth_far: Number(far),
555 depth_format: fmt,
556 camera_distance: doc.identity && doc.identity.camera_distance != null
557 ? Number(doc.identity.camera_distance)
558 : 10,
559 height_milli: doc.identity && doc.identity.framing
560 ? doc.identity.framing.height_milli
561 : 2600,
562 raw: doc
563 };
564 },
565
566 compatKey: function (ppda)
567 {
568 var id = ppda.identity || {};
569 return {
570 sex: ppda.sex,
571 body_model_sha256: id.body_model_sha256 || "",
572 fps: ppda.fps,
573 cell_width: ppda.cell_width,
574 cell_height: ppda.cell_height,
575 pitches: ppda.pitches.join(","),
576 yaws: ppda.yaws.join(","),
577 near: ppda.depth_near,
578 far: ppda.depth_far
579 };
580 },
581
582 assertCompatible: function (a, b)
583 {
584 var ka = this.compatKey(a);
585 var kb = this.compatKey(b);
586 var keys = Object.keys(ka);
587 for (var i = 0; i < keys.length; i++)
588 {
589 var k = keys[i];
590 if (String(ka[k]) !== String(kb[k]))
591 { throw new Error("ppda incompatible: " + k + " (" + ka[k] + " vs " + kb[k] + ")"); }
592 }
593 }
594 };
595
596 if (typeof module !== "undefined" && module.exports)
597 { module.exports = PpdaLoader; }
598
599 /*
600 * End File:
601 * /workspace/raytracer-work/src/ppda/loadPpda.js
602 */
603
604 /*
605 * Start File:
606 * /workspace/raytracer-work/src/ppda/atlasRuntime.js
607 */
608 /**
609 * Browser/runtime atlas set: loads PNG diffuse/normal/specular + u16 depth,
610 * extracts cells, composes body+gear on CPU (cell is 32×48 — cheap).
611 */
612 var PpdaAtlasRuntime =
613 {
614 _canvas: null,
615 _ctx: null,
616
617 _ensureCanvas: function ()
618 {
619 if (typeof document === "undefined")
620 { return null; }
621 if (!this._canvas)
622 {
623 this._canvas = document.createElement("canvas");
624 this._ctx = this._canvas.getContext("2d", { willReadFrequently: true });
625 }
626 return this._ctx;
627 },
628
629 loadImage: function (url)
630 {
631 return new Promise(function (resolve, reject)
632 {
633 var img = new Image();
634 img.onload = function ()
635 { resolve(img); };
636 img.onerror = function ()
637 { reject(new Error("image load failed: " + url)); };
638 img.src = url;
639 });
640 },
641
642 loadU16Depth: function (url, expectW, expectH)
643 {
644 return fetch(url).then(function (r)
645 {
646 if (!r.ok)
647 { throw new Error("depth fetch " + r.status + " " + url); }
648 return r.arrayBuffer();
649 }).then(function (buf)
650 {
651 var need = expectW * expectH * 4;
652 if (buf.byteLength < need)
653 { throw new Error("depth u16 te kort: " + buf.byteLength + " < " + need); }
654 return new Uint16Array(buf.slice(0, need));
655 });
656 },
657
658 /**
659 * @returns {Promise<{ppda, images, depthU16, baseUrl}>}
660 */
661 loadSet: function (baseUrl, ppdaFile)
662 {
663 var self = this;
664 baseUrl = baseUrl.replace(/\/?$/, "/");
665 return fetch(baseUrl + ppdaFile).then(function (r)
666 {
667 if (!r.ok)
668 { throw new Error("ppda fetch " + r.status); }
669 return r.text();
670 }).then(function (text)
671 {
672 var ppda = PpdaLoader.parse(text);
673 var maps = ppda.maps;
674 var jobs = [
675 self.loadImage(baseUrl + maps.diffuse.file),
676 maps.normal ? self.loadImage(baseUrl + maps.normal.file) : Promise.resolve(null),
677 maps.specular ? self.loadImage(baseUrl + maps.specular.file) : Promise.resolve(null)
678 ];
679 var depthFile = maps.depth.file;
680 var dw = maps.depth.width || maps.diffuse.width;
681 var dh = maps.depth.height || maps.diffuse.height;
682 if (maps.depth.storage === "u16le_ga" || /\.u16$/i.test(depthFile))
683 { jobs.push(self.loadU16Depth(baseUrl + depthFile, dw, dh)); }
684 else
685 { throw new Error("browser-loader verwacht depth als .u16 (storage=u16le_ga); got " + depthFile); }
686
687 return Promise.all(jobs).then(function (parts)
688 {
689 return {
690 ppda: ppda,
691 baseUrl: baseUrl,
692 diffuseImg: parts[0],
693 normalImg: parts[1],
694 specularImg: parts[2],
695 depthU16: parts[3],
696 depthW: dw,
697 depthH: dh
698 };
699 });
700 });
701 },
702
703 extractRgbaCell: function (img, view)
704 {
705 var ctx = this._ensureCanvas();
706 if (!ctx)
707 { throw new Error("geen canvas voor cell extract"); }
708 this._canvas.width = view.w;
709 this._canvas.height = view.h;
710 ctx.clearRect(0, 0, view.w, view.h);
711 ctx.drawImage(img, view.x, view.y, view.w, view.h, 0, 0, view.w, view.h);
712 return ctx.getImageData(0, 0, view.w, view.h).data;
713 },
714
715 extractDepthCell: function (depthU16, atlasW, view)
716 {
717 var n = view.w * view.h;
718 var gray = new Uint16Array(n);
719 var alpha = new Uint16Array(n);
720 for (var y = 0; y < view.h; y++)
721 {
722 for (var x = 0; x < view.w; x++)
723 {
724 var si = ((view.y + y) * atlasW + (view.x + x)) * 2;
725 var di = y * view.w + x;
726 gray[di] = depthU16[si];
727 alpha[di] = depthU16[si + 1];
728 }
729 }
730 return { depthGray: gray, depthAlpha: alpha };
731 },
732
733 layerFromSet: function (set, clipToken, frameIndex, pitch, yaw)
734 {
735 var clip = PpdaViewFrame.findClip(set.ppda, clipToken);
736 if (!clip)
737 { throw new Error("clip niet gevonden: " + clipToken); }
738 var frame = clip.frames[frameIndex];
739 if (!frame)
740 { throw new Error("frame " + frameIndex + " ontbreekt"); }
741 var view = PpdaViewFrame.findView(frame, pitch, yaw);
742 if (!view)
743 { throw new Error("view p" + pitch + " y" + yaw + " ontbreekt"); }
744 if (view.empty)
745 {
746 var emptyN = view.w * view.h;
747 return {
748 width: view.w,
749 height: view.h,
750 diffuse: new Uint8ClampedArray(emptyN * 4),
751 normal: new Uint8ClampedArray(emptyN * 4),
752 specular: new Uint8ClampedArray(emptyN * 4),
753 depthGray: new Uint16Array(emptyN),
754 depthAlpha: new Uint16Array(emptyN),
755 view: view
756 };
757 }
758 var diffuse = this.extractRgbaCell(set.diffuseImg, view);
759 var normal = set.normalImg ? this.extractRgbaCell(set.normalImg, view) : null;
760 var specular = set.specularImg ? this.extractRgbaCell(set.specularImg, view) : null;
761 var depth = this.extractDepthCell(set.depthU16, set.depthW, view);
762 return {
763 width: view.w,
764 height: view.h,
765 diffuse: diffuse,
766 normal: normal,
767 specular: specular,
768 depthGray: depth.depthGray,
769 depthAlpha: depth.depthAlpha,
770 view: view
771 };
772 },
773
774 composeView: function (bodySet, gearSet, clipToken, frameIndex, pitch, yaw)
775 {
776 var body = this.layerFromSet(bodySet, clipToken, frameIndex, pitch, yaw);
777 var layers = [body];
778 if (gearSet)
779 {
780 PpdaLoader.assertCompatible(bodySet.ppda, gearSet.ppda);
781 layers.push(this.layerFromSet(gearSet, clipToken, frameIndex, pitch, yaw));
782 }
783 var composed = PpdaCompositor.compose(layers);
784 composed.view = body.view;
785 composed.lit = PpdaCompositor.relightDiffuse(composed, 1);
786 return composed;
787 }
788 };
789
790 if (typeof module !== "undefined" && module.exports)
791 { module.exports = PpdaAtlasRuntime; }
792
793 /*
794 * End File:
795 * /workspace/raytracer-work/src/ppda/atlasRuntime.js
796 */
797
68 798 /*
69 799 * Start File:
70 800 * /workspace/raytracer-work/src/levels.js
@@ -440,6 +1170,274 @@ var Player =
440 1170 * /workspace/raytracer-work/src/player.js
441 1171 */
442 1172
1173 /*
1174 * Start File:
1175 * /workspace/raytracer-work/src/npc.js
1176 */
1177 /**
1178 * Paperdoll NPC billboards.
1179 * Compose body+gear on CPU when view/frame changes (cell ~32×48).
1180 * Project with per-pixel depth into an offscreen RGBA buffer + z-buffer,
1181 * then one WebGL textured quad — avoids thousands of drawSprite calls.
1182 */
1183 var NpcSystem =
1184 {
1185 npcs: [],
1186 bodySet: null,
1187 gearSet: null,
1188 ready: false,
1189 cache: {},
1190 worldScale: 32,
1191 _overlay: null,
1192 _overlayCtx: null,
1193 _overlayImg: null,
1194 _zbuf: null,
1195 _zbufW: 0,
1196 _zbufH: 0,
1197
1198 initEmpty: function ()
1199 {
1200 this.npcs = [];
1201 this.cache = {};
1202 this.ready = false;
1203 },
1204
1205 addNpc: function (opts)
1206 {
1207 this.npcs.push({
1208 x: opts.x,
1209 y: opts.y,
1210 facingDeg: opts.facingDeg || 0,
1211 clip: opts.clip || "walk",
1212 animating: opts.animating !== false,
1213 time: opts.time || 0,
1214 label: opts.label || "npc"
1215 });
1216 },
1217
1218 load: function (bodyBase, bodyPpda, gearBase, gearPpda)
1219 {
1220 var self = this;
1221 return PpdaAtlasRuntime.loadSet(bodyBase, bodyPpda).then(function (body)
1222 {
1223 self.bodySet = body;
1224 if (!gearBase)
1225 {
1226 self.ready = true;
1227 return body;
1228 }
1229 return PpdaAtlasRuntime.loadSet(gearBase, gearPpda).then(function (gear)
1230 {
1231 PpdaLoader.assertCompatible(body.ppda, gear.ppda);
1232 self.gearSet = gear;
1233 self.ready = true;
1234 return body;
1235 });
1236 });
1237 },
1238
1239 update: function (dt)
1240 {
1241 for (var i = 0; i < this.npcs.length; i++)
1242 {
1243 if (this.npcs[i].animating)
1244 { this.npcs[i].time += dt; }
1245 }
1246 },
1247
1248 composedFor: function (npc, pitch, yaw)
1249 {
1250 if (!this.bodySet)
1251 { return null; }
1252 var clip = PpdaViewFrame.findClip(this.bodySet.ppda, npc.clip);
1253 var frameCount = clip ? clip.frame_count : 1;
1254 var frame = PpdaViewFrame.frameIndex(npc.time, this.bodySet.ppda.fps, frameCount);
1255 var key = npc.clip + "|" + frame + "|" + pitch + "|" + yaw;
1256 if (this.cache[key])
1257 { return this.cache[key]; }
1258 var composed = PpdaAtlasRuntime.composeView(
1259 this.bodySet,
1260 this.gearSet,
1261 npc.clip,
1262 frame,
1263 pitch,
1264 yaw
1265 );
1266 this.cache[key] = composed;
1267 var keys = Object.keys(this.cache);
1268 if (keys.length > 96)
1269 { delete this.cache[keys[0]]; }
1270 return composed;
1271 },
1272
1273 _ensureOverlay: function (w, h)
1274 {
1275 if (!this._overlay || this._overlay.width !== w || this._overlay.height !== h)
1276 {
1277 this._overlay = document.createElement("canvas");
1278 this._overlay.width = w;
1279 this._overlay.height = h;
1280 this._overlayCtx = this._overlay.getContext("2d");
1281 this._overlayImg = null;
1282 this._overlayTex = null;
1283 this._zbuf = new Float32Array(w * h);
1284 this._zbufW = w;
1285 this._zbufH = h;
1286 }
1287 },
1288
1289 /**
1290 * @param {Float32Array} wallDepthPerCol length = screen width
1291 */
1292 draw: function (scene, player, wallDepthPerCol)
1293 {
1294 if (!this.ready || !this.bodySet)
1295 { return; }
1296
1297 var w = Math.round(scene.real_size.x);
1298 var h = Math.round(scene.real_size.y);
1299 this._ensureOverlay(w, h);
1300 var ctx = this._overlayCtx;
1301 ctx.clearRect(0, 0, w, h);
1302 var img = ctx.createImageData(w, h);
1303 var data = img.data;
1304 var zbuf = this._zbuf;
1305 var i;
1306 for (i = 0; i < w * h; i++)
1307 {
1308 var col = i % w;
1309 zbuf[i] = wallDepthPerCol[col];
1310 }
1311
1312 var ppda = this.bodySet.ppda;
1313 var heightM = (ppda.height_milli || 2600) / 1000;
1314 var camDist = ppda.camera_distance || 10;
1315 var near = ppda.depth_near;
1316 var far = ppda.depth_far;
1317 var metersToWorld = this.worldScale;
1318 var tint = scene.npcLight != null ? scene.npcLight : 1;
1319
1320 var list = this.npcs.slice().sort(function (a, b)
1321 {
1322 var da = (a.x - player.x) * (a.x - player.x) + (a.y - player.y) * (a.y - player.y);
1323 var db = (b.x - player.x) * (b.x - player.x) + (b.y - player.y) * (b.y - player.y);
1324 return db - da;
1325 });
1326
1327 for (var ni = 0; ni < list.length; ni++)
1328 {
1329 var npc = list[ni];
1330 var dx = npc.x - player.x;
1331 var dy = npc.y - player.y;
1332 var dist = Math.sqrt(dx * dx + dy * dy);
1333 if (dist < 0.5 || dist > 800)
1334 { continue; }
1335
1336 var angleTo = Math.atan2(dy, dx);
1337 var delta = angleTo - player.rotation;
1338 while (delta > Math.PI) { delta -= Math.PI * 2; }
1339 while (delta < -Math.PI) { delta += Math.PI * 2; }
1340 if (Math.abs(delta) > Math.PI * 0.55)
1341 { continue; }
1342
1343 var relYaw = PpdaViewFrame.relativeYawDeg(player.x, player.y, npc.x, npc.y, npc.facingDeg);
1344 var yaw = PpdaViewFrame.pickYaw(relYaw, ppda.yaws);
1345 var pitch = Math.abs(player.pitch) < 0.25
1346 ? PpdaViewFrame.nearestInList(0, ppda.pitches)
1347 : PpdaViewFrame.pickPitch(player.pitch, ppda.pitches);
1348
1349 var composed = this.composedFor(npc, pitch, yaw);
1350 if (!composed)
1351 { continue; }
1352
1353 var spriteH = (World.size * heightM) * (h / dist) * 0.5;
1354 var aspect = composed.width / Math.max(1, composed.height);
1355 var spriteW = spriteH * aspect;
1356 var screenX = (w / 2) + (delta / (Math.PI / 3)) * (w / 2);
1357 var screenY = h / 2 + (-player.pitch * h * 0.25);
1358 var left = screenX - spriteW / 2;
1359 var top = screenY - spriteH / 2;
1360 var cols = Math.max(1, Math.ceil(spriteW));
1361
1362 for (var c = 0; c < cols; c++)
1363 {
1364 var sx = Math.floor(left + c);
1365 if (sx < 0 || sx >= w)
1366 { continue; }
1367 var u = (c + 0.5) / cols;
1368 var texX = Math.min(composed.width - 1, Math.max(0, Math.floor(u * composed.width)));
1369 var y0 = Math.floor(top);
1370 var y1 = Math.ceil(top + spriteH);
1371
1372 for (var sy = y0; sy < y1; sy++)
1373 {
1374 if (sy < 0 || sy >= h)
1375 { continue; }
1376 var v = (sy - top + 0.5) / spriteH;
1377 if (v < 0 || v >= 1)
1378 { continue; }
1379 var texY = Math.min(composed.height - 1, Math.max(0, Math.floor(v * composed.height)));
1380 var pi = texY * composed.width + texX;
1381 var a = composed.lit[pi * 4 + 3];
1382 if (!a || composed.depthAlpha[pi] === 0)
1383 { continue; }
1384
1385 var depthM = near + (composed.depthGray[pi] / 65535) * (far - near);
1386 var pixelDist = dist + (depthM - camDist) * metersToWorld;
1387 if (pixelDist < 0.05)
1388 { pixelDist = 0.05; }
1389
1390 var zi = sy * w + sx;
1391 if (pixelDist >= zbuf[zi])
1392 { continue; }
1393 zbuf[zi] = pixelDist;
1394
1395 var o = zi * 4;
1396 data[o] = Math.min(255, Math.round(composed.lit[pi * 4] * tint));
1397 data[o + 1] = Math.min(255, Math.round(composed.lit[pi * 4 + 1] * tint));
1398 data[o + 2] = Math.min(255, Math.round(composed.lit[pi * 4 + 2] * tint));
1399 data[o + 3] = a;
1400 }
1401 }
1402 }
1403
1404 ctx.putImageData(img, 0, 0);
1405 var glc = scene.glContext;
1406 // Re-upload every frame (content changes).
1407 if (this._overlayTex)
1408 {
1409 var gl = glc.gl;
1410 gl.bindTexture(gl.TEXTURE_2D, this._overlayTex);
1411 gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, this._overlay);
1412 }
1413 else
1414 {
1415 var prevMin = glc.textureMinFilter;
1416 var prevMag = glc.textureMagFilter;
1417 glc.setDefaultTextureFilter(glc.gl.NEAREST, glc.gl.NEAREST);
1418 this._overlayTex = glc.getTexture(this._overlay);
1419 glc.textureMinFilter = prevMin;
1420 glc.textureMagFilter = prevMag;
1421 }
1422
1423 glc.drawSprite({
1424 texture: this._overlayTex,
1425 x: w / 2,
1426 y: h / 2,
1427 w: w,
1428 h: h,
1429 rotationDeg: 0,
1430 alpha: 1,
1431 uvRect: { u0: 0, v0: 0, u1: 1, v1: 1 }
1432 });
1433 }
1434 };
1435
1436 /*
1437 * End File:
1438 * /workspace/raytracer-work/src/npc.js
1439 */
1440
443 1441 /*
444 1442 * Start File:
445 1443 * /workspace/raytracer-work/src/raycastScene.js
@@ -511,6 +1509,8 @@ class RaycastScene extends Scene
511 1509 {
512 1510 super.update(deltaTime);
513 1511 Player.update(deltaTime);
1512 if (typeof NpcSystem !== "undefined")
1513 { NpcSystem.update(deltaTime); }
514 1514 if (Player.horizontalResolution > this.real_size.x)
515 1515 { Player.horizontalResolution = this.real_size.x; }
516 1516 }
@@ -525,7 +1525,9 @@ class RaycastScene extends Scene
525 1525 glc.endOffscreenPass();
526 1526 glc.clear(0, 0, 0, 1);
527 1527
528 this.drawColumns();
1528 const wallDepth = this.drawColumns();
1529 if (typeof NpcSystem !== "undefined" && NpcSystem.ready)
1530 { NpcSystem.draw(this, Player, wallDepth); }
529 1531 this.drawGun();
530 1532 }
531 1533
@@ -548,6 +1550,9 @@ class RaycastScene extends Scene
548 1550 const cols = Math.max(1, Math.floor(Player.horizontalResolution));
549 1551 const rad = Math.PI / (cols * 2);
550 1552 const widthLine = w / cols;
1553 const wallDepth = new Float32Array(Math.max(1, Math.round(w)));
1554 for (var zi = 0; zi < wallDepth.length; zi++)
1555 { wallDepth[zi] = 1e9; }
551 1556
552 1557 for (var i = 0; i < cols; i++)
553 1558 {
@@ -576,6 +1581,15 @@ class RaycastScene extends Scene
576 1581 var htmlImage = null;
577 1582 var texW = 1;
578 1583
1584 // Z-buffer for NPC occlusion (per screen pixel column).
1585 var x0 = Math.max(0, Math.floor(xLine));
1586 var x1 = Math.min(wallDepth.length, Math.ceil(xLine + widthLine));
1587 for (var xz = x0; xz < x1; xz++)
1588 {
1589 if (dist < wallDepth[xz])
1590 { wallDepth[xz] = dist; }
1591 }
1592
579 1593 if (rayHit.tile.Image && rayHit.tile.Image.g_image)
580 1594 {
581 1595 htmlImage = rayHit.tile.Image.g_image;
@@ -612,6 +1626,7 @@ class RaycastScene extends Scene
612 1626 });
613 1627 }
614 1628 }
1629 return wallDepth;
615 1630 }
616 1631
617 1632 drawGun ()
@@ -659,7 +1674,7 @@ class RaycastScene extends Scene
659 1674 * Start File:
660 1675 * /workspace/raytracer-work/src/main.js
661 1676 */
662 console.log("Raytracer (frameworkv3) starting");
1677 console.log("Raytracer (frameworkv3 + paperdolls) starting");
663 1678 var game = new Game();
664 1679
665 1680 window.onload = function ()
@@ -681,8 +1696,28 @@ window.onload = function ()
681 1696 var w = Math.max(320, window.innerWidth - 2);
682 1697 var h = Math.max(240, window.innerHeight - 2);
683 1698 var scene = new RaycastScene(w, h);
1699 scene.npcLight = 1;
684 1700 game.loadScene(scene);
685 1701
1702 NpcSystem.initEmpty();
1703 NpcSystem.addNpc({ x: 48 + 64, y: 48, facingDeg: 180, clip: "walk", animating: true, label: "walker" });
1704 NpcSystem.addNpc({ x: 48 + 128, y: 48 + 96, facingDeg: 90, clip: "walk", animating: false, time: 0.25, label: "guard" });
1705 NpcSystem.addNpc({ x: 48 + 32, y: 48 + 160, facingDeg: 0, clip: "attack", animating: true, label: "attacker" });
1706 NpcSystem.addNpc({ x: 200, y: 100, facingDeg: 270, clip: "walk", animating: true, label: "side" });
1707
1708 NpcSystem.load(
1709 "paperdolls/male-body/",
1710 "male-body-atlas.ppda",
1711 "paperdolls/male-sword/",
1712 "male-sword-atlas.ppda"
1713 ).then(function ()
1714 {
1715 console.log("Paperdolls loaded (body + sword)");
1716 }).catch(function (err)
1717 {
1718 console.error("Paperdoll load failed", err);
1719 });
1720
686 1721 window.addEventListener("resize", function ()
687 1722 {
688 1723 scene.size.x = Math.max(320, window.innerWidth - 2);
@@ -65,6 +65,736 @@ if (typeof module !== "undefined" && module.exports)
65 * /workspace/raytracer-work/src/textureColumn.js
65 * /workspace/raytracer-work/src/textureColumn.js
66 */
66 */
67
67
68/*
69 * Start File:
70 * /workspace/raytracer-work/src/ppda/depthDecode.js
71 */
72/**
73 * Depth encodings matching Paperdoll Renderer camera::DepthFormat.
74 * Canonical compositor sample is u16 gray + u16 alpha (0..65535).
75 */
76var DepthDecode =
77{
78 EPSILON_U16: 1,
79
80 parseFormat: function (encoding, bits)
81 {
82 var enc = encoding || "gray";
83 var b = bits == null ? 16 : Number(bits);
84 if (b !== 8 && b !== 16)
85 { throw new Error("depth_bits moet 8 of 16 zijn, kreeg " + bits); }
86 if (enc !== "gray" && enc !== "rgb_bands" && enc !== "rgb_packed")
87 { throw new Error("depth_encoding onbekend: " + enc); }
88 return { encoding: enc, bits: b };
89 },
90
91 max: function (fmt)
92 { return (1 << fmt.bits) - 1; },
93
94 levels: function (fmt)
95 {
96 var m = this.max(fmt);
97 if (fmt.encoding === "gray")
98 { return m; }
99 if (fmt.encoding === "rgb_bands")
100 { return 3 * m; }
101 return Math.pow(2, 3 * fmt.bits) - 1;
102 },
103
104 decodeValue: function (fmt, c0, c1, c2)
105 {
106 var m = this.max(fmt);
107 var b = m + 1;
108 var v;
109 if (fmt.encoding === "gray")
110 { v = c0; }
111 else if (fmt.encoding === "rgb_bands")
112 { v = c0 + c1 + c2; }
113 else
114 { v = c0 * b * b + c1 * b + c2; }
115 return v / this.levels(fmt);
116 },
117
118 encodeValue: function (fmt, t)
119 {
120 t = Math.max(0, Math.min(1, Number(t) || 0));
121 var m = this.max(fmt);
122 var v = Math.round(t * this.levels(fmt));
123 if (fmt.encoding === "gray")
124 { return [v, 0, 0]; }
125 if (fmt.encoding === "rgb_bands")
126 {
127 return [
128 Math.min(v, m),
129 Math.min(Math.max(v - m, 0), m),
130 Math.min(Math.max(v - 2 * m, 0), m)
131 ];
132 }
133 var b = m + 1;
134 return [Math.floor(v / (b * b)), Math.floor(v / b) % b, v % b];
135 },
136
137 /**
138 * Decode one pixel channel tuple to canonical u16 (gray, alpha).
139 * channels: [c0,c1,c2,a] in native bit depth units.
140 */
141 decodePixelChannels: function (fmt, channels)
142 {
143 var c0 = channels[0] || 0;
144 var c1 = channels[1] || 0;
145 var c2 = channels[2] || 0;
146 var a = channels[3] != null ? channels[3] : this.max(fmt);
147 if (fmt.encoding === "rgb_bands")
148 {
149 var m = this.max(fmt);
150 if ((c1 > 0 && c0 !== m) || (c2 > 0 && c1 !== m))
151 { throw new Error("depth rgb_bands: ongeldige bandvolgorde"); }
152 }
153 var t = this.decodeValue(fmt, c0, c1, c2);
154 var scale = 65535 / this.max(fmt);
155 return {
156 gray: Math.round(t * 65535),
157 alpha: Math.round(a * scale)
158 };
159 },
160
161 /** Meters from camera using near/far and normalized t (0..1 from gray/65535). */
162 distanceMeters: function (grayU16, near, far)
163 {
164 var t = (grayU16 & 0xffff) / 65535;
165 return near + t * (far - near);
166 }
167};
168
169if (typeof module !== "undefined" && module.exports)
170{ module.exports = DepthDecode; }
171
172/*
173 * End File:
174 * /workspace/raytracer-work/src/ppda/depthDecode.js
175 */
176
177/*
178 * Start File:
179 * /workspace/raytracer-work/src/ppda/viewFrame.js
180 */
181/**
182 * Choose paperdoll view (yaw/pitch) and animation frame.
183 * Yaw 0 = character front (Paperdoll/glTF convention).
184 */
185var PpdaViewFrame =
186{
187 /**
188 * Relative viewing yaw in degrees [0,360): direction from NPC to player,
189 * minus the NPC's facing yaw (degrees, 0 = faces +X/east in world… mapped
190 * so that when the player looks at the NPC's front, relative yaw ≈ 0).
191 *
192 * World: +X east, +Y south (legacy raycaster). NPC facingYawDeg: 0 looks
193 * toward +X. Paperdoll yaw 0 is front. We map world facing so that the
194 * camera looking opposite to facing sees front.
195 */
196 relativeYawDeg: function (playerX, playerY, npcX, npcY, npcFacingDeg)
197 {
198 var dx = playerX - npcX;
199 var dy = playerY - npcY;
200 // Angle of vector NPC→player in world degrees (0=+X, 90=+Y).
201 var toPlayer = Math.atan2(dy, dx) * 180 / Math.PI;
202 if (toPlayer < 0)
203 { toPlayer += 360; }
204 // When player stands in front of NPC, toPlayer ≈ npcFacing.
205 // Paperdoll wants yaw 0 for front → relative = toPlayer - facing.
206 var rel = toPlayer - (npcFacingDeg || 0);
207 rel = ((rel % 360) + 360) % 360;
208 return rel;
209 },
210
211 nearestInList: function (value, list, circular360)
212 {
213 if (!list || !list.length)
214 { return 0; }
215 var best = list[0];
216 var bestD = Infinity;
217 for (var i = 0; i < list.length; i++)
218 {
219 var v = list[i];
220 var d = Math.abs(value - v);
221 if (circular360)
222 { d = Math.min(d, 360 - d); }
223 if (d < bestD)
224 {
225 bestD = d;
226 best = v;
227 }
228 }
229 return best;
230 },
231
232 pickYaw: function (relativeYawDeg, yaws)
233 {
234 return this.nearestInList(((relativeYawDeg % 360) + 360) % 360, yaws || [0], true);
235 },
236
237 pickPitch: function (playerPitchRad, pitches)
238 {
239 // player pitch: 0 = horizon; positive looks down in this game.
240 // Paperdoll: positive pitch = from above. Invert sign for mapping.
241 var deg = -(playerPitchRad || 0) * 180 / Math.PI;
242 return this.nearestInList(deg, pitches || [0]);
243 },
244
245 frameIndex: function (timeSec, fps, frameCount)
246 {
247 var n = Math.max(1, frameCount | 0);
248 var f = Math.max(1, fps | 0);
249 var idx = Math.floor((timeSec || 0) * f);
250 idx %= n;
251 if (idx < 0)
252 { idx += n; }
253 return idx;
254 },
255
256 findClip: function (ppda, clipTokenOrName)
257 {
258 var clips = ppda && ppda.clips || [];
259 for (var i = 0; i < clips.length; i++)
260 {
261 if (clips[i].token === clipTokenOrName || clips[i].name === clipTokenOrName)
262 { return clips[i]; }
263 }
264 return clips[0] || null;
265 },
266
267 findView: function (frame, pitch, yaw)
268 {
269 var views = frame && frame.views || [];
270 for (var i = 0; i < views.length; i++)
271 {
272 if (views[i].pitch === pitch && views[i].yaw === yaw)
273 { return views[i]; }
274 }
275 return null;
276 },
277
278 uvRect: function (view, atlasW, atlasH)
279 {
280 if (!view)
281 { return { u0: 0, v0: 0, u1: 1, v1: 1, x: 0, y: 0, w: 0, h: 0 }; }
282 var w = atlasW || 1;
283 var h = atlasH || 1;
284 return {
285 x: view.x,
286 y: view.y,
287 w: view.w,
288 h: view.h,
289 u0: view.x / w,
290 v0: view.y / h,
291 u1: (view.x + view.w) / w,
292 v1: (view.y + view.h) / h
293 };
294 }
295};
296
297if (typeof module !== "undefined" && module.exports)
298{ module.exports = PpdaViewFrame; }
299
300/*
301 * End File:
302 * /workspace/raytracer-work/src/ppda/viewFrame.js
303 */
304
305/*
306 * Start File:
307 * /workspace/raytracer-work/src/ppda/compositor.js
308 */
309/**
310 * Live body+equipment compositor — port of compositor.rs compose().
311 * Per pixel: nearest valid depth wins; ties keep lower layer index (body first).
312 * Valid = depth alpha ≠ 0 AND diffuse alpha ≠ 0.
313 */
314var PpdaCompositor =
315{
316 DEPTH_EPSILON_U16: 1,
317
318 /**
319 * @param {Array<{width,height,diffuse:Uint8ClampedArray|Uint8Array,depthGray:Uint16Array,depthAlpha:Uint16Array,normal?:Uint8Array,specular?:Uint8Array}>} layers
320 */
321 compose: function (layers)
322 {
323 if (!layers || !layers.length)
324 { throw new Error("geen lagen om te composeren"); }
325 var width = layers[0].width;
326 var height = layers[0].height;
327 var pixels = width * height;
328 if (!pixels)
329 { throw new Error("lege afmetingen"); }
330 for (var li = 0; li < layers.length; li++)
331 {
332 var L = layers[li];
333 if (L.width !== width || L.height !== height)
334 { throw new Error("laag " + li + " heeft andere afmetingen"); }
335 if (L.diffuse.length !== pixels * 4 || L.depthGray.length !== pixels || L.depthAlpha.length !== pixels)
336 { throw new Error("laag " + li + " inconsistente buffers"); }
337 }
338
339 var diffuse = new Uint8ClampedArray(pixels * 4);
340 var normal = new Uint8ClampedArray(pixels * 4);
341 var specular = new Uint8ClampedArray(pixels * 4);
342 var depthGray = new Uint16Array(pixels);
343 var depthAlpha = new Uint16Array(pixels);
344 var winner = new Uint8Array(pixels);
345 for (var i = 0; i < pixels; i++)
346 { winner[i] = 255; }
347
348 var eps = this.DEPTH_EPSILON_U16;
349 for (var i = 0; i < pixels; i++)
350 {
351 var bestDepth = null;
352 var bestLayer = null;
353 for (var layerIdx = 0; layerIdx < layers.length; layerIdx++)
354 {
355 var layer = layers[layerIdx];
356 if (layer.depthAlpha[i] === 0 || layer.diffuse[i * 4 + 3] === 0)
357 { continue; }
358 var gray = layer.depthGray[i];
359 if (bestDepth == null)
360 {
361 bestDepth = gray;
362 bestLayer = layerIdx;
363 }
364 else if (gray + eps < bestDepth)
365 {
366 bestDepth = gray;
367 bestLayer = layerIdx;
368 }
369 else if (gray <= bestDepth + eps)
370 {
371 /* tie: keep lower index */
372 }
373 }
374 if (bestLayer != null)
375 {
376 var src = layers[bestLayer];
377 var o = i * 4;
378 diffuse[o] = src.diffuse[o];
379 diffuse[o + 1] = src.diffuse[o + 1];
380 diffuse[o + 2] = src.diffuse[o + 2];
381 diffuse[o + 3] = src.diffuse[o + 3];
382 if (src.normal)
383 {
384 normal[o] = src.normal[o];
385 normal[o + 1] = src.normal[o + 1];
386 normal[o + 2] = src.normal[o + 2];
387 normal[o + 3] = src.normal[o + 3];
388 }
389 if (src.specular)
390 {
391 specular[o] = src.specular[o];
392 specular[o + 1] = src.specular[o + 1];
393 specular[o + 2] = src.specular[o + 2];
394 specular[o + 3] = src.specular[o + 3];
395 }
396 depthGray[i] = src.depthGray[i];
397 depthAlpha[i] = src.depthAlpha[i];
398 winner[i] = bestLayer;
399 }
400 }
401
402 return {
403 width: width,
404 height: height,
405 diffuse: diffuse,
406 normal: normal,
407 specular: specular,
408 depthGray: depthGray,
409 depthAlpha: depthAlpha,
410 winner: winner
411 };
412 },
413
414 /** Simple ambient+Lambert approx for preview (Preview2d-achtig, licht). */
415 relightDiffuse: function (composed, lightAmt)
416 {
417 lightAmt = lightAmt == null ? 1 : lightAmt;
418 var out = new Uint8ClampedArray(composed.diffuse.length);
419 for (var i = 0; i < composed.diffuse.length; i += 4)
420 {
421 var a = composed.diffuse[i + 3];
422 if (a === 0)
423 { continue; }
424 var ndot = 0.75;
425 if (composed.normal && composed.normal[i + 3])
426 {
427 var nx = composed.normal[i] / 255 * 2 - 1;
428 var ny = composed.normal[i + 1] / 255 * 2 - 1;
429 var nz = composed.normal[i + 2] / 255 * 2 - 1;
430 ndot = Math.max(0, nx * 0.3 + ny * 0.2 + nz * 0.9);
431 }
432 var shade = Math.min(1, 0.35 + 0.65 * ndot) * lightAmt;
433 out[i] = Math.min(255, Math.round(composed.diffuse[i] * shade));
434 out[i + 1] = Math.min(255, Math.round(composed.diffuse[i + 1] * shade));
435 out[i + 2] = Math.min(255, Math.round(composed.diffuse[i + 2] * shade));
436 out[i + 3] = a;
437 }
438 return out;
439 }
440};
441
442if (typeof module !== "undefined" && module.exports)
443{ module.exports = PpdaCompositor; }
444
445/*
446 * End File:
447 * /workspace/raytracer-work/src/ppda/compositor.js
448 */
449
450/*
451 * Start File:
452 * /workspace/raytracer-work/src/ppda/loadPpda.js
453 */
454/**
455 * Strict-enough .ppda loader for formats 1–5 (Paperdoll AtlasSet consumer).
456 */
457var PpdaLoader =
458{
459 SUPPORTED_FORMATS: [1, 2, 3, 4, 5],
460
461 parse: function (jsonText, options)
462 {
463 options = options || {};
464 var doc;
465 try
466 { doc = typeof jsonText === "string" ? JSON.parse(jsonText) : jsonText; }
467 catch (e)
468 { throw new Error("ppda: ongeldige JSON (" + e.message + ")"); }
469
470 if (!doc || typeof doc !== "object")
471 { throw new Error("ppda: root moet een object zijn"); }
472
473 var ver = doc.format_version;
474 if (this.SUPPORTED_FORMATS.indexOf(ver) < 0)
475 { throw new Error("ppda: format_version " + ver + " niet ondersteund (wel: " + this.SUPPORTED_FORMATS.join(",") + ")"); }
476
477 if (!doc.sex || !doc.settype)
478 { throw new Error("ppda: sex/settype verplicht"); }
479 if (!doc.fps || doc.fps < 1)
480 { throw new Error("ppda: fps ongeldig"); }
481 if (!doc.cell_width || !doc.cell_height)
482 { throw new Error("ppda: cell_width/height verplicht"); }
483 if (!Array.isArray(doc.pitches) || !Array.isArray(doc.yaws) || !doc.pitches.length || !doc.yaws.length)
484 { throw new Error("ppda: pitches/yaws verplicht"); }
485 if (!doc.maps || typeof doc.maps !== "object")
486 { throw new Error("ppda: maps verplicht"); }
487 ["diffuse", "depth"].forEach(function (k)
488 {
489 if (!doc.maps[k] || !doc.maps[k].file)
490 { throw new Error("ppda: maps." + k + ".file verplicht"); }
491 if (String(doc.maps[k].file).indexOf("..") >= 0 || String(doc.maps[k].file).indexOf("/") >= 0 || String(doc.maps[k].file).indexOf("\\") >= 0)
492 { throw new Error("ppda: maps." + k + ".file mag geen pad bevatten"); }
493 });
494 if (!Array.isArray(doc.clips) || !doc.clips.length)
495 { throw new Error("ppda: clips verplicht"); }
496
497 for (var ci = 0; ci < doc.clips.length; ci++)
498 {
499 var clip = doc.clips[ci];
500 if (!clip.frames || clip.frames.length !== clip.frame_count)
501 { throw new Error("ppda: clip '" + (clip.name || ci) + "' frames≠frame_count"); }
502 for (var fi = 0; fi < clip.frames.length; fi++)
503 {
504 var fr = clip.frames[fi];
505 if (!fr.views || !fr.views.length)
506 { throw new Error("ppda: frame zonder views"); }
507 for (var vi = 0; vi < fr.views.length; vi++)
508 {
509 var v = fr.views[vi];
510 if (v.w == null || v.h == null || v.x == null || v.y == null)
511 { throw new Error("ppda: view mist x/y/w/h"); }
512 }
513 }
514 }
515
516 var encoding = doc.depth_encoding;
517 var bits = doc.depth_bits;
518 if (!encoding)
519 {
520 // v1 / legacy long text in identity.depth → gray16
521 encoding = "gray";
522 bits = bits || 16;
523 }
524 else if (/gray/i.test(encoding) && encoding.indexOf("rgb_") < 0)
525 {
526 encoding = "gray";
527 }
528 else if (encoding.indexOf("rgb_bands") >= 0)
529 { encoding = "rgb_bands"; }
530 else if (encoding.indexOf("rgb_packed") >= 0)
531 { encoding = "rgb_packed"; }
532
533 var near = doc.depth_near != null ? doc.depth_near : (doc.identity && doc.identity.near);
534 var far = doc.depth_far != null ? doc.depth_far : (doc.identity && doc.identity.far);
535 if (near == null || far == null)
536 { throw new Error("ppda: depth_near/far of identity.near/far verplicht"); }
537
538 var fmt = DepthDecode.parseFormat(encoding, bits || 16);
539
540 return {
541 format_version: ver,
542 sex: doc.sex,
543 settype: doc.settype,
544 fps: doc.fps,
545 cell_width: doc.cell_width,
546 cell_height: doc.cell_height,
547 pitches: doc.pitches.slice(),
548 yaws: doc.yaws.slice(),
549 maps: doc.maps,
550 clips: doc.clips,
551 identity: doc.identity || null,
552 project: doc.project || null,
553 depth_near: Number(near),
554 depth_far: Number(far),
555 depth_format: fmt,
556 camera_distance: doc.identity && doc.identity.camera_distance != null
557 ? Number(doc.identity.camera_distance)
558 : 10,
559 height_milli: doc.identity && doc.identity.framing
560 ? doc.identity.framing.height_milli
561 : 2600,
562 raw: doc
563 };
564 },
565
566 compatKey: function (ppda)
567 {
568 var id = ppda.identity || {};
569 return {
570 sex: ppda.sex,
571 body_model_sha256: id.body_model_sha256 || "",
572 fps: ppda.fps,
573 cell_width: ppda.cell_width,
574 cell_height: ppda.cell_height,
575 pitches: ppda.pitches.join(","),
576 yaws: ppda.yaws.join(","),
577 near: ppda.depth_near,
578 far: ppda.depth_far
579 };
580 },
581
582 assertCompatible: function (a, b)
583 {
584 var ka = this.compatKey(a);
585 var kb = this.compatKey(b);
586 var keys = Object.keys(ka);
587 for (var i = 0; i < keys.length; i++)
588 {
589 var k = keys[i];
590 if (String(ka[k]) !== String(kb[k]))
591 { throw new Error("ppda incompatible: " + k + " (" + ka[k] + " vs " + kb[k] + ")"); }
592 }
593 }
594};
595
596if (typeof module !== "undefined" && module.exports)
597{ module.exports = PpdaLoader; }
598
599/*
600 * End File:
601 * /workspace/raytracer-work/src/ppda/loadPpda.js
602 */
603
604/*
605 * Start File:
606 * /workspace/raytracer-work/src/ppda/atlasRuntime.js
607 */
608/**
609 * Browser/runtime atlas set: loads PNG diffuse/normal/specular + u16 depth,
610 * extracts cells, composes body+gear on CPU (cell is 32×48 — cheap).
611 */
612var PpdaAtlasRuntime =
613{
614 _canvas: null,
615 _ctx: null,
616
617 _ensureCanvas: function ()
618 {
619 if (typeof document === "undefined")
620 { return null; }
621 if (!this._canvas)
622 {
623 this._canvas = document.createElement("canvas");
624 this._ctx = this._canvas.getContext("2d", { willReadFrequently: true });
625 }
626 return this._ctx;
627 },
628
629 loadImage: function (url)
630 {
631 return new Promise(function (resolve, reject)
632 {
633 var img = new Image();
634 img.onload = function ()
635 { resolve(img); };
636 img.onerror = function ()
637 { reject(new Error("image load failed: " + url)); };
638 img.src = url;
639 });
640 },
641
642 loadU16Depth: function (url, expectW, expectH)
643 {
644 return fetch(url).then(function (r)
645 {
646 if (!r.ok)
647 { throw new Error("depth fetch " + r.status + " " + url); }
648 return r.arrayBuffer();
649 }).then(function (buf)
650 {
651 var need = expectW * expectH * 4;
652 if (buf.byteLength < need)
653 { throw new Error("depth u16 te kort: " + buf.byteLength + " < " + need); }
654 return new Uint16Array(buf.slice(0, need));
655 });
656 },
657
658 /**
659 * @returns {Promise<{ppda, images, depthU16, baseUrl}>}
660 */
661 loadSet: function (baseUrl, ppdaFile)
662 {
663 var self = this;
664 baseUrl = baseUrl.replace(/\/?$/, "/");
665 return fetch(baseUrl + ppdaFile).then(function (r)
666 {
667 if (!r.ok)
668 { throw new Error("ppda fetch " + r.status); }
669 return r.text();
670 }).then(function (text)
671 {
672 var ppda = PpdaLoader.parse(text);
673 var maps = ppda.maps;
674 var jobs = [
675 self.loadImage(baseUrl + maps.diffuse.file),
676 maps.normal ? self.loadImage(baseUrl + maps.normal.file) : Promise.resolve(null),
677 maps.specular ? self.loadImage(baseUrl + maps.specular.file) : Promise.resolve(null)
678 ];
679 var depthFile = maps.depth.file;
680 var dw = maps.depth.width || maps.diffuse.width;
681 var dh = maps.depth.height || maps.diffuse.height;
682 if (maps.depth.storage === "u16le_ga" || /\.u16$/i.test(depthFile))
683 { jobs.push(self.loadU16Depth(baseUrl + depthFile, dw, dh)); }
684 else
685 { throw new Error("browser-loader verwacht depth als .u16 (storage=u16le_ga); got " + depthFile); }
686
687 return Promise.all(jobs).then(function (parts)
688 {
689 return {
690 ppda: ppda,
691 baseUrl: baseUrl,
692 diffuseImg: parts[0],
693 normalImg: parts[1],
694 specularImg: parts[2],
695 depthU16: parts[3],
696 depthW: dw,
697 depthH: dh
698 };
699 });
700 });
701 },
702
703 extractRgbaCell: function (img, view)
704 {
705 var ctx = this._ensureCanvas();
706 if (!ctx)
707 { throw new Error("geen canvas voor cell extract"); }
708 this._canvas.width = view.w;
709 this._canvas.height = view.h;
710 ctx.clearRect(0, 0, view.w, view.h);
711 ctx.drawImage(img, view.x, view.y, view.w, view.h, 0, 0, view.w, view.h);
712 return ctx.getImageData(0, 0, view.w, view.h).data;
713 },
714
715 extractDepthCell: function (depthU16, atlasW, view)
716 {
717 var n = view.w * view.h;
718 var gray = new Uint16Array(n);
719 var alpha = new Uint16Array(n);
720 for (var y = 0; y < view.h; y++)
721 {
722 for (var x = 0; x < view.w; x++)
723 {
724 var si = ((view.y + y) * atlasW + (view.x + x)) * 2;
725 var di = y * view.w + x;
726 gray[di] = depthU16[si];
727 alpha[di] = depthU16[si + 1];
728 }
729 }
730 return { depthGray: gray, depthAlpha: alpha };
731 },
732
733 layerFromSet: function (set, clipToken, frameIndex, pitch, yaw)
734 {
735 var clip = PpdaViewFrame.findClip(set.ppda, clipToken);
736 if (!clip)
737 { throw new Error("clip niet gevonden: " + clipToken); }
738 var frame = clip.frames[frameIndex];
739 if (!frame)
740 { throw new Error("frame " + frameIndex + " ontbreekt"); }
741 var view = PpdaViewFrame.findView(frame, pitch, yaw);
742 if (!view)
743 { throw new Error("view p" + pitch + " y" + yaw + " ontbreekt"); }
744 if (view.empty)
745 {
746 var emptyN = view.w * view.h;
747 return {
748 width: view.w,
749 height: view.h,
750 diffuse: new Uint8ClampedArray(emptyN * 4),
751 normal: new Uint8ClampedArray(emptyN * 4),
752 specular: new Uint8ClampedArray(emptyN * 4),
753 depthGray: new Uint16Array(emptyN),
754 depthAlpha: new Uint16Array(emptyN),
755 view: view
756 };
757 }
758 var diffuse = this.extractRgbaCell(set.diffuseImg, view);
759 var normal = set.normalImg ? this.extractRgbaCell(set.normalImg, view) : null;
760 var specular = set.specularImg ? this.extractRgbaCell(set.specularImg, view) : null;
761 var depth = this.extractDepthCell(set.depthU16, set.depthW, view);
762 return {
763 width: view.w,
764 height: view.h,
765 diffuse: diffuse,
766 normal: normal,
767 specular: specular,
768 depthGray: depth.depthGray,
769 depthAlpha: depth.depthAlpha,
770 view: view
771 };
772 },
773
774 composeView: function (bodySet, gearSet, clipToken, frameIndex, pitch, yaw)
775 {
776 var body = this.layerFromSet(bodySet, clipToken, frameIndex, pitch, yaw);
777 var layers = [body];
778 if (gearSet)
779 {
780 PpdaLoader.assertCompatible(bodySet.ppda, gearSet.ppda);
781 layers.push(this.layerFromSet(gearSet, clipToken, frameIndex, pitch, yaw));
782 }
783 var composed = PpdaCompositor.compose(layers);
784 composed.view = body.view;
785 composed.lit = PpdaCompositor.relightDiffuse(composed, 1);
786 return composed;
787 }
788};
789
790if (typeof module !== "undefined" && module.exports)
791{ module.exports = PpdaAtlasRuntime; }
792
793/*
794 * End File:
795 * /workspace/raytracer-work/src/ppda/atlasRuntime.js
796 */
797
68/*
798/*
69 * Start File:
799 * Start File:
70 * /workspace/raytracer-work/src/levels.js
800 * /workspace/raytracer-work/src/levels.js
@@ -440,6 +1170,274 @@ var Player =
440 * /workspace/raytracer-work/src/player.js
1170 * /workspace/raytracer-work/src/player.js
441 */
1171 */
442
1172
1173/*
1174 * Start File:
1175 * /workspace/raytracer-work/src/npc.js
1176 */
1177/**
1178 * Paperdoll NPC billboards.
1179 * Compose body+gear on CPU when view/frame changes (cell ~32×48).
1180 * Project with per-pixel depth into an offscreen RGBA buffer + z-buffer,
1181 * then one WebGL textured quad — avoids thousands of drawSprite calls.
1182 */
1183var NpcSystem =
1184{
1185 npcs: [],
1186 bodySet: null,
1187 gearSet: null,
1188 ready: false,
1189 cache: {},
1190 worldScale: 32,
1191 _overlay: null,
1192 _overlayCtx: null,
1193 _overlayImg: null,
1194 _zbuf: null,
1195 _zbufW: 0,
1196 _zbufH: 0,
1197
1198 initEmpty: function ()
1199 {
1200 this.npcs = [];
1201 this.cache = {};
1202 this.ready = false;
1203 },
1204
1205 addNpc: function (opts)
1206 {
1207 this.npcs.push({
1208 x: opts.x,
1209 y: opts.y,
1210 facingDeg: opts.facingDeg || 0,
1211 clip: opts.clip || "walk",
1212 animating: opts.animating !== false,
1213 time: opts.time || 0,
1214 label: opts.label || "npc"
1215 });
1216 },
1217
1218 load: function (bodyBase, bodyPpda, gearBase, gearPpda)
1219 {
1220 var self = this;
1221 return PpdaAtlasRuntime.loadSet(bodyBase, bodyPpda).then(function (body)
1222 {
1223 self.bodySet = body;
1224 if (!gearBase)
1225 {
1226 self.ready = true;
1227 return body;
1228 }
1229 return PpdaAtlasRuntime.loadSet(gearBase, gearPpda).then(function (gear)
1230 {
1231 PpdaLoader.assertCompatible(body.ppda, gear.ppda);
1232 self.gearSet = gear;
1233 self.ready = true;
1234 return body;
1235 });
1236 });
1237 },
1238
1239 update: function (dt)
1240 {
1241 for (var i = 0; i < this.npcs.length; i++)
1242 {
1243 if (this.npcs[i].animating)
1244 { this.npcs[i].time += dt; }
1245 }
1246 },
1247
1248 composedFor: function (npc, pitch, yaw)
1249 {
1250 if (!this.bodySet)
1251 { return null; }
1252 var clip = PpdaViewFrame.findClip(this.bodySet.ppda, npc.clip);
1253 var frameCount = clip ? clip.frame_count : 1;
1254 var frame = PpdaViewFrame.frameIndex(npc.time, this.bodySet.ppda.fps, frameCount);
1255 var key = npc.clip + "|" + frame + "|" + pitch + "|" + yaw;
1256 if (this.cache[key])
1257 { return this.cache[key]; }
1258 var composed = PpdaAtlasRuntime.composeView(
1259 this.bodySet,
1260 this.gearSet,
1261 npc.clip,
1262 frame,
1263 pitch,
1264 yaw
1265 );
1266 this.cache[key] = composed;
1267 var keys = Object.keys(this.cache);
1268 if (keys.length > 96)
1269 { delete this.cache[keys[0]]; }
1270 return composed;
1271 },
1272
1273 _ensureOverlay: function (w, h)
1274 {
1275 if (!this._overlay || this._overlay.width !== w || this._overlay.height !== h)
1276 {
1277 this._overlay = document.createElement("canvas");
1278 this._overlay.width = w;
1279 this._overlay.height = h;
1280 this._overlayCtx = this._overlay.getContext("2d");
1281 this._overlayImg = null;
1282 this._overlayTex = null;
1283 this._zbuf = new Float32Array(w * h);
1284 this._zbufW = w;
1285 this._zbufH = h;
1286 }
1287 },
1288
1289 /**
1290 * @param {Float32Array} wallDepthPerCol length = screen width
1291 */
1292 draw: function (scene, player, wallDepthPerCol)
1293 {
1294 if (!this.ready || !this.bodySet)
1295 { return; }
1296
1297 var w = Math.round(scene.real_size.x);
1298 var h = Math.round(scene.real_size.y);
1299 this._ensureOverlay(w, h);
1300 var ctx = this._overlayCtx;
1301 ctx.clearRect(0, 0, w, h);
1302 var img = ctx.createImageData(w, h);
1303 var data = img.data;
1304 var zbuf = this._zbuf;
1305 var i;
1306 for (i = 0; i < w * h; i++)
1307 {
1308 var col = i % w;
1309 zbuf[i] = wallDepthPerCol[col];
1310 }
1311
1312 var ppda = this.bodySet.ppda;
1313 var heightM = (ppda.height_milli || 2600) / 1000;
1314 var camDist = ppda.camera_distance || 10;
1315 var near = ppda.depth_near;
1316 var far = ppda.depth_far;
1317 var metersToWorld = this.worldScale;
1318 var tint = scene.npcLight != null ? scene.npcLight : 1;
1319
1320 var list = this.npcs.slice().sort(function (a, b)
1321 {
1322 var da = (a.x - player.x) * (a.x - player.x) + (a.y - player.y) * (a.y - player.y);
1323 var db = (b.x - player.x) * (b.x - player.x) + (b.y - player.y) * (b.y - player.y);
1324 return db - da;
1325 });
1326
1327 for (var ni = 0; ni < list.length; ni++)
1328 {
1329 var npc = list[ni];
1330 var dx = npc.x - player.x;
1331 var dy = npc.y - player.y;
1332 var dist = Math.sqrt(dx * dx + dy * dy);
1333 if (dist < 0.5 || dist > 800)
1334 { continue; }
1335
1336 var angleTo = Math.atan2(dy, dx);
1337 var delta = angleTo - player.rotation;
1338 while (delta > Math.PI) { delta -= Math.PI * 2; }
1339 while (delta < -Math.PI) { delta += Math.PI * 2; }
1340 if (Math.abs(delta) > Math.PI * 0.55)
1341 { continue; }
1342
1343 var relYaw = PpdaViewFrame.relativeYawDeg(player.x, player.y, npc.x, npc.y, npc.facingDeg);
1344 var yaw = PpdaViewFrame.pickYaw(relYaw, ppda.yaws);
1345 var pitch = Math.abs(player.pitch) < 0.25
1346 ? PpdaViewFrame.nearestInList(0, ppda.pitches)
1347 : PpdaViewFrame.pickPitch(player.pitch, ppda.pitches);
1348
1349 var composed = this.composedFor(npc, pitch, yaw);
1350 if (!composed)
1351 { continue; }
1352
1353 var spriteH = (World.size * heightM) * (h / dist) * 0.5;
1354 var aspect = composed.width / Math.max(1, composed.height);
1355 var spriteW = spriteH * aspect;
1356 var screenX = (w / 2) + (delta / (Math.PI / 3)) * (w / 2);
1357 var screenY = h / 2 + (-player.pitch * h * 0.25);
1358 var left = screenX - spriteW / 2;
1359 var top = screenY - spriteH / 2;
1360 var cols = Math.max(1, Math.ceil(spriteW));
1361
1362 for (var c = 0; c < cols; c++)
1363 {
1364 var sx = Math.floor(left + c);
1365 if (sx < 0 || sx >= w)
1366 { continue; }
1367 var u = (c + 0.5) / cols;
1368 var texX = Math.min(composed.width - 1, Math.max(0, Math.floor(u * composed.width)));
1369 var y0 = Math.floor(top);
1370 var y1 = Math.ceil(top + spriteH);
1371
1372 for (var sy = y0; sy < y1; sy++)
1373 {
1374 if (sy < 0 || sy >= h)
1375 { continue; }
1376 var v = (sy - top + 0.5) / spriteH;
1377 if (v < 0 || v >= 1)
1378 { continue; }
1379 var texY = Math.min(composed.height - 1, Math.max(0, Math.floor(v * composed.height)));
1380 var pi = texY * composed.width + texX;
1381 var a = composed.lit[pi * 4 + 3];
1382 if (!a || composed.depthAlpha[pi] === 0)
1383 { continue; }
1384
1385 var depthM = near + (composed.depthGray[pi] / 65535) * (far - near);
1386 var pixelDist = dist + (depthM - camDist) * metersToWorld;
1387 if (pixelDist < 0.05)
1388 { pixelDist = 0.05; }
1389
1390 var zi = sy * w + sx;
1391 if (pixelDist >= zbuf[zi])
1392 { continue; }
1393 zbuf[zi] = pixelDist;
1394
1395 var o = zi * 4;
1396 data[o] = Math.min(255, Math.round(composed.lit[pi * 4] * tint));
1397 data[o + 1] = Math.min(255, Math.round(composed.lit[pi * 4 + 1] * tint));
1398 data[o + 2] = Math.min(255, Math.round(composed.lit[pi * 4 + 2] * tint));
1399 data[o + 3] = a;
1400 }
1401 }
1402 }
1403
1404 ctx.putImageData(img, 0, 0);
1405 var glc = scene.glContext;
1406 // Re-upload every frame (content changes).
1407 if (this._overlayTex)
1408 {
1409 var gl = glc.gl;
1410 gl.bindTexture(gl.TEXTURE_2D, this._overlayTex);
1411 gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, this._overlay);
1412 }
1413 else
1414 {
1415 var prevMin = glc.textureMinFilter;
1416 var prevMag = glc.textureMagFilter;
1417 glc.setDefaultTextureFilter(glc.gl.NEAREST, glc.gl.NEAREST);
1418 this._overlayTex = glc.getTexture(this._overlay);
1419 glc.textureMinFilter = prevMin;
1420 glc.textureMagFilter = prevMag;
1421 }
1422
1423 glc.drawSprite({
1424 texture: this._overlayTex,
1425 x: w / 2,
1426 y: h / 2,
1427 w: w,
1428 h: h,
1429 rotationDeg: 0,
1430 alpha: 1,
1431 uvRect: { u0: 0, v0: 0, u1: 1, v1: 1 }
1432 });
1433 }
1434};
1435
1436/*
1437 * End File:
1438 * /workspace/raytracer-work/src/npc.js
1439 */
1440
443/*
1441/*
444 * Start File:
1442 * Start File:
445 * /workspace/raytracer-work/src/raycastScene.js
1443 * /workspace/raytracer-work/src/raycastScene.js
@@ -511,6 +1509,8 @@ class RaycastScene extends Scene
511 {
1509 {
512 super.update(deltaTime);
1510 super.update(deltaTime);
513 Player.update(deltaTime);
1511 Player.update(deltaTime);
1512 if (typeof NpcSystem !== "undefined")
1513 { NpcSystem.update(deltaTime); }
514 if (Player.horizontalResolution > this.real_size.x)
1514 if (Player.horizontalResolution > this.real_size.x)
515 { Player.horizontalResolution = this.real_size.x; }
1515 { Player.horizontalResolution = this.real_size.x; }
516 }
1516 }
@@ -525,7 +1525,9 @@ class RaycastScene extends Scene
525 glc.endOffscreenPass();
1525 glc.endOffscreenPass();
526 glc.clear(0, 0, 0, 1);
1526 glc.clear(0, 0, 0, 1);
527
1527
528 this.drawColumns();
1528 const wallDepth = this.drawColumns();
1529 if (typeof NpcSystem !== "undefined" && NpcSystem.ready)
1530 { NpcSystem.draw(this, Player, wallDepth); }
529 this.drawGun();
1531 this.drawGun();
530 }
1532 }
531
1533
@@ -548,6 +1550,9 @@ class RaycastScene extends Scene
548 const cols = Math.max(1, Math.floor(Player.horizontalResolution));
1550 const cols = Math.max(1, Math.floor(Player.horizontalResolution));
549 const rad = Math.PI / (cols * 2);
1551 const rad = Math.PI / (cols * 2);
550 const widthLine = w / cols;
1552 const widthLine = w / cols;
1553 const wallDepth = new Float32Array(Math.max(1, Math.round(w)));
1554 for (var zi = 0; zi < wallDepth.length; zi++)
1555 { wallDepth[zi] = 1e9; }
551
1556
552 for (var i = 0; i < cols; i++)
1557 for (var i = 0; i < cols; i++)
553 {
1558 {
@@ -576,6 +1581,15 @@ class RaycastScene extends Scene
576 var htmlImage = null;
1581 var htmlImage = null;
577 var texW = 1;
1582 var texW = 1;
578
1583
1584 // Z-buffer for NPC occlusion (per screen pixel column).
1585 var x0 = Math.max(0, Math.floor(xLine));
1586 var x1 = Math.min(wallDepth.length, Math.ceil(xLine + widthLine));
1587 for (var xz = x0; xz < x1; xz++)
1588 {
1589 if (dist < wallDepth[xz])
1590 { wallDepth[xz] = dist; }
1591 }
1592
579 if (rayHit.tile.Image && rayHit.tile.Image.g_image)
1593 if (rayHit.tile.Image && rayHit.tile.Image.g_image)
580 {
1594 {
581 htmlImage = rayHit.tile.Image.g_image;
1595 htmlImage = rayHit.tile.Image.g_image;
@@ -612,6 +1626,7 @@ class RaycastScene extends Scene
612 });
1626 });
613 }
1627 }
614 }
1628 }
1629 return wallDepth;
615 }
1630 }
616
1631
617 drawGun ()
1632 drawGun ()
@@ -659,7 +1674,7 @@ class RaycastScene extends Scene
659 * Start File:
1674 * Start File:
660 * /workspace/raytracer-work/src/main.js
1675 * /workspace/raytracer-work/src/main.js
661 */
1676 */
662console.log("Raytracer (frameworkv3) starting");
1677console.log("Raytracer (frameworkv3 + paperdolls) starting");
663var game = new Game();
1678var game = new Game();
664
1679
665window.onload = function ()
1680window.onload = function ()
@@ -681,8 +1696,28 @@ window.onload = function ()
681 var w = Math.max(320, window.innerWidth - 2);
1696 var w = Math.max(320, window.innerWidth - 2);
682 var h = Math.max(240, window.innerHeight - 2);
1697 var h = Math.max(240, window.innerHeight - 2);
683 var scene = new RaycastScene(w, h);
1698 var scene = new RaycastScene(w, h);
1699 scene.npcLight = 1;
684 game.loadScene(scene);
1700 game.loadScene(scene);
685
1701
1702 NpcSystem.initEmpty();
1703 NpcSystem.addNpc({ x: 48 + 64, y: 48, facingDeg: 180, clip: "walk", animating: true, label: "walker" });
1704 NpcSystem.addNpc({ x: 48 + 128, y: 48 + 96, facingDeg: 90, clip: "walk", animating: false, time: 0.25, label: "guard" });
1705 NpcSystem.addNpc({ x: 48 + 32, y: 48 + 160, facingDeg: 0, clip: "attack", animating: true, label: "attacker" });
1706 NpcSystem.addNpc({ x: 200, y: 100, facingDeg: 270, clip: "walk", animating: true, label: "side" });
1707
1708 NpcSystem.load(
1709 "paperdolls/male-body/",
1710 "male-body-atlas.ppda",
1711 "paperdolls/male-sword/",
1712 "male-sword-atlas.ppda"
1713 ).then(function ()
1714 {
1715 console.log("Paperdolls loaded (body + sword)");
1716 }).catch(function (err)
1717 {
1718 console.error("Paperdoll load failed", err);
1719 });
1720
686 window.addEventListener("resize", function ()
1721 window.addEventListener("resize", function ()
687 {
1722 {
688 scene.size.x = Math.max(320, window.innerWidth - 2);
1723 scene.size.x = Math.max(320, window.innerWidth - 2);
build/paperdolls/ATTRIBUTION.md added +10 −0
@@ -0,0 +1,10 @@
1 # Attributie paperdoll-voorbeeldassets
2
3 De gebundelde body-atlassen zijn exports van Tims Paperdoll Renderer op basis van:
4
5 - **Animated walking Male Base Mesh** — assetfactory (Sketchfab)
6 - https://sketchfab.com/3d-models/animated-walking-male-base-mesh-cf6fd4382d7745468328115b49223d90
7 - Licentie: Sketchfab Standard (https://sketchfab.com/licenses)
8 - Zie ook `male-body-license.txt` en Paperdoll Renderer `THIRD_PARTY_NOTICES.md`.
9
10 De sword/equipment-atlassen komen uit dezelfde Paperdoll-exportpipeline (equipment-preset bij de male body). Originele 3D-modellen blijven onder hun Sketchfab Standard-voorwaarden; deze repo bundelt alleen de gerenderde `.ppda`+atlas-consumerexports voor demo in de raytracer.
@@ -0,0 +1,10 @@
1# Attributie paperdoll-voorbeeldassets
2
3De gebundelde body-atlassen zijn exports van Tims Paperdoll Renderer op basis van:
4
5- **Animated walking Male Base Mesh** — assetfactory (Sketchfab)
6 - https://sketchfab.com/3d-models/animated-walking-male-base-mesh-cf6fd4382d7745468328115b49223d90
7 - Licentie: Sketchfab Standard (https://sketchfab.com/licenses)
8 - Zie ook `male-body-license.txt` en Paperdoll Renderer `THIRD_PARTY_NOTICES.md`.
9
10De sword/equipment-atlassen komen uit dezelfde Paperdoll-exportpipeline (equipment-preset bij de male body). Originele 3D-modellen blijven onder hun Sketchfab Standard-voorwaarden; deze repo bundelt alleen de gerenderde `.ppda`+atlas-consumerexports voor demo in de raytracer.
build/paperdolls/male-body-license.txt added +8 −0
@@ -0,0 +1,8 @@
1 Model Information:
2 * title: Animated walking Male Base Mesh
3 * source: https://sketchfab.com/3d-models/animated-walking-male-base-mesh-cf6fd4382d7745468328115b49223d90
4 * author: assetfactory (https://sketchfab.com/assetfactory)
5
6 Model License:
7 * license type: SKETCHFAB Standard (https://sketchfab.com/licenses)
8 * requirements: Under basic restrictions, use worldwide, on all types of media, commercially or not, and in all types of derivative works
@@ -0,0 +1,8 @@
1Model Information:
2* title: Animated walking Male Base Mesh
3* source: https://sketchfab.com/3d-models/animated-walking-male-base-mesh-cf6fd4382d7745468328115b49223d90
4* author: assetfactory (https://sketchfab.com/assetfactory)
5
6Model License:
7* license type: SKETCHFAB Standard (https://sketchfab.com/licenses)
8* requirements: Under basic restrictions, use worldwide, on all types of media, commercially or not, and in all types of derivative works
build/paperdolls/male-body/male-body-atlas.ppda added +3979 −0
@@ -0,0 +1,3979 @@
1 {
2 "format_version": 1,
3 "sex": "male",
4 "settype": "body",
5 "project": {
6 "id": "ppd-18e5bbc21e3510a3",
7 "name": "Nieuw project"
8 },
9 "identity": {
10 "body_model_sha256": "3f2eb80ca5151a5c3aff703c961aa9a827a969cf7de4cf955ec7b8abe16e352c",
11 "equipment_preset_sha256": null,
12 "framing": {
13 "height_milli": 2600,
14 "center_y_milli": 1000,
15 "pivot_y_milli": 1460
16 },
17 "pivot_source": "neck",
18 "near": 0.05,
19 "far": 40.0,
20 "camera_distance": 10.0,
21 "normal_space": "view (+Y up), PNG rows top-down",
22 "depth": "16-bit gray+alpha; distance=near+(sample/65535)*(far-near)"
23 },
24 "fps": 4,
25 "cell_width": 32,
26 "cell_height": 48,
27 "pitches": [
28 -60,
29 -30,
30 0,
31 30,
32 60
33 ],
34 "yaws": [
35 0,
36 30,
37 60,
38 90,
39 120,
40 150,
41 180,
42 210,
43 240,
44 270,
45 300,
46 330
47 ],
48 "maps": {
49 "depth": {
50 "file": "male-body-depth-atlas.u16",
51 "sha256": "f0a69bf3a4e322aa484081783520167270681a37ce8a184c8ca6670a64c140ae",
52 "width": 1920,
53 "height": 384,
54 "storage": "u16le_ga"
55 },
56 "diffuse": {
57 "file": "male-body-diffuse-atlas.png",
58 "sha256": "2c8795476d3d2be7c346e18fffe9a373200604475e23501bdef9858ad3e91f19",
59 "width": 1920,
60 "height": 384
61 },
62 "normal": {
63 "file": "male-body-normal-atlas.png",
64 "sha256": "4aca5408d7bc8ce3bc904a1d81de074c33af06306af39251c20b6c45c8cd171e",
65 "width": 1920,
66 "height": 384
67 },
68 "specular": {
69 "file": "male-body-specular-atlas.png",
70 "sha256": "ff38f93e4e45fb817e87944a786730f28369f2740cbbd1ae01f5064ee55436a0",
71 "width": 1920,
72 "height": 384
73 }
74 },
75 "clips": [
76 {
77 "source_index": 0,
78 "name": "walk",
79 "token": "clip000-walk",
80 "frame_count": 4,
81 "duration": 1.0,
82 "frames": [
83 {
84 "index": 0,
85 "views": [
86 {
87 "pitch": -60,
88 "yaw": 0,
89 "x": 0,
90 "y": 0,
91 "w": 32,
92 "h": 48
93 },
94 {
95 "pitch": -60,
96 "yaw": 30,
97 "x": 32,
98 "y": 0,
99 "w": 32,
100 "h": 48
101 },
102 {
103 "pitch": -60,
104 "yaw": 60,
105 "x": 64,
106 "y": 0,
107 "w": 32,
108 "h": 48
109 },
110 {
111 "pitch": -60,
112 "yaw": 90,
113 "x": 96,
114 "y": 0,
115 "w": 32,
116 "h": 48
117 },
118 {
119 "pitch": -60,
120 "yaw": 120,
121 "x": 128,
122 "y": 0,
123 "w": 32,
124 "h": 48
125 },
126 {
127 "pitch": -60,
128 "yaw": 150,
129 "x": 160,
130 "y": 0,
131 "w": 32,
132 "h": 48
133 },
134 {
135 "pitch": -60,
136 "yaw": 180,
137 "x": 192,
138 "y": 0,
139 "w": 32,
140 "h": 48
141 },
142 {
143 "pitch": -60,
144 "yaw": 210,
145 "x": 224,
146 "y": 0,
147 "w": 32,
148 "h": 48
149 },
150 {
151 "pitch": -60,
152 "yaw": 240,
153 "x": 256,
154 "y": 0,
155 "w": 32,
156 "h": 48
157 },
158 {
159 "pitch": -60,
160 "yaw": 270,
161 "x": 288,
162 "y": 0,
163 "w": 32,
164 "h": 48
165 },
166 {
167 "pitch": -60,
168 "yaw": 300,
169 "x": 320,
170 "y": 0,
171 "w": 32,
172 "h": 48
173 },
174 {
175 "pitch": -60,
176 "yaw": 330,
177 "x": 352,
178 "y": 0,
179 "w": 32,
180 "h": 48
181 },
182 {
183 "pitch": -30,
184 "yaw": 0,
185 "x": 384,
186 "y": 0,
187 "w": 32,
188 "h": 48
189 },
190 {
191 "pitch": -30,
192 "yaw": 30,
193 "x": 416,
194 "y": 0,
195 "w": 32,
196 "h": 48
197 },
198 {
199 "pitch": -30,
200 "yaw": 60,
201 "x": 448,
202 "y": 0,
203 "w": 32,
204 "h": 48
205 },
206 {
207 "pitch": -30,
208 "yaw": 90,
209 "x": 480,
210 "y": 0,
211 "w": 32,
212 "h": 48
213 },
214 {
215 "pitch": -30,
216 "yaw": 120,
217 "x": 512,
218 "y": 0,
219 "w": 32,
220 "h": 48
221 },
222 {
223 "pitch": -30,
224 "yaw": 150,
225 "x": 544,
226 "y": 0,
227 "w": 32,
228 "h": 48
229 },
230 {
231 "pitch": -30,
232 "yaw": 180,
233 "x": 576,
234 "y": 0,
235 "w": 32,
236 "h": 48
237 },
238 {
239 "pitch": -30,
240 "yaw": 210,
241 "x": 608,
242 "y": 0,
243 "w": 32,
244 "h": 48
245 },
246 {
247 "pitch": -30,
248 "yaw": 240,
249 "x": 640,
250 "y": 0,
251 "w": 32,
252 "h": 48
253 },
254 {
255 "pitch": -30,
256 "yaw": 270,
257 "x": 672,
258 "y": 0,
259 "w": 32,
260 "h": 48
261 },
262 {
263 "pitch": -30,
264 "yaw": 300,
265 "x": 704,
266 "y": 0,
267 "w": 32,
268 "h": 48
269 },
270 {
271 "pitch": -30,
272 "yaw": 330,
273 "x": 736,
274 "y": 0,
275 "w": 32,
276 "h": 48
277 },
278 {
279 "pitch": 0,
280 "yaw": 0,
281 "x": 768,
282 "y": 0,
283 "w": 32,
284 "h": 48
285 },
286 {
287 "pitch": 0,
288 "yaw": 30,
289 "x": 800,
290 "y": 0,
291 "w": 32,
292 "h": 48
293 },
294 {
295 "pitch": 0,
296 "yaw": 60,
297 "x": 832,
298 "y": 0,
299 "w": 32,
300 "h": 48
301 },
302 {
303 "pitch": 0,
304 "yaw": 90,
305 "x": 864,
306 "y": 0,
307 "w": 32,
308 "h": 48
309 },
310 {
311 "pitch": 0,
312 "yaw": 120,
313 "x": 896,
314 "y": 0,
315 "w": 32,
316 "h": 48
317 },
318 {
319 "pitch": 0,
320 "yaw": 150,
321 "x": 928,
322 "y": 0,
323 "w": 32,
324 "h": 48
325 },
326 {
327 "pitch": 0,
328 "yaw": 180,
329 "x": 960,
330 "y": 0,
331 "w": 32,
332 "h": 48
333 },
334 {
335 "pitch": 0,
336 "yaw": 210,
337 "x": 992,
338 "y": 0,
339 "w": 32,
340 "h": 48
341 },
342 {
343 "pitch": 0,
344 "yaw": 240,
345 "x": 1024,
346 "y": 0,
347 "w": 32,
348 "h": 48
349 },
350 {
351 "pitch": 0,
352 "yaw": 270,
353 "x": 1056,
354 "y": 0,
355 "w": 32,
356 "h": 48
357 },
358 {
359 "pitch": 0,
360 "yaw": 300,
361 "x": 1088,
362 "y": 0,
363 "w": 32,
364 "h": 48
365 },
366 {
367 "pitch": 0,
368 "yaw": 330,
369 "x": 1120,
370 "y": 0,
371 "w": 32,
372 "h": 48
373 },
374 {
375 "pitch": 30,
376 "yaw": 0,
377 "x": 1152,
378 "y": 0,
379 "w": 32,
380 "h": 48
381 },
382 {
383 "pitch": 30,
384 "yaw": 30,
385 "x": 1184,
386 "y": 0,
387 "w": 32,
388 "h": 48
389 },
390 {
391 "pitch": 30,
392 "yaw": 60,
393 "x": 1216,
394 "y": 0,
395 "w": 32,
396 "h": 48
397 },
398 {
399 "pitch": 30,
400 "yaw": 90,
401 "x": 1248,
402 "y": 0,
403 "w": 32,
404 "h": 48
405 },
406 {
407 "pitch": 30,
408 "yaw": 120,
409 "x": 1280,
410 "y": 0,
411 "w": 32,
412 "h": 48
413 },
414 {
415 "pitch": 30,
416 "yaw": 150,
417 "x": 1312,
418 "y": 0,
419 "w": 32,
420 "h": 48
421 },
422 {
423 "pitch": 30,
424 "yaw": 180,
425 "x": 1344,
426 "y": 0,
427 "w": 32,
428 "h": 48
429 },
430 {
431 "pitch": 30,
432 "yaw": 210,
433 "x": 1376,
434 "y": 0,
435 "w": 32,
436 "h": 48
437 },
438 {
439 "pitch": 30,
440 "yaw": 240,
441 "x": 1408,
442 "y": 0,
443 "w": 32,
444 "h": 48
445 },
446 {
447 "pitch": 30,
448 "yaw": 270,
449 "x": 1440,
450 "y": 0,
451 "w": 32,
452 "h": 48
453 },
454 {
455 "pitch": 30,
456 "yaw": 300,
457 "x": 1472,
458 "y": 0,
459 "w": 32,
460 "h": 48
461 },
462 {
463 "pitch": 30,
464 "yaw": 330,
465 "x": 1504,
466 "y": 0,
467 "w": 32,
468 "h": 48
469 },
470 {
471 "pitch": 60,
472 "yaw": 0,
473 "x": 1536,
474 "y": 0,
475 "w": 32,
476 "h": 48
477 },
478 {
479 "pitch": 60,
480 "yaw": 30,
481 "x": 1568,
482 "y": 0,
483 "w": 32,
484 "h": 48
485 },
486 {
487 "pitch": 60,
488 "yaw": 60,
489 "x": 1600,
490 "y": 0,
491 "w": 32,
492 "h": 48
493 },
494 {
495 "pitch": 60,
496 "yaw": 90,
497 "x": 1632,
498 "y": 0,
499 "w": 32,
500 "h": 48
501 },
502 {
503 "pitch": 60,
504 "yaw": 120,
505 "x": 1664,
506 "y": 0,
507 "w": 32,
508 "h": 48
509 },
510 {
511 "pitch": 60,
512 "yaw": 150,
513 "x": 1696,
514 "y": 0,
515 "w": 32,
516 "h": 48
517 },
518 {
519 "pitch": 60,
520 "yaw": 180,
521 "x": 1728,
522 "y": 0,
523 "w": 32,
524 "h": 48
525 },
526 {
527 "pitch": 60,
528 "yaw": 210,
529 "x": 1760,
530 "y": 0,
531 "w": 32,
532 "h": 48
533 },
534 {
535 "pitch": 60,
536 "yaw": 240,
537 "x": 1792,
538 "y": 0,
539 "w": 32,
540 "h": 48
541 },
542 {
543 "pitch": 60,
544 "yaw": 270,
545 "x": 1824,
546 "y": 0,
547 "w": 32,
548 "h": 48
549 },
550 {
551 "pitch": 60,
552 "yaw": 300,
553 "x": 1856,
554 "y": 0,
555 "w": 32,
556 "h": 48
557 },
558 {
559 "pitch": 60,
560 "yaw": 330,
561 "x": 1888,
562 "y": 0,
563 "w": 32,
564 "h": 48
565 }
566 ]
567 },
568 {
569 "index": 1,
570 "views": [
571 {
572 "pitch": -60,
573 "yaw": 0,
574 "x": 0,
575 "y": 48,
576 "w": 32,
577 "h": 48
578 },
579 {
580 "pitch": -60,
581 "yaw": 30,
582 "x": 32,
583 "y": 48,
584 "w": 32,
585 "h": 48
586 },
587 {
588 "pitch": -60,
589 "yaw": 60,
590 "x": 64,
591 "y": 48,
592 "w": 32,
593 "h": 48
594 },
595 {
596 "pitch": -60,
597 "yaw": 90,
598 "x": 96,
599 "y": 48,
600 "w": 32,
601 "h": 48
602 },
603 {
604 "pitch": -60,
605 "yaw": 120,
606 "x": 128,
607 "y": 48,
608 "w": 32,
609 "h": 48
610 },
611 {
612 "pitch": -60,
613 "yaw": 150,
614 "x": 160,
615 "y": 48,
616 "w": 32,
617 "h": 48
618 },
619 {
620 "pitch": -60,
621 "yaw": 180,
622 "x": 192,
623 "y": 48,
624 "w": 32,
625 "h": 48
626 },
627 {
628 "pitch": -60,
629 "yaw": 210,
630 "x": 224,
631 "y": 48,
632 "w": 32,
633 "h": 48
634 },
635 {
636 "pitch": -60,
637 "yaw": 240,
638 "x": 256,
639 "y": 48,
640 "w": 32,
641 "h": 48
642 },
643 {
644 "pitch": -60,
645 "yaw": 270,
646 "x": 288,
647 "y": 48,
648 "w": 32,
649 "h": 48
650 },
651 {
652 "pitch": -60,
653 "yaw": 300,
654 "x": 320,
655 "y": 48,
656 "w": 32,
657 "h": 48
658 },
659 {
660 "pitch": -60,
661 "yaw": 330,
662 "x": 352,
663 "y": 48,
664 "w": 32,
665 "h": 48
666 },
667 {
668 "pitch": -30,
669 "yaw": 0,
670 "x": 384,
671 "y": 48,
672 "w": 32,
673 "h": 48
674 },
675 {
676 "pitch": -30,
677 "yaw": 30,
678 "x": 416,
679 "y": 48,
680 "w": 32,
681 "h": 48
682 },
683 {
684 "pitch": -30,
685 "yaw": 60,
686 "x": 448,
687 "y": 48,
688 "w": 32,
689 "h": 48
690 },
691 {
692 "pitch": -30,
693 "yaw": 90,
694 "x": 480,
695 "y": 48,
696 "w": 32,
697 "h": 48
698 },
699 {
700 "pitch": -30,
701 "yaw": 120,
702 "x": 512,
703 "y": 48,
704 "w": 32,
705 "h": 48
706 },
707 {
708 "pitch": -30,
709 "yaw": 150,
710 "x": 544,
711 "y": 48,
712 "w": 32,
713 "h": 48
714 },
715 {
716 "pitch": -30,
717 "yaw": 180,
718 "x": 576,
719 "y": 48,
720 "w": 32,
721 "h": 48
722 },
723 {
724 "pitch": -30,
725 "yaw": 210,
726 "x": 608,
727 "y": 48,
728 "w": 32,
729 "h": 48
730 },
731 {
732 "pitch": -30,
733 "yaw": 240,
734 "x": 640,
735 "y": 48,
736 "w": 32,
737 "h": 48
738 },
739 {
740 "pitch": -30,
741 "yaw": 270,
742 "x": 672,
743 "y": 48,
744 "w": 32,
745 "h": 48
746 },
747 {
748 "pitch": -30,
749 "yaw": 300,
750 "x": 704,
751 "y": 48,
752 "w": 32,
753 "h": 48
754 },
755 {
756 "pitch": -30,
757 "yaw": 330,
758 "x": 736,
759 "y": 48,
760 "w": 32,
761 "h": 48
762 },
763 {
764 "pitch": 0,
765 "yaw": 0,
766 "x": 768,
767 "y": 48,
768 "w": 32,
769 "h": 48
770 },
771 {
772 "pitch": 0,
773 "yaw": 30,
774 "x": 800,
775 "y": 48,
776 "w": 32,
777 "h": 48
778 },
779 {
780 "pitch": 0,
781 "yaw": 60,
782 "x": 832,
783 "y": 48,
784 "w": 32,
785 "h": 48
786 },
787 {
788 "pitch": 0,
789 "yaw": 90,
790 "x": 864,
791 "y": 48,
792 "w": 32,
793 "h": 48
794 },
795 {
796 "pitch": 0,
797 "yaw": 120,
798 "x": 896,
799 "y": 48,
800 "w": 32,
801 "h": 48
802 },
803 {
804 "pitch": 0,
805 "yaw": 150,
806 "x": 928,
807 "y": 48,
808 "w": 32,
809 "h": 48
810 },
811 {
812 "pitch": 0,
813 "yaw": 180,
814 "x": 960,
815 "y": 48,
816 "w": 32,
817 "h": 48
818 },
819 {
820 "pitch": 0,
821 "yaw": 210,
822 "x": 992,
823 "y": 48,
824 "w": 32,
825 "h": 48
826 },
827 {
828 "pitch": 0,
829 "yaw": 240,
830 "x": 1024,
831 "y": 48,
832 "w": 32,
833 "h": 48
834 },
835 {
836 "pitch": 0,
837 "yaw": 270,
838 "x": 1056,
839 "y": 48,
840 "w": 32,
841 "h": 48
842 },
843 {
844 "pitch": 0,
845 "yaw": 300,
846 "x": 1088,
847 "y": 48,
848 "w": 32,
849 "h": 48
850 },
851 {
852 "pitch": 0,
853 "yaw": 330,
854 "x": 1120,
855 "y": 48,
856 "w": 32,
857 "h": 48
858 },
859 {
860 "pitch": 30,
861 "yaw": 0,
862 "x": 1152,
863 "y": 48,
864 "w": 32,
865 "h": 48
866 },
867 {
868 "pitch": 30,
869 "yaw": 30,
870 "x": 1184,
871 "y": 48,
872 "w": 32,
873 "h": 48
874 },
875 {
876 "pitch": 30,
877 "yaw": 60,
878 "x": 1216,
879 "y": 48,
880 "w": 32,
881 "h": 48
882 },
883 {
884 "pitch": 30,
885 "yaw": 90,
886 "x": 1248,
887 "y": 48,
888 "w": 32,
889 "h": 48
890 },
891 {
892 "pitch": 30,
893 "yaw": 120,
894 "x": 1280,
895 "y": 48,
896 "w": 32,
897 "h": 48
898 },
899 {
900 "pitch": 30,
901 "yaw": 150,
902 "x": 1312,
903 "y": 48,
904 "w": 32,
905 "h": 48
906 },
907 {
908 "pitch": 30,
909 "yaw": 180,
910 "x": 1344,
911 "y": 48,
912 "w": 32,
913 "h": 48
914 },
915 {
916 "pitch": 30,
917 "yaw": 210,
918 "x": 1376,
919 "y": 48,
920 "w": 32,
921 "h": 48
922 },
923 {
924 "pitch": 30,
925 "yaw": 240,
926 "x": 1408,
927 "y": 48,
928 "w": 32,
929 "h": 48
930 },
931 {
932 "pitch": 30,
933 "yaw": 270,
934 "x": 1440,
935 "y": 48,
936 "w": 32,
937 "h": 48
938 },
939 {
940 "pitch": 30,
941 "yaw": 300,
942 "x": 1472,
943 "y": 48,
944 "w": 32,
945 "h": 48
946 },
947 {
948 "pitch": 30,
949 "yaw": 330,
950 "x": 1504,
951 "y": 48,
952 "w": 32,
953 "h": 48
954 },
955 {
956 "pitch": 60,
957 "yaw": 0,
958 "x": 1536,
959 "y": 48,
960 "w": 32,
961 "h": 48
962 },
963 {
964 "pitch": 60,
965 "yaw": 30,
966 "x": 1568,
967 "y": 48,
968 "w": 32,
969 "h": 48
970 },
971 {
972 "pitch": 60,
973 "yaw": 60,
974 "x": 1600,
975 "y": 48,
976 "w": 32,
977 "h": 48
978 },
979 {
980 "pitch": 60,
981 "yaw": 90,
982 "x": 1632,
983 "y": 48,
984 "w": 32,
985 "h": 48
986 },
987 {
988 "pitch": 60,
989 "yaw": 120,
990 "x": 1664,
991 "y": 48,
992 "w": 32,
993 "h": 48
994 },
995 {
996 "pitch": 60,
997 "yaw": 150,
998 "x": 1696,
999 "y": 48,
1000 "w": 32,
1001 "h": 48
1002 },
1003 {
1004 "pitch": 60,
1005 "yaw": 180,
1006 "x": 1728,
1007 "y": 48,
1008 "w": 32,
1009 "h": 48
1010 },
1011 {
1012 "pitch": 60,
1013 "yaw": 210,
1014 "x": 1760,
1015 "y": 48,
1016 "w": 32,
1017 "h": 48
1018 },
1019 {
1020 "pitch": 60,
1021 "yaw": 240,
1022 "x": 1792,
1023 "y": 48,
1024 "w": 32,
1025 "h": 48
1026 },
1027 {
1028 "pitch": 60,
1029 "yaw": 270,
1030 "x": 1824,
1031 "y": 48,
1032 "w": 32,
1033 "h": 48
1034 },
1035 {
1036 "pitch": 60,
1037 "yaw": 300,
1038 "x": 1856,
1039 "y": 48,
1040 "w": 32,
1041 "h": 48
1042 },
1043 {
1044 "pitch": 60,
1045 "yaw": 330,
1046 "x": 1888,
1047 "y": 48,
1048 "w": 32,
1049 "h": 48
1050 }
1051 ]
1052 },
1053 {
1054 "index": 2,
1055 "views": [
1056 {
1057 "pitch": -60,
1058 "yaw": 0,
1059 "x": 0,
1060 "y": 96,
1061 "w": 32,
1062 "h": 48
1063 },
1064 {
1065 "pitch": -60,
1066 "yaw": 30,
1067 "x": 32,
1068 "y": 96,
1069 "w": 32,
1070 "h": 48
1071 },
1072 {
1073 "pitch": -60,
1074 "yaw": 60,
1075 "x": 64,
1076 "y": 96,
1077 "w": 32,
1078 "h": 48
1079 },
1080 {
1081 "pitch": -60,
1082 "yaw": 90,
1083 "x": 96,
1084 "y": 96,
1085 "w": 32,
1086 "h": 48
1087 },
1088 {
1089 "pitch": -60,
1090 "yaw": 120,
1091 "x": 128,
1092 "y": 96,
1093 "w": 32,
1094 "h": 48
1095 },
1096 {
1097 "pitch": -60,
1098 "yaw": 150,
1099 "x": 160,
1100 "y": 96,
1101 "w": 32,
1102 "h": 48
1103 },
1104 {
1105 "pitch": -60,
1106 "yaw": 180,
1107 "x": 192,
1108 "y": 96,
1109 "w": 32,
1110 "h": 48
1111 },
1112 {
1113 "pitch": -60,
1114 "yaw": 210,
1115 "x": 224,
1116 "y": 96,
1117 "w": 32,
1118 "h": 48
1119 },
1120 {
1121 "pitch": -60,
1122 "yaw": 240,
1123 "x": 256,
1124 "y": 96,
1125 "w": 32,
1126 "h": 48
1127 },
1128 {
1129 "pitch": -60,
1130 "yaw": 270,
1131 "x": 288,
1132 "y": 96,
1133 "w": 32,
1134 "h": 48
1135 },
1136 {
1137 "pitch": -60,
1138 "yaw": 300,
1139 "x": 320,
1140 "y": 96,
1141 "w": 32,
1142 "h": 48
1143 },
1144 {
1145 "pitch": -60,
1146 "yaw": 330,
1147 "x": 352,
1148 "y": 96,
1149 "w": 32,
1150 "h": 48
1151 },
1152 {
1153 "pitch": -30,
1154 "yaw": 0,
1155 "x": 384,
1156 "y": 96,
1157 "w": 32,
1158 "h": 48
1159 },
1160 {
1161 "pitch": -30,
1162 "yaw": 30,
1163 "x": 416,
1164 "y": 96,
1165 "w": 32,
1166 "h": 48
1167 },
1168 {
1169 "pitch": -30,
1170 "yaw": 60,
1171 "x": 448,
1172 "y": 96,
1173 "w": 32,
1174 "h": 48
1175 },
1176 {
1177 "pitch": -30,
1178 "yaw": 90,
1179 "x": 480,
1180 "y": 96,
1181 "w": 32,
1182 "h": 48
1183 },
1184 {
1185 "pitch": -30,
1186 "yaw": 120,
1187 "x": 512,
1188 "y": 96,
1189 "w": 32,
1190 "h": 48
1191 },
1192 {
1193 "pitch": -30,
1194 "yaw": 150,
1195 "x": 544,
1196 "y": 96,
1197 "w": 32,
1198 "h": 48
1199 },
1200 {
1201 "pitch": -30,
1202 "yaw": 180,
1203 "x": 576,
1204 "y": 96,
1205 "w": 32,
1206 "h": 48
1207 },
1208 {
1209 "pitch": -30,
1210 "yaw": 210,
1211 "x": 608,
1212 "y": 96,
1213 "w": 32,
1214 "h": 48
1215 },
1216 {
1217 "pitch": -30,
1218 "yaw": 240,
1219 "x": 640,
1220 "y": 96,
1221 "w": 32,
1222 "h": 48
1223 },
1224 {
1225 "pitch": -30,
1226 "yaw": 270,
1227 "x": 672,
1228 "y": 96,
1229 "w": 32,
1230 "h": 48
1231 },
1232 {
1233 "pitch": -30,
1234 "yaw": 300,
1235 "x": 704,
1236 "y": 96,
1237 "w": 32,
1238 "h": 48
1239 },
1240 {
1241 "pitch": -30,
1242 "yaw": 330,
1243 "x": 736,
1244 "y": 96,
1245 "w": 32,
1246 "h": 48
1247 },
1248 {
1249 "pitch": 0,
1250 "yaw": 0,
1251 "x": 768,
1252 "y": 96,
1253 "w": 32,
1254 "h": 48
1255 },
1256 {
1257 "pitch": 0,
1258 "yaw": 30,
1259 "x": 800,
1260 "y": 96,
1261 "w": 32,
1262 "h": 48
1263 },
1264 {
1265 "pitch": 0,
1266 "yaw": 60,
1267 "x": 832,
1268 "y": 96,
1269 "w": 32,
1270 "h": 48
1271 },
1272 {
1273 "pitch": 0,
1274 "yaw": 90,
1275 "x": 864,
1276 "y": 96,
1277 "w": 32,
1278 "h": 48
1279 },
1280 {
1281 "pitch": 0,
1282 "yaw": 120,
1283 "x": 896,
1284 "y": 96,
1285 "w": 32,
1286 "h": 48
1287 },
1288 {
1289 "pitch": 0,
1290 "yaw": 150,
1291 "x": 928,
1292 "y": 96,
1293 "w": 32,
1294 "h": 48
1295 },
1296 {
1297 "pitch": 0,
1298 "yaw": 180,
1299 "x": 960,
1300 "y": 96,
1301 "w": 32,
1302 "h": 48
1303 },
1304 {
1305 "pitch": 0,
1306 "yaw": 210,
1307 "x": 992,
1308 "y": 96,
1309 "w": 32,
1310 "h": 48
1311 },
1312 {
1313 "pitch": 0,
1314 "yaw": 240,
1315 "x": 1024,
1316 "y": 96,
1317 "w": 32,
1318 "h": 48
1319 },
1320 {
1321 "pitch": 0,
1322 "yaw": 270,
1323 "x": 1056,
1324 "y": 96,
1325 "w": 32,
1326 "h": 48
1327 },
1328 {
1329 "pitch": 0,
1330 "yaw": 300,
1331 "x": 1088,
1332 "y": 96,
1333 "w": 32,
1334 "h": 48
1335 },
1336 {
1337 "pitch": 0,
1338 "yaw": 330,
1339 "x": 1120,
1340 "y": 96,
1341 "w": 32,
1342 "h": 48
1343 },
1344 {
1345 "pitch": 30,
1346 "yaw": 0,
1347 "x": 1152,
1348 "y": 96,
1349 "w": 32,
1350 "h": 48
1351 },
1352 {
1353 "pitch": 30,
1354 "yaw": 30,
1355 "x": 1184,
1356 "y": 96,
1357 "w": 32,
1358 "h": 48
1359 },
1360 {
1361 "pitch": 30,
1362 "yaw": 60,
1363 "x": 1216,
1364 "y": 96,
1365 "w": 32,
1366 "h": 48
1367 },
1368 {
1369 "pitch": 30,
1370 "yaw": 90,
1371 "x": 1248,
1372 "y": 96,
1373 "w": 32,
1374 "h": 48
1375 },
1376 {
1377 "pitch": 30,
1378 "yaw": 120,
1379 "x": 1280,
1380 "y": 96,
1381 "w": 32,
1382 "h": 48
1383 },
1384 {
1385 "pitch": 30,
1386 "yaw": 150,
1387 "x": 1312,
1388 "y": 96,
1389 "w": 32,
1390 "h": 48
1391 },
1392 {
1393 "pitch": 30,
1394 "yaw": 180,
1395 "x": 1344,
1396 "y": 96,
1397 "w": 32,
1398 "h": 48
1399 },
1400 {
1401 "pitch": 30,
1402 "yaw": 210,
1403 "x": 1376,
1404 "y": 96,
1405 "w": 32,
1406 "h": 48
1407 },
1408 {
1409 "pitch": 30,
1410 "yaw": 240,
1411 "x": 1408,
1412 "y": 96,
1413 "w": 32,
1414 "h": 48
1415 },
1416 {
1417 "pitch": 30,
1418 "yaw": 270,
1419 "x": 1440,
1420 "y": 96,
1421 "w": 32,
1422 "h": 48
1423 },
1424 {
1425 "pitch": 30,
1426 "yaw": 300,
1427 "x": 1472,
1428 "y": 96,
1429 "w": 32,
1430 "h": 48
1431 },
1432 {
1433 "pitch": 30,
1434 "yaw": 330,
1435 "x": 1504,
1436 "y": 96,
1437 "w": 32,
1438 "h": 48
1439 },
1440 {
1441 "pitch": 60,
1442 "yaw": 0,
1443 "x": 1536,
1444 "y": 96,
1445 "w": 32,
1446 "h": 48
1447 },
1448 {
1449 "pitch": 60,
1450 "yaw": 30,
1451 "x": 1568,
1452 "y": 96,
1453 "w": 32,
1454 "h": 48
1455 },
1456 {
1457 "pitch": 60,
1458 "yaw": 60,
1459 "x": 1600,
1460 "y": 96,
1461 "w": 32,
1462 "h": 48
1463 },
1464 {
1465 "pitch": 60,
1466 "yaw": 90,
1467 "x": 1632,
1468 "y": 96,
1469 "w": 32,
1470 "h": 48
1471 },
1472 {
1473 "pitch": 60,
1474 "yaw": 120,
1475 "x": 1664,
1476 "y": 96,
1477 "w": 32,
1478 "h": 48
1479 },
1480 {
1481 "pitch": 60,
1482 "yaw": 150,
1483 "x": 1696,
1484 "y": 96,
1485 "w": 32,
1486 "h": 48
1487 },
1488 {
1489 "pitch": 60,
1490 "yaw": 180,
1491 "x": 1728,
1492 "y": 96,
1493 "w": 32,
1494 "h": 48
1495 },
1496 {
1497 "pitch": 60,
1498 "yaw": 210,
1499 "x": 1760,
1500 "y": 96,
1501 "w": 32,
1502 "h": 48
1503 },
1504 {
1505 "pitch": 60,
1506 "yaw": 240,
1507 "x": 1792,
1508 "y": 96,
1509 "w": 32,
1510 "h": 48
1511 },
1512 {
1513 "pitch": 60,
1514 "yaw": 270,
1515 "x": 1824,
1516 "y": 96,
1517 "w": 32,
1518 "h": 48
1519 },
1520 {
1521 "pitch": 60,
1522 "yaw": 300,
1523 "x": 1856,
1524 "y": 96,
1525 "w": 32,
1526 "h": 48
1527 },
1528 {
1529 "pitch": 60,
1530 "yaw": 330,
1531 "x": 1888,
1532 "y": 96,
1533 "w": 32,
1534 "h": 48
1535 }
1536 ]
1537 },
1538 {
1539 "index": 3,
1540 "views": [
1541 {
1542 "pitch": -60,
1543 "yaw": 0,
1544 "x": 0,
1545 "y": 144,
1546 "w": 32,
1547 "h": 48
1548 },
1549 {
1550 "pitch": -60,
1551 "yaw": 30,
1552 "x": 32,
1553 "y": 144,
1554 "w": 32,
1555 "h": 48
1556 },
1557 {
1558 "pitch": -60,
1559 "yaw": 60,
1560 "x": 64,
1561 "y": 144,
1562 "w": 32,
1563 "h": 48
1564 },
1565 {
1566 "pitch": -60,
1567 "yaw": 90,
1568 "x": 96,
1569 "y": 144,
1570 "w": 32,
1571 "h": 48
1572 },
1573 {
1574 "pitch": -60,
1575 "yaw": 120,
1576 "x": 128,
1577 "y": 144,
1578 "w": 32,
1579 "h": 48
1580 },
1581 {
1582 "pitch": -60,
1583 "yaw": 150,
1584 "x": 160,
1585 "y": 144,
1586 "w": 32,
1587 "h": 48
1588 },
1589 {
1590 "pitch": -60,
1591 "yaw": 180,
1592 "x": 192,
1593 "y": 144,
1594 "w": 32,
1595 "h": 48
1596 },
1597 {
1598 "pitch": -60,
1599 "yaw": 210,
1600 "x": 224,
1601 "y": 144,
1602 "w": 32,
1603 "h": 48
1604 },
1605 {
1606 "pitch": -60,
1607 "yaw": 240,
1608 "x": 256,
1609 "y": 144,
1610 "w": 32,
1611 "h": 48
1612 },
1613 {
1614 "pitch": -60,
1615 "yaw": 270,
1616 "x": 288,
1617 "y": 144,
1618 "w": 32,
1619 "h": 48
1620 },
1621 {
1622 "pitch": -60,
1623 "yaw": 300,
1624 "x": 320,
1625 "y": 144,
1626 "w": 32,
1627 "h": 48
1628 },
1629 {
1630 "pitch": -60,
1631 "yaw": 330,
1632 "x": 352,
1633 "y": 144,
1634 "w": 32,
1635 "h": 48
1636 },
1637 {
1638 "pitch": -30,
1639 "yaw": 0,
1640 "x": 384,
1641 "y": 144,
1642 "w": 32,
1643 "h": 48
1644 },
1645 {
1646 "pitch": -30,
1647 "yaw": 30,
1648 "x": 416,
1649 "y": 144,
1650 "w": 32,
1651 "h": 48
1652 },
1653 {
1654 "pitch": -30,
1655 "yaw": 60,
1656 "x": 448,
1657 "y": 144,
1658 "w": 32,
1659 "h": 48
1660 },
1661 {
1662 "pitch": -30,
1663 "yaw": 90,
1664 "x": 480,
1665 "y": 144,
1666 "w": 32,
1667 "h": 48
1668 },
1669 {
1670 "pitch": -30,
1671 "yaw": 120,
1672 "x": 512,
1673 "y": 144,
1674 "w": 32,
1675 "h": 48
1676 },
1677 {
1678 "pitch": -30,
1679 "yaw": 150,
1680 "x": 544,
1681 "y": 144,
1682 "w": 32,
1683 "h": 48
1684 },
1685 {
1686 "pitch": -30,
1687 "yaw": 180,
1688 "x": 576,
1689 "y": 144,
1690 "w": 32,
1691 "h": 48
1692 },
1693 {
1694 "pitch": -30,
1695 "yaw": 210,
1696 "x": 608,
1697 "y": 144,
1698 "w": 32,
1699 "h": 48
1700 },
1701 {
1702 "pitch": -30,
1703 "yaw": 240,
1704 "x": 640,
1705 "y": 144,
1706 "w": 32,
1707 "h": 48
1708 },
1709 {
1710 "pitch": -30,
1711 "yaw": 270,
1712 "x": 672,
1713 "y": 144,
1714 "w": 32,
1715 "h": 48
1716 },
1717 {
1718 "pitch": -30,
1719 "yaw": 300,
1720 "x": 704,
1721 "y": 144,
1722 "w": 32,
1723 "h": 48
1724 },
1725 {
1726 "pitch": -30,
1727 "yaw": 330,
1728 "x": 736,
1729 "y": 144,
1730 "w": 32,
1731 "h": 48
1732 },
1733 {
1734 "pitch": 0,
1735 "yaw": 0,
1736 "x": 768,
1737 "y": 144,
1738 "w": 32,
1739 "h": 48
1740 },
1741 {
1742 "pitch": 0,
1743 "yaw": 30,
1744 "x": 800,
1745 "y": 144,
1746 "w": 32,
1747 "h": 48
1748 },
1749 {
1750 "pitch": 0,
1751 "yaw": 60,
1752 "x": 832,
1753 "y": 144,
1754 "w": 32,
1755 "h": 48
1756 },
1757 {
1758 "pitch": 0,
1759 "yaw": 90,
1760 "x": 864,
1761 "y": 144,
1762 "w": 32,
1763 "h": 48
1764 },
1765 {
1766 "pitch": 0,
1767 "yaw": 120,
1768 "x": 896,
1769 "y": 144,
1770 "w": 32,
1771 "h": 48
1772 },
1773 {
1774 "pitch": 0,
1775 "yaw": 150,
1776 "x": 928,
1777 "y": 144,
1778 "w": 32,
1779 "h": 48
1780 },
1781 {
1782 "pitch": 0,
1783 "yaw": 180,
1784 "x": 960,
1785 "y": 144,
1786 "w": 32,
1787 "h": 48
1788 },
1789 {
1790 "pitch": 0,
1791 "yaw": 210,
1792 "x": 992,
1793 "y": 144,
1794 "w": 32,
1795 "h": 48
1796 },
1797 {
1798 "pitch": 0,
1799 "yaw": 240,
1800 "x": 1024,
1801 "y": 144,
1802 "w": 32,
1803 "h": 48
1804 },
1805 {
1806 "pitch": 0,
1807 "yaw": 270,
1808 "x": 1056,
1809 "y": 144,
1810 "w": 32,
1811 "h": 48
1812 },
1813 {
1814 "pitch": 0,
1815 "yaw": 300,
1816 "x": 1088,
1817 "y": 144,
1818 "w": 32,
1819 "h": 48
1820 },
1821 {
1822 "pitch": 0,
1823 "yaw": 330,
1824 "x": 1120,
1825 "y": 144,
1826 "w": 32,
1827 "h": 48
1828 },
1829 {
1830 "pitch": 30,
1831 "yaw": 0,
1832 "x": 1152,
1833 "y": 144,
1834 "w": 32,
1835 "h": 48
1836 },
1837 {
1838 "pitch": 30,
1839 "yaw": 30,
1840 "x": 1184,
1841 "y": 144,
1842 "w": 32,
1843 "h": 48
1844 },
1845 {
1846 "pitch": 30,
1847 "yaw": 60,
1848 "x": 1216,
1849 "y": 144,
1850 "w": 32,
1851 "h": 48
1852 },
1853 {
1854 "pitch": 30,
1855 "yaw": 90,
1856 "x": 1248,
1857 "y": 144,
1858 "w": 32,
1859 "h": 48
1860 },
1861 {
1862 "pitch": 30,
1863 "yaw": 120,
1864 "x": 1280,
1865 "y": 144,
1866 "w": 32,
1867 "h": 48
1868 },
1869 {
1870 "pitch": 30,
1871 "yaw": 150,
1872 "x": 1312,
1873 "y": 144,
1874 "w": 32,
1875 "h": 48
1876 },
1877 {
1878 "pitch": 30,
1879 "yaw": 180,
1880 "x": 1344,
1881 "y": 144,
1882 "w": 32,
1883 "h": 48
1884 },
1885 {
1886 "pitch": 30,
1887 "yaw": 210,
1888 "x": 1376,
1889 "y": 144,
1890 "w": 32,
1891 "h": 48
1892 },
1893 {
1894 "pitch": 30,
1895 "yaw": 240,
1896 "x": 1408,
1897 "y": 144,
1898 "w": 32,
1899 "h": 48
1900 },
1901 {
1902 "pitch": 30,
1903 "yaw": 270,
1904 "x": 1440,
1905 "y": 144,
1906 "w": 32,
1907 "h": 48
1908 },
1909 {
1910 "pitch": 30,
1911 "yaw": 300,
1912 "x": 1472,
1913 "y": 144,
1914 "w": 32,
1915 "h": 48
1916 },
1917 {
1918 "pitch": 30,
1919 "yaw": 330,
1920 "x": 1504,
1921 "y": 144,
1922 "w": 32,
1923 "h": 48
1924 },
1925 {
1926 "pitch": 60,
1927 "yaw": 0,
1928 "x": 1536,
1929 "y": 144,
1930 "w": 32,
1931 "h": 48
1932 },
1933 {
1934 "pitch": 60,
1935 "yaw": 30,
1936 "x": 1568,
1937 "y": 144,
1938 "w": 32,
1939 "h": 48
1940 },
1941 {
1942 "pitch": 60,
1943 "yaw": 60,
1944 "x": 1600,
1945 "y": 144,
1946 "w": 32,
1947 "h": 48
1948 },
1949 {
1950 "pitch": 60,
1951 "yaw": 90,
1952 "x": 1632,
1953 "y": 144,
1954 "w": 32,
1955 "h": 48
1956 },
1957 {
1958 "pitch": 60,
1959 "yaw": 120,
1960 "x": 1664,
1961 "y": 144,
1962 "w": 32,
1963 "h": 48
1964 },
1965 {
1966 "pitch": 60,
1967 "yaw": 150,
1968 "x": 1696,
1969 "y": 144,
1970 "w": 32,
1971 "h": 48
1972 },
1973 {
1974 "pitch": 60,
1975 "yaw": 180,
1976 "x": 1728,
1977 "y": 144,
1978 "w": 32,
1979 "h": 48
1980 },
1981 {
1982 "pitch": 60,
1983 "yaw": 210,
1984 "x": 1760,
1985 "y": 144,
1986 "w": 32,
1987 "h": 48
1988 },
1989 {
1990 "pitch": 60,
1991 "yaw": 240,
1992 "x": 1792,
1993 "y": 144,
1994 "w": 32,
1995 "h": 48
1996 },
1997 {
1998 "pitch": 60,
1999 "yaw": 270,
2000 "x": 1824,
2001 "y": 144,
2002 "w": 32,
2003 "h": 48
2004 },
2005 {
2006 "pitch": 60,
2007 "yaw": 300,
2008 "x": 1856,
2009 "y": 144,
2010 "w": 32,
2011 "h": 48
2012 },
2013 {
2014 "pitch": 60,
2015 "yaw": 330,
2016 "x": 1888,
2017 "y": 144,
2018 "w": 32,
2019 "h": 48
2020 }
2021 ]
2022 }
2023 ]
2024 },
2025 {
2026 "source_index": 1,
2027 "name": "attack",
2028 "token": "clip001-attack",
2029 "frame_count": 4,
2030 "duration": 0.8,
2031 "frames": [
2032 {
2033 "index": 0,
2034 "views": [
2035 {
2036 "pitch": -60,
2037 "yaw": 0,
2038 "x": 0,
2039 "y": 192,
2040 "w": 32,
2041 "h": 48
2042 },
2043 {
2044 "pitch": -60,
2045 "yaw": 30,
2046 "x": 32,
2047 "y": 192,
2048 "w": 32,
2049 "h": 48
2050 },
2051 {
2052 "pitch": -60,
2053 "yaw": 60,
2054 "x": 64,
2055 "y": 192,
2056 "w": 32,
2057 "h": 48
2058 },
2059 {
2060 "pitch": -60,
2061 "yaw": 90,
2062 "x": 96,
2063 "y": 192,
2064 "w": 32,
2065 "h": 48
2066 },
2067 {
2068 "pitch": -60,
2069 "yaw": 120,
2070 "x": 128,
2071 "y": 192,
2072 "w": 32,
2073 "h": 48
2074 },
2075 {
2076 "pitch": -60,
2077 "yaw": 150,
2078 "x": 160,
2079 "y": 192,
2080 "w": 32,
2081 "h": 48
2082 },
2083 {
2084 "pitch": -60,
2085 "yaw": 180,
2086 "x": 192,
2087 "y": 192,
2088 "w": 32,
2089 "h": 48
2090 },
2091 {
2092 "pitch": -60,
2093 "yaw": 210,
2094 "x": 224,
2095 "y": 192,
2096 "w": 32,
2097 "h": 48
2098 },
2099 {
2100 "pitch": -60,
2101 "yaw": 240,
2102 "x": 256,
2103 "y": 192,
2104 "w": 32,
2105 "h": 48
2106 },
2107 {
2108 "pitch": -60,
2109 "yaw": 270,
2110 "x": 288,
2111 "y": 192,
2112 "w": 32,
2113 "h": 48
2114 },
2115 {
2116 "pitch": -60,
2117 "yaw": 300,
2118 "x": 320,
2119 "y": 192,
2120 "w": 32,
2121 "h": 48
2122 },
2123 {
2124 "pitch": -60,
2125 "yaw": 330,
2126 "x": 352,
2127 "y": 192,
2128 "w": 32,
2129 "h": 48
2130 },
2131 {
2132 "pitch": -30,
2133 "yaw": 0,
2134 "x": 384,
2135 "y": 192,
2136 "w": 32,
2137 "h": 48
2138 },
2139 {
2140 "pitch": -30,
2141 "yaw": 30,
2142 "x": 416,
2143 "y": 192,
2144 "w": 32,
2145 "h": 48
2146 },
2147 {
2148 "pitch": -30,
2149 "yaw": 60,
2150 "x": 448,
2151 "y": 192,
2152 "w": 32,
2153 "h": 48
2154 },
2155 {
2156 "pitch": -30,
2157 "yaw": 90,
2158 "x": 480,
2159 "y": 192,
2160 "w": 32,
2161 "h": 48
2162 },
2163 {
2164 "pitch": -30,
2165 "yaw": 120,
2166 "x": 512,
2167 "y": 192,
2168 "w": 32,
2169 "h": 48
2170 },
2171 {
2172 "pitch": -30,
2173 "yaw": 150,
2174 "x": 544,
2175 "y": 192,
2176 "w": 32,
2177 "h": 48
2178 },
2179 {
2180 "pitch": -30,
2181 "yaw": 180,
2182 "x": 576,
2183 "y": 192,
2184 "w": 32,
2185 "h": 48
2186 },
2187 {
2188 "pitch": -30,
2189 "yaw": 210,
2190 "x": 608,
2191 "y": 192,
2192 "w": 32,
2193 "h": 48
2194 },
2195 {
2196 "pitch": -30,
2197 "yaw": 240,
2198 "x": 640,
2199 "y": 192,
2200 "w": 32,
2201 "h": 48
2202 },
2203 {
2204 "pitch": -30,
2205 "yaw": 270,
2206 "x": 672,
2207 "y": 192,
2208 "w": 32,
2209 "h": 48
2210 },
2211 {
2212 "pitch": -30,
2213 "yaw": 300,
2214 "x": 704,
2215 "y": 192,
2216 "w": 32,
2217 "h": 48
2218 },
2219 {
2220 "pitch": -30,
2221 "yaw": 330,
2222 "x": 736,
2223 "y": 192,
2224 "w": 32,
2225 "h": 48
2226 },
2227 {
2228 "pitch": 0,
2229 "yaw": 0,
2230 "x": 768,
2231 "y": 192,
2232 "w": 32,
2233 "h": 48
2234 },
2235 {
2236 "pitch": 0,
2237 "yaw": 30,
2238 "x": 800,
2239 "y": 192,
2240 "w": 32,
2241 "h": 48
2242 },
2243 {
2244 "pitch": 0,
2245 "yaw": 60,
2246 "x": 832,
2247 "y": 192,
2248 "w": 32,
2249 "h": 48
2250 },
2251 {
2252 "pitch": 0,
2253 "yaw": 90,
2254 "x": 864,
2255 "y": 192,
2256 "w": 32,
2257 "h": 48
2258 },
2259 {
2260 "pitch": 0,
2261 "yaw": 120,
2262 "x": 896,
2263 "y": 192,
2264 "w": 32,
2265 "h": 48
2266 },
2267 {
2268 "pitch": 0,
2269 "yaw": 150,
2270 "x": 928,
2271 "y": 192,
2272 "w": 32,
2273 "h": 48
2274 },
2275 {
2276 "pitch": 0,
2277 "yaw": 180,
2278 "x": 960,
2279 "y": 192,
2280 "w": 32,
2281 "h": 48
2282 },
2283 {
2284 "pitch": 0,
2285 "yaw": 210,
2286 "x": 992,
2287 "y": 192,
2288 "w": 32,
2289 "h": 48
2290 },
2291 {
2292 "pitch": 0,
2293 "yaw": 240,
2294 "x": 1024,
2295 "y": 192,
2296 "w": 32,
2297 "h": 48
2298 },
2299 {
2300 "pitch": 0,
2301 "yaw": 270,
2302 "x": 1056,
2303 "y": 192,
2304 "w": 32,
2305 "h": 48
2306 },
2307 {
2308 "pitch": 0,
2309 "yaw": 300,
2310 "x": 1088,
2311 "y": 192,
2312 "w": 32,
2313 "h": 48
2314 },
2315 {
2316 "pitch": 0,
2317 "yaw": 330,
2318 "x": 1120,
2319 "y": 192,
2320 "w": 32,
2321 "h": 48
2322 },
2323 {
2324 "pitch": 30,
2325 "yaw": 0,
2326 "x": 1152,
2327 "y": 192,
2328 "w": 32,
2329 "h": 48
2330 },
2331 {
2332 "pitch": 30,
2333 "yaw": 30,
2334 "x": 1184,
2335 "y": 192,
2336 "w": 32,
2337 "h": 48
2338 },
2339 {
2340 "pitch": 30,
2341 "yaw": 60,
2342 "x": 1216,
2343 "y": 192,
2344 "w": 32,
2345 "h": 48
2346 },
2347 {
2348 "pitch": 30,
2349 "yaw": 90,
2350 "x": 1248,
2351 "y": 192,
2352 "w": 32,
2353 "h": 48
2354 },
2355 {
2356 "pitch": 30,
2357 "yaw": 120,
2358 "x": 1280,
2359 "y": 192,
2360 "w": 32,
2361 "h": 48
2362 },
2363 {
2364 "pitch": 30,
2365 "yaw": 150,
2366 "x": 1312,
2367 "y": 192,
2368 "w": 32,
2369 "h": 48
2370 },
2371 {
2372 "pitch": 30,
2373 "yaw": 180,
2374 "x": 1344,
2375 "y": 192,
2376 "w": 32,
2377 "h": 48
2378 },
2379 {
2380 "pitch": 30,
2381 "yaw": 210,
2382 "x": 1376,
2383 "y": 192,
2384 "w": 32,
2385 "h": 48
2386 },
2387 {
2388 "pitch": 30,
2389 "yaw": 240,
2390 "x": 1408,
2391 "y": 192,
2392 "w": 32,
2393 "h": 48
2394 },
2395 {
2396 "pitch": 30,
2397 "yaw": 270,
2398 "x": 1440,
2399 "y": 192,
2400 "w": 32,
2401 "h": 48
2402 },
2403 {
2404 "pitch": 30,
2405 "yaw": 300,
2406 "x": 1472,
2407 "y": 192,
2408 "w": 32,
2409 "h": 48
2410 },
2411 {
2412 "pitch": 30,
2413 "yaw": 330,
2414 "x": 1504,
2415 "y": 192,
2416 "w": 32,
2417 "h": 48
2418 },
2419 {
2420 "pitch": 60,
2421 "yaw": 0,
2422 "x": 1536,
2423 "y": 192,
2424 "w": 32,
2425 "h": 48
2426 },
2427 {
2428 "pitch": 60,
2429 "yaw": 30,
2430 "x": 1568,
2431 "y": 192,
2432 "w": 32,
2433 "h": 48
2434 },
2435 {
2436 "pitch": 60,
2437 "yaw": 60,
2438 "x": 1600,
2439 "y": 192,
2440 "w": 32,
2441 "h": 48
2442 },
2443 {
2444 "pitch": 60,
2445 "yaw": 90,
2446 "x": 1632,
2447 "y": 192,
2448 "w": 32,
2449 "h": 48
2450 },
2451 {
2452 "pitch": 60,
2453 "yaw": 120,
2454 "x": 1664,
2455 "y": 192,
2456 "w": 32,
2457 "h": 48
2458 },
2459 {
2460 "pitch": 60,
2461 "yaw": 150,
2462 "x": 1696,
2463 "y": 192,
2464 "w": 32,
2465 "h": 48
2466 },
2467 {
2468 "pitch": 60,
2469 "yaw": 180,
2470 "x": 1728,
2471 "y": 192,
2472 "w": 32,
2473 "h": 48
2474 },
2475 {
2476 "pitch": 60,
2477 "yaw": 210,
2478 "x": 1760,
2479 "y": 192,
2480 "w": 32,
2481 "h": 48
2482 },
2483 {
2484 "pitch": 60,
2485 "yaw": 240,
2486 "x": 1792,
2487 "y": 192,
2488 "w": 32,
2489 "h": 48
2490 },
2491 {
2492 "pitch": 60,
2493 "yaw": 270,
2494 "x": 1824,
2495 "y": 192,
2496 "w": 32,
2497 "h": 48
2498 },
2499 {
2500 "pitch": 60,
2501 "yaw": 300,
2502 "x": 1856,
2503 "y": 192,
2504 "w": 32,
2505 "h": 48
2506 },
2507 {
2508 "pitch": 60,
2509 "yaw": 330,
2510 "x": 1888,
2511 "y": 192,
2512 "w": 32,
2513 "h": 48
2514 }
2515 ]
2516 },
2517 {
2518 "index": 1,
2519 "views": [
2520 {
2521 "pitch": -60,
2522 "yaw": 0,
2523 "x": 0,
2524 "y": 240,
2525 "w": 32,
2526 "h": 48
2527 },
2528 {
2529 "pitch": -60,
2530 "yaw": 30,
2531 "x": 32,
2532 "y": 240,
2533 "w": 32,
2534 "h": 48
2535 },
2536 {
2537 "pitch": -60,
2538 "yaw": 60,
2539 "x": 64,
2540 "y": 240,
2541 "w": 32,
2542 "h": 48
2543 },
2544 {
2545 "pitch": -60,
2546 "yaw": 90,
2547 "x": 96,
2548 "y": 240,
2549 "w": 32,
2550 "h": 48
2551 },
2552 {
2553 "pitch": -60,
2554 "yaw": 120,
2555 "x": 128,
2556 "y": 240,
2557 "w": 32,
2558 "h": 48
2559 },
2560 {
2561 "pitch": -60,
2562 "yaw": 150,
2563 "x": 160,
2564 "y": 240,
2565 "w": 32,
2566 "h": 48
2567 },
2568 {
2569 "pitch": -60,
2570 "yaw": 180,
2571 "x": 192,
2572 "y": 240,
2573 "w": 32,
2574 "h": 48
2575 },
2576 {
2577 "pitch": -60,
2578 "yaw": 210,
2579 "x": 224,
2580 "y": 240,
2581 "w": 32,
2582 "h": 48
2583 },
2584 {
2585 "pitch": -60,
2586 "yaw": 240,
2587 "x": 256,
2588 "y": 240,
2589 "w": 32,
2590 "h": 48
2591 },
2592 {
2593 "pitch": -60,
2594 "yaw": 270,
2595 "x": 288,
2596 "y": 240,
2597 "w": 32,
2598 "h": 48
2599 },
2600 {
2601 "pitch": -60,
2602 "yaw": 300,
2603 "x": 320,
2604 "y": 240,
2605 "w": 32,
2606 "h": 48
2607 },
2608 {
2609 "pitch": -60,
2610 "yaw": 330,
2611 "x": 352,
2612 "y": 240,
2613 "w": 32,
2614 "h": 48
2615 },
2616 {
2617 "pitch": -30,
2618 "yaw": 0,
2619 "x": 384,
2620 "y": 240,
2621 "w": 32,
2622 "h": 48
2623 },
2624 {
2625 "pitch": -30,
2626 "yaw": 30,
2627 "x": 416,
2628 "y": 240,
2629 "w": 32,
2630 "h": 48
2631 },
2632 {
2633 "pitch": -30,
2634 "yaw": 60,
2635 "x": 448,
2636 "y": 240,
2637 "w": 32,
2638 "h": 48
2639 },
2640 {
2641 "pitch": -30,
2642 "yaw": 90,
2643 "x": 480,
2644 "y": 240,
2645 "w": 32,
2646 "h": 48
2647 },
2648 {
2649 "pitch": -30,
2650 "yaw": 120,
2651 "x": 512,
2652 "y": 240,
2653 "w": 32,
2654 "h": 48
2655 },
2656 {
2657 "pitch": -30,
2658 "yaw": 150,
2659 "x": 544,
2660 "y": 240,
2661 "w": 32,
2662 "h": 48
2663 },
2664 {
2665 "pitch": -30,
2666 "yaw": 180,
2667 "x": 576,
2668 "y": 240,
2669 "w": 32,
2670 "h": 48
2671 },
2672 {
2673 "pitch": -30,
2674 "yaw": 210,
2675 "x": 608,
2676 "y": 240,
2677 "w": 32,
2678 "h": 48
2679 },
2680 {
2681 "pitch": -30,
2682 "yaw": 240,
2683 "x": 640,
2684 "y": 240,
2685 "w": 32,
2686 "h": 48
2687 },
2688 {
2689 "pitch": -30,
2690 "yaw": 270,
2691 "x": 672,
2692 "y": 240,
2693 "w": 32,
2694 "h": 48
2695 },
2696 {
2697 "pitch": -30,
2698 "yaw": 300,
2699 "x": 704,
2700 "y": 240,
2701 "w": 32,
2702 "h": 48
2703 },
2704 {
2705 "pitch": -30,
2706 "yaw": 330,
2707 "x": 736,
2708 "y": 240,
2709 "w": 32,
2710 "h": 48
2711 },
2712 {
2713 "pitch": 0,
2714 "yaw": 0,
2715 "x": 768,
2716 "y": 240,
2717 "w": 32,
2718 "h": 48
2719 },
2720 {
2721 "pitch": 0,
2722 "yaw": 30,
2723 "x": 800,
2724 "y": 240,
2725 "w": 32,
2726 "h": 48
2727 },
2728 {
2729 "pitch": 0,
2730 "yaw": 60,
2731 "x": 832,
2732 "y": 240,
2733 "w": 32,
2734 "h": 48
2735 },
2736 {
2737 "pitch": 0,
2738 "yaw": 90,
2739 "x": 864,
2740 "y": 240,
2741 "w": 32,
2742 "h": 48
2743 },
2744 {
2745 "pitch": 0,
2746 "yaw": 120,
2747 "x": 896,
2748 "y": 240,
2749 "w": 32,
2750 "h": 48
2751 },
2752 {
2753 "pitch": 0,
2754 "yaw": 150,
2755 "x": 928,
2756 "y": 240,
2757 "w": 32,
2758 "h": 48
2759 },
2760 {
2761 "pitch": 0,
2762 "yaw": 180,
2763 "x": 960,
2764 "y": 240,
2765 "w": 32,
2766 "h": 48
2767 },
2768 {
2769 "pitch": 0,
2770 "yaw": 210,
2771 "x": 992,
2772 "y": 240,
2773 "w": 32,
2774 "h": 48
2775 },
2776 {
2777 "pitch": 0,
2778 "yaw": 240,
2779 "x": 1024,
2780 "y": 240,
2781 "w": 32,
2782 "h": 48
2783 },
2784 {
2785 "pitch": 0,
2786 "yaw": 270,
2787 "x": 1056,
2788 "y": 240,
2789 "w": 32,
2790 "h": 48
2791 },
2792 {
2793 "pitch": 0,
2794 "yaw": 300,
2795 "x": 1088,
2796 "y": 240,
2797 "w": 32,
2798 "h": 48
2799 },
2800 {
2801 "pitch": 0,
2802 "yaw": 330,
2803 "x": 1120,
2804 "y": 240,
2805 "w": 32,
2806 "h": 48
2807 },
2808 {
2809 "pitch": 30,
2810 "yaw": 0,
2811 "x": 1152,
2812 "y": 240,
2813 "w": 32,
2814 "h": 48
2815 },
2816 {
2817 "pitch": 30,
2818 "yaw": 30,
2819 "x": 1184,
2820 "y": 240,
2821 "w": 32,
2822 "h": 48
2823 },
2824 {
2825 "pitch": 30,
2826 "yaw": 60,
2827 "x": 1216,
2828 "y": 240,
2829 "w": 32,
2830 "h": 48
2831 },
2832 {
2833 "pitch": 30,
2834 "yaw": 90,
2835 "x": 1248,
2836 "y": 240,
2837 "w": 32,
2838 "h": 48
2839 },
2840 {
2841 "pitch": 30,
2842 "yaw": 120,
2843 "x": 1280,
2844 "y": 240,
2845 "w": 32,
2846 "h": 48
2847 },
2848 {
2849 "pitch": 30,
2850 "yaw": 150,
2851 "x": 1312,
2852 "y": 240,
2853 "w": 32,
2854 "h": 48
2855 },
2856 {
2857 "pitch": 30,
2858 "yaw": 180,
2859 "x": 1344,
2860 "y": 240,
2861 "w": 32,
2862 "h": 48
2863 },
2864 {
2865 "pitch": 30,
2866 "yaw": 210,
2867 "x": 1376,
2868 "y": 240,
2869 "w": 32,
2870 "h": 48
2871 },
2872 {
2873 "pitch": 30,
2874 "yaw": 240,
2875 "x": 1408,
2876 "y": 240,
2877 "w": 32,
2878 "h": 48
2879 },
2880 {
2881 "pitch": 30,
2882 "yaw": 270,
2883 "x": 1440,
2884 "y": 240,
2885 "w": 32,
2886 "h": 48
2887 },
2888 {
2889 "pitch": 30,
2890 "yaw": 300,
2891 "x": 1472,
2892 "y": 240,
2893 "w": 32,
2894 "h": 48
2895 },
2896 {
2897 "pitch": 30,
2898 "yaw": 330,
2899 "x": 1504,
2900 "y": 240,
2901 "w": 32,
2902 "h": 48
2903 },
2904 {
2905 "pitch": 60,
2906 "yaw": 0,
2907 "x": 1536,
2908 "y": 240,
2909 "w": 32,
2910 "h": 48
2911 },
2912 {
2913 "pitch": 60,
2914 "yaw": 30,
2915 "x": 1568,
2916 "y": 240,
2917 "w": 32,
2918 "h": 48
2919 },
2920 {
2921 "pitch": 60,
2922 "yaw": 60,
2923 "x": 1600,
2924 "y": 240,
2925 "w": 32,
2926 "h": 48
2927 },
2928 {
2929 "pitch": 60,
2930 "yaw": 90,
2931 "x": 1632,
2932 "y": 240,
2933 "w": 32,
2934 "h": 48
2935 },
2936 {
2937 "pitch": 60,
2938 "yaw": 120,
2939 "x": 1664,
2940 "y": 240,
2941 "w": 32,
2942 "h": 48
2943 },
2944 {
2945 "pitch": 60,
2946 "yaw": 150,
2947 "x": 1696,
2948 "y": 240,
2949 "w": 32,
2950 "h": 48
2951 },
2952 {
2953 "pitch": 60,
2954 "yaw": 180,
2955 "x": 1728,
2956 "y": 240,
2957 "w": 32,
2958 "h": 48
2959 },
2960 {
2961 "pitch": 60,
2962 "yaw": 210,
2963 "x": 1760,
2964 "y": 240,
2965 "w": 32,
2966 "h": 48
2967 },
2968 {
2969 "pitch": 60,
2970 "yaw": 240,
2971 "x": 1792,
2972 "y": 240,
2973 "w": 32,
2974 "h": 48
2975 },
2976 {
2977 "pitch": 60,
2978 "yaw": 270,
2979 "x": 1824,
2980 "y": 240,
2981 "w": 32,
2982 "h": 48
2983 },
2984 {
2985 "pitch": 60,
2986 "yaw": 300,
2987 "x": 1856,
2988 "y": 240,
2989 "w": 32,
2990 "h": 48
2991 },
2992 {
2993 "pitch": 60,
2994 "yaw": 330,
2995 "x": 1888,
2996 "y": 240,
2997 "w": 32,
2998 "h": 48
2999 }
3000 ]
3001 },
3002 {
3003 "index": 2,
3004 "views": [
3005 {
3006 "pitch": -60,
3007 "yaw": 0,
3008 "x": 0,
3009 "y": 288,
3010 "w": 32,
3011 "h": 48
3012 },
3013 {
3014 "pitch": -60,
3015 "yaw": 30,
3016 "x": 32,
3017 "y": 288,
3018 "w": 32,
3019 "h": 48
3020 },
3021 {
3022 "pitch": -60,
3023 "yaw": 60,
3024 "x": 64,
3025 "y": 288,
3026 "w": 32,
3027 "h": 48
3028 },
3029 {
3030 "pitch": -60,
3031 "yaw": 90,
3032 "x": 96,
3033 "y": 288,
3034 "w": 32,
3035 "h": 48
3036 },
3037 {
3038 "pitch": -60,
3039 "yaw": 120,
3040 "x": 128,
3041 "y": 288,
3042 "w": 32,
3043 "h": 48
3044 },
3045 {
3046 "pitch": -60,
3047 "yaw": 150,
3048 "x": 160,
3049 "y": 288,
3050 "w": 32,
3051 "h": 48
3052 },
3053 {
3054 "pitch": -60,
3055 "yaw": 180,
3056 "x": 192,
3057 "y": 288,
3058 "w": 32,
3059 "h": 48
3060 },
3061 {
3062 "pitch": -60,
3063 "yaw": 210,
3064 "x": 224,
3065 "y": 288,
3066 "w": 32,
3067 "h": 48
3068 },
3069 {
3070 "pitch": -60,
3071 "yaw": 240,
3072 "x": 256,
3073 "y": 288,
3074 "w": 32,
3075 "h": 48
3076 },
3077 {
3078 "pitch": -60,
3079 "yaw": 270,
3080 "x": 288,
3081 "y": 288,
3082 "w": 32,
3083 "h": 48
3084 },
3085 {
3086 "pitch": -60,
3087 "yaw": 300,
3088 "x": 320,
3089 "y": 288,
3090 "w": 32,
3091 "h": 48
3092 },
3093 {
3094 "pitch": -60,
3095 "yaw": 330,
3096 "x": 352,
3097 "y": 288,
3098 "w": 32,
3099 "h": 48
3100 },
3101 {
3102 "pitch": -30,
3103 "yaw": 0,
3104 "x": 384,
3105 "y": 288,
3106 "w": 32,
3107 "h": 48
3108 },
3109 {
3110 "pitch": -30,
3111 "yaw": 30,
3112 "x": 416,
3113 "y": 288,
3114 "w": 32,
3115 "h": 48
3116 },
3117 {
3118 "pitch": -30,
3119 "yaw": 60,
3120 "x": 448,
3121 "y": 288,
3122 "w": 32,
3123 "h": 48
3124 },
3125 {
3126 "pitch": -30,
3127 "yaw": 90,
3128 "x": 480,
3129 "y": 288,
3130 "w": 32,
3131 "h": 48
3132 },
3133 {
3134 "pitch": -30,
3135 "yaw": 120,
3136 "x": 512,
3137 "y": 288,
3138 "w": 32,
3139 "h": 48
3140 },
3141 {
3142 "pitch": -30,
3143 "yaw": 150,
3144 "x": 544,
3145 "y": 288,
3146 "w": 32,
3147 "h": 48
3148 },
3149 {
3150 "pitch": -30,
3151 "yaw": 180,
3152 "x": 576,
3153 "y": 288,
3154 "w": 32,
3155 "h": 48
3156 },
3157 {
3158 "pitch": -30,
3159 "yaw": 210,
3160 "x": 608,
3161 "y": 288,
3162 "w": 32,
3163 "h": 48
3164 },
3165 {
3166 "pitch": -30,
3167 "yaw": 240,
3168 "x": 640,
3169 "y": 288,
3170 "w": 32,
3171 "h": 48
3172 },
3173 {
3174 "pitch": -30,
3175 "yaw": 270,
3176 "x": 672,
3177 "y": 288,
3178 "w": 32,
3179 "h": 48
3180 },
3181 {
3182 "pitch": -30,
3183 "yaw": 300,
3184 "x": 704,
3185 "y": 288,
3186 "w": 32,
3187 "h": 48
3188 },
3189 {
3190 "pitch": -30,
3191 "yaw": 330,
3192 "x": 736,
3193 "y": 288,
3194 "w": 32,
3195 "h": 48
3196 },
3197 {
3198 "pitch": 0,
3199 "yaw": 0,
3200 "x": 768,
3201 "y": 288,
3202 "w": 32,
3203 "h": 48
3204 },
3205 {
3206 "pitch": 0,
3207 "yaw": 30,
3208 "x": 800,
3209 "y": 288,
3210 "w": 32,
3211 "h": 48
3212 },
3213 {
3214 "pitch": 0,
3215 "yaw": 60,
3216 "x": 832,
3217 "y": 288,
3218 "w": 32,
3219 "h": 48
3220 },
3221 {
3222 "pitch": 0,
3223 "yaw": 90,
3224 "x": 864,
3225 "y": 288,
3226 "w": 32,
3227 "h": 48
3228 },
3229 {
3230 "pitch": 0,
3231 "yaw": 120,
3232 "x": 896,
3233 "y": 288,
3234 "w": 32,
3235 "h": 48
3236 },
3237 {
3238 "pitch": 0,
3239 "yaw": 150,
3240 "x": 928,
3241 "y": 288,
3242 "w": 32,
3243 "h": 48
3244 },
3245 {
3246 "pitch": 0,
3247 "yaw": 180,
3248 "x": 960,
3249 "y": 288,
3250 "w": 32,
3251 "h": 48
3252 },
3253 {
3254 "pitch": 0,
3255 "yaw": 210,
3256 "x": 992,
3257 "y": 288,
3258 "w": 32,
3259 "h": 48
3260 },
3261 {
3262 "pitch": 0,
3263 "yaw": 240,
3264 "x": 1024,
3265 "y": 288,
3266 "w": 32,
3267 "h": 48
3268 },
3269 {
3270 "pitch": 0,
3271 "yaw": 270,
3272 "x": 1056,
3273 "y": 288,
3274 "w": 32,
3275 "h": 48
3276 },
3277 {
3278 "pitch": 0,
3279 "yaw": 300,
3280 "x": 1088,
3281 "y": 288,
3282 "w": 32,
3283 "h": 48
3284 },
3285 {
3286 "pitch": 0,
3287 "yaw": 330,
3288 "x": 1120,
3289 "y": 288,
3290 "w": 32,
3291 "h": 48
3292 },
3293 {
3294 "pitch": 30,
3295 "yaw": 0,
3296 "x": 1152,
3297 "y": 288,
3298 "w": 32,
3299 "h": 48
3300 },
3301 {
3302 "pitch": 30,
3303 "yaw": 30,
3304 "x": 1184,
3305 "y": 288,
3306 "w": 32,
3307 "h": 48
3308 },
3309 {
3310 "pitch": 30,
3311 "yaw": 60,
3312 "x": 1216,
3313 "y": 288,
3314 "w": 32,
3315 "h": 48
3316 },
3317 {
3318 "pitch": 30,
3319 "yaw": 90,
3320 "x": 1248,
3321 "y": 288,
3322 "w": 32,
3323 "h": 48
3324 },
3325 {
3326 "pitch": 30,
3327 "yaw": 120,
3328 "x": 1280,
3329 "y": 288,
3330 "w": 32,
3331 "h": 48
3332 },
3333 {
3334 "pitch": 30,
3335 "yaw": 150,
3336 "x": 1312,
3337 "y": 288,
3338 "w": 32,
3339 "h": 48
3340 },
3341 {
3342 "pitch": 30,
3343 "yaw": 180,
3344 "x": 1344,
3345 "y": 288,
3346 "w": 32,
3347 "h": 48
3348 },
3349 {
3350 "pitch": 30,
3351 "yaw": 210,
3352 "x": 1376,
3353 "y": 288,
3354 "w": 32,
3355 "h": 48
3356 },
3357 {
3358 "pitch": 30,
3359 "yaw": 240,
3360 "x": 1408,
3361 "y": 288,
3362 "w": 32,
3363 "h": 48
3364 },
3365 {
3366 "pitch": 30,
3367 "yaw": 270,
3368 "x": 1440,
3369 "y": 288,
3370 "w": 32,
3371 "h": 48
3372 },
3373 {
3374 "pitch": 30,
3375 "yaw": 300,
3376 "x": 1472,
3377 "y": 288,
3378 "w": 32,
3379 "h": 48
3380 },
3381 {
3382 "pitch": 30,
3383 "yaw": 330,
3384 "x": 1504,
3385 "y": 288,
3386 "w": 32,
3387 "h": 48
3388 },
3389 {
3390 "pitch": 60,
3391 "yaw": 0,
3392 "x": 1536,
3393 "y": 288,
3394 "w": 32,
3395 "h": 48
3396 },
3397 {
3398 "pitch": 60,
3399 "yaw": 30,
3400 "x": 1568,
3401 "y": 288,
3402 "w": 32,
3403 "h": 48
3404 },
3405 {
3406 "pitch": 60,
3407 "yaw": 60,
3408 "x": 1600,
3409 "y": 288,
3410 "w": 32,
3411 "h": 48
3412 },
3413 {
3414 "pitch": 60,
3415 "yaw": 90,
3416 "x": 1632,
3417 "y": 288,
3418 "w": 32,
3419 "h": 48
3420 },
3421 {
3422 "pitch": 60,
3423 "yaw": 120,
3424 "x": 1664,
3425 "y": 288,
3426 "w": 32,
3427 "h": 48
3428 },
3429 {
3430 "pitch": 60,
3431 "yaw": 150,
3432 "x": 1696,
3433 "y": 288,
3434 "w": 32,
3435 "h": 48
3436 },
3437 {
3438 "pitch": 60,
3439 "yaw": 180,
3440 "x": 1728,
3441 "y": 288,
3442 "w": 32,
3443 "h": 48
3444 },
3445 {
3446 "pitch": 60,
3447 "yaw": 210,
3448 "x": 1760,
3449 "y": 288,
3450 "w": 32,
3451 "h": 48
3452 },
3453 {
3454 "pitch": 60,
3455 "yaw": 240,
3456 "x": 1792,
3457 "y": 288,
3458 "w": 32,
3459 "h": 48
3460 },
3461 {
3462 "pitch": 60,
3463 "yaw": 270,
3464 "x": 1824,
3465 "y": 288,
3466 "w": 32,
3467 "h": 48
3468 },
3469 {
3470 "pitch": 60,
3471 "yaw": 300,
3472 "x": 1856,
3473 "y": 288,
3474 "w": 32,
3475 "h": 48
3476 },
3477 {
3478 "pitch": 60,
3479 "yaw": 330,
3480 "x": 1888,
3481 "y": 288,
3482 "w": 32,
3483 "h": 48
3484 }
3485 ]
3486 },
3487 {
3488 "index": 3,
3489 "views": [
3490 {
3491 "pitch": -60,
3492 "yaw": 0,
3493 "x": 0,
3494 "y": 336,
3495 "w": 32,
3496 "h": 48
3497 },
3498 {
3499 "pitch": -60,
3500 "yaw": 30,
3501 "x": 32,
3502 "y": 336,
3503 "w": 32,
3504 "h": 48
3505 },
3506 {
3507 "pitch": -60,
3508 "yaw": 60,
3509 "x": 64,
3510 "y": 336,
3511 "w": 32,
3512 "h": 48
3513 },
3514 {
3515 "pitch": -60,
3516 "yaw": 90,
3517 "x": 96,
3518 "y": 336,
3519 "w": 32,
3520 "h": 48
3521 },
3522 {
3523 "pitch": -60,
3524 "yaw": 120,
3525 "x": 128,
3526 "y": 336,
3527 "w": 32,
3528 "h": 48
3529 },
3530 {
3531 "pitch": -60,
3532 "yaw": 150,
3533 "x": 160,
3534 "y": 336,
3535 "w": 32,
3536 "h": 48
3537 },
3538 {
3539 "pitch": -60,
3540 "yaw": 180,
3541 "x": 192,
3542 "y": 336,
3543 "w": 32,
3544 "h": 48
3545 },
3546 {
3547 "pitch": -60,
3548 "yaw": 210,
3549 "x": 224,
3550 "y": 336,
3551 "w": 32,
3552 "h": 48
3553 },
3554 {
3555 "pitch": -60,
3556 "yaw": 240,
3557 "x": 256,
3558 "y": 336,
3559 "w": 32,
3560 "h": 48
3561 },
3562 {
3563 "pitch": -60,
3564 "yaw": 270,
3565 "x": 288,
3566 "y": 336,
3567 "w": 32,
3568 "h": 48
3569 },
3570 {
3571 "pitch": -60,
3572 "yaw": 300,
3573 "x": 320,
3574 "y": 336,
3575 "w": 32,
3576 "h": 48
3577 },
3578 {
3579 "pitch": -60,
3580 "yaw": 330,
3581 "x": 352,
3582 "y": 336,
3583 "w": 32,
3584 "h": 48
3585 },
3586 {
3587 "pitch": -30,
3588 "yaw": 0,
3589 "x": 384,
3590 "y": 336,
3591 "w": 32,
3592 "h": 48
3593 },
3594 {
3595 "pitch": -30,
3596 "yaw": 30,
3597 "x": 416,
3598 "y": 336,
3599 "w": 32,
3600 "h": 48
3601 },
3602 {
3603 "pitch": -30,
3604 "yaw": 60,
3605 "x": 448,
3606 "y": 336,
3607 "w": 32,
3608 "h": 48
3609 },
3610 {
3611 "pitch": -30,
3612 "yaw": 90,
3613 "x": 480,
3614 "y": 336,
3615 "w": 32,
3616 "h": 48
3617 },
3618 {
3619 "pitch": -30,
3620 "yaw": 120,
3621 "x": 512,
3622 "y": 336,
3623 "w": 32,
3624 "h": 48
3625 },
3626 {
3627 "pitch": -30,
3628 "yaw": 150,
3629 "x": 544,
3630 "y": 336,
3631 "w": 32,
3632 "h": 48
3633 },
3634 {
3635 "pitch": -30,
3636 "yaw": 180,
3637 "x": 576,
3638 "y": 336,
3639 "w": 32,
3640 "h": 48
3641 },
3642 {
3643 "pitch": -30,
3644 "yaw": 210,
3645 "x": 608,
3646 "y": 336,
3647 "w": 32,
3648 "h": 48
3649 },
3650 {
3651 "pitch": -30,
3652 "yaw": 240,
3653 "x": 640,
3654 "y": 336,
3655 "w": 32,
3656 "h": 48
3657 },
3658 {
3659 "pitch": -30,
3660 "yaw": 270,
3661 "x": 672,
3662 "y": 336,
3663 "w": 32,
3664 "h": 48
3665 },
3666 {
3667 "pitch": -30,
3668 "yaw": 300,
3669 "x": 704,
3670 "y": 336,
3671 "w": 32,
3672 "h": 48
3673 },
3674 {
3675 "pitch": -30,
3676 "yaw": 330,
3677 "x": 736,
3678 "y": 336,
3679 "w": 32,
3680 "h": 48
3681 },
3682 {
3683 "pitch": 0,
3684 "yaw": 0,
3685 "x": 768,
3686 "y": 336,
3687 "w": 32,
3688 "h": 48
3689 },
3690 {
3691 "pitch": 0,
3692 "yaw": 30,
3693 "x": 800,
3694 "y": 336,
3695 "w": 32,
3696 "h": 48
3697 },
3698 {
3699 "pitch": 0,
3700 "yaw": 60,
3701 "x": 832,
3702 "y": 336,
3703 "w": 32,
3704 "h": 48
3705 },
3706 {
3707 "pitch": 0,
3708 "yaw": 90,
3709 "x": 864,
3710 "y": 336,
3711 "w": 32,
3712 "h": 48
3713 },
3714 {
3715 "pitch": 0,
3716 "yaw": 120,
3717 "x": 896,
3718 "y": 336,
3719 "w": 32,
3720 "h": 48
3721 },
3722 {
3723 "pitch": 0,
3724 "yaw": 150,
3725 "x": 928,
3726 "y": 336,
3727 "w": 32,
3728 "h": 48
3729 },
3730 {
3731 "pitch": 0,
3732 "yaw": 180,
3733 "x": 960,
3734 "y": 336,
3735 "w": 32,
3736 "h": 48
3737 },
3738 {
3739 "pitch": 0,
3740 "yaw": 210,
3741 "x": 992,
3742 "y": 336,
3743 "w": 32,
3744 "h": 48
3745 },
3746 {
3747 "pitch": 0,
3748 "yaw": 240,
3749 "x": 1024,
3750 "y": 336,
3751 "w": 32,
3752 "h": 48
3753 },
3754 {
3755 "pitch": 0,
3756 "yaw": 270,
3757 "x": 1056,
3758 "y": 336,
3759 "w": 32,
3760 "h": 48
3761 },
3762 {
3763 "pitch": 0,
3764 "yaw": 300,
3765 "x": 1088,
3766 "y": 336,
3767 "w": 32,
3768 "h": 48
3769 },
3770 {
3771 "pitch": 0,
3772 "yaw": 330,
3773 "x": 1120,
3774 "y": 336,
3775 "w": 32,
3776 "h": 48
3777 },
3778 {
3779 "pitch": 30,
3780 "yaw": 0,
3781 "x": 1152,
3782 "y": 336,
3783 "w": 32,
3784 "h": 48
3785 },
3786 {
3787 "pitch": 30,
3788 "yaw": 30,
3789 "x": 1184,
3790 "y": 336,
3791 "w": 32,
3792 "h": 48
3793 },
3794 {
3795 "pitch": 30,
3796 "yaw": 60,
3797 "x": 1216,
3798 "y": 336,
3799 "w": 32,
3800 "h": 48
3801 },
3802 {
3803 "pitch": 30,
3804 "yaw": 90,
3805 "x": 1248,
3806 "y": 336,
3807 "w": 32,
3808 "h": 48
3809 },
3810 {
3811 "pitch": 30,
3812 "yaw": 120,
3813 "x": 1280,
3814 "y": 336,
3815 "w": 32,
3816 "h": 48
3817 },
3818 {
3819 "pitch": 30,
3820 "yaw": 150,
3821 "x": 1312,
3822 "y": 336,
3823 "w": 32,
3824 "h": 48
3825 },
3826 {
3827 "pitch": 30,
3828 "yaw": 180,
3829 "x": 1344,
3830 "y": 336,
3831 "w": 32,
3832 "h": 48
3833 },
3834 {
3835 "pitch": 30,
3836 "yaw": 210,
3837 "x": 1376,
3838 "y": 336,
3839 "w": 32,
3840 "h": 48
3841 },
3842 {
3843 "pitch": 30,
3844 "yaw": 240,
3845 "x": 1408,
3846 "y": 336,
3847 "w": 32,
3848 "h": 48
3849 },
3850 {
3851 "pitch": 30,
3852 "yaw": 270,
3853 "x": 1440,
3854 "y": 336,
3855 "w": 32,
3856 "h": 48
3857 },
3858 {
3859 "pitch": 30,
3860 "yaw": 300,
3861 "x": 1472,
3862 "y": 336,
3863 "w": 32,
3864 "h": 48
3865 },
3866 {
3867 "pitch": 30,
3868 "yaw": 330,
3869 "x": 1504,
3870 "y": 336,
3871 "w": 32,
3872 "h": 48
3873 },
3874 {
3875 "pitch": 60,
3876 "yaw": 0,
3877 "x": 1536,
3878 "y": 336,
3879 "w": 32,
3880 "h": 48
3881 },
3882 {
3883 "pitch": 60,
3884 "yaw": 30,
3885 "x": 1568,
3886 "y": 336,
3887 "w": 32,
3888 "h": 48
3889 },
3890 {
3891 "pitch": 60,
3892 "yaw": 60,
3893 "x": 1600,
3894 "y": 336,
3895 "w": 32,
3896 "h": 48
3897 },
3898 {
3899 "pitch": 60,
3900 "yaw": 90,
3901 "x": 1632,
3902 "y": 336,
3903 "w": 32,
3904 "h": 48
3905 },
3906 {
3907 "pitch": 60,
3908 "yaw": 120,
3909 "x": 1664,
3910 "y": 336,
3911 "w": 32,
3912 "h": 48
3913 },
3914 {
3915 "pitch": 60,
3916 "yaw": 150,
3917 "x": 1696,
3918 "y": 336,
3919 "w": 32,
3920 "h": 48
3921 },
3922 {
3923 "pitch": 60,
3924 "yaw": 180,
3925 "x": 1728,
3926 "y": 336,
3927 "w": 32,
3928 "h": 48
3929 },
3930 {
3931 "pitch": 60,
3932 "yaw": 210,
3933 "x": 1760,
3934 "y": 336,
3935 "w": 32,
3936 "h": 48
3937 },
3938 {
3939 "pitch": 60,
3940 "yaw": 240,
3941 "x": 1792,
3942 "y": 336,
3943 "w": 32,
3944 "h": 48
3945 },
3946 {
3947 "pitch": 60,
3948 "yaw": 270,
3949 "x": 1824,
3950 "y": 336,
3951 "w": 32,
3952 "h": 48
3953 },
3954 {
3955 "pitch": 60,
3956 "yaw": 300,
3957 "x": 1856,
3958 "y": 336,
3959 "w": 32,
3960 "h": 48
3961 },
3962 {
3963 "pitch": 60,
3964 "yaw": 330,
3965 "x": 1888,
3966 "y": 336,
3967 "w": 32,
3968 "h": 48
3969 }
3970 ]
3971 }
3972 ]
3973 }
3974 ],
3975 "depth_near": 0.05,
3976 "depth_far": 40.0,
3977 "depth_encoding": "gray",
3978 "depth_bits": 16
3979 }
@@ -0,0 +1,3979 @@
1{
2 "format_version": 1,
3 "sex": "male",
4 "settype": "body",
5 "project": {
6 "id": "ppd-18e5bbc21e3510a3",
7 "name": "Nieuw project"
8 },
9 "identity": {
10 "body_model_sha256": "3f2eb80ca5151a5c3aff703c961aa9a827a969cf7de4cf955ec7b8abe16e352c",
11 "equipment_preset_sha256": null,
12 "framing": {
13 "height_milli": 2600,
14 "center_y_milli": 1000,
15 "pivot_y_milli": 1460
16 },
17 "pivot_source": "neck",
18 "near": 0.05,
19 "far": 40.0,
20 "camera_distance": 10.0,
21 "normal_space": "view (+Y up), PNG rows top-down",
22 "depth": "16-bit gray+alpha; distance=near+(sample/65535)*(far-near)"
23 },
24 "fps": 4,
25 "cell_width": 32,
26 "cell_height": 48,
27 "pitches": [
28 -60,
29 -30,
30 0,
31 30,
32 60
33 ],
34 "yaws": [
35 0,
36 30,
37 60,
38 90,
39 120,
40 150,
41 180,
42 210,
43 240,
44 270,
45 300,
46 330
47 ],
48 "maps": {
49 "depth": {
50 "file": "male-body-depth-atlas.u16",
51 "sha256": "f0a69bf3a4e322aa484081783520167270681a37ce8a184c8ca6670a64c140ae",
52 "width": 1920,
53 "height": 384,
54 "storage": "u16le_ga"
55 },
56 "diffuse": {
57 "file": "male-body-diffuse-atlas.png",
58 "sha256": "2c8795476d3d2be7c346e18fffe9a373200604475e23501bdef9858ad3e91f19",
59 "width": 1920,
60 "height": 384
61 },
62 "normal": {
63 "file": "male-body-normal-atlas.png",
64 "sha256": "4aca5408d7bc8ce3bc904a1d81de074c33af06306af39251c20b6c45c8cd171e",
65 "width": 1920,
66 "height": 384
67 },
68 "specular": {
69 "file": "male-body-specular-atlas.png",
70 "sha256": "ff38f93e4e45fb817e87944a786730f28369f2740cbbd1ae01f5064ee55436a0",
71 "width": 1920,
72 "height": 384
73 }
74 },
75 "clips": [
76 {
77 "source_index": 0,
78 "name": "walk",
79 "token": "clip000-walk",
80 "frame_count": 4,
81 "duration": 1.0,
82 "frames": [
83 {
84 "index": 0,
85 "views": [
86 {
87 "pitch": -60,
88 "yaw": 0,
89 "x": 0,
90 "y": 0,
91 "w": 32,
92 "h": 48
93 },
94 {
95 "pitch": -60,
96 "yaw": 30,
97 "x": 32,
98 "y": 0,
99 "w": 32,
100 "h": 48
101 },
102 {
103 "pitch": -60,
104 "yaw": 60,
105 "x": 64,
106 "y": 0,
107 "w": 32,
108 "h": 48
109 },
110 {
111 "pitch": -60,
112 "yaw": 90,
113 "x": 96,
114 "y": 0,
115 "w": 32,
116 "h": 48
117 },
118 {
119 "pitch": -60,
120 "yaw": 120,
121 "x": 128,
122 "y": 0,
123 "w": 32,
124 "h": 48
125 },
126 {
127 "pitch": -60,
128 "yaw": 150,
129 "x": 160,
130 "y": 0,
131 "w": 32,
132 "h": 48
133 },
134 {
135 "pitch": -60,
136 "yaw": 180,
137 "x": 192,
138 "y": 0,
139 "w": 32,
140 "h": 48
141 },
142 {
143 "pitch": -60,
144 "yaw": 210,
145 "x": 224,
146 "y": 0,
147 "w": 32,
148 "h": 48
149 },
150 {
151 "pitch": -60,
152 "yaw": 240,
153 "x": 256,
154 "y": 0,
155 "w": 32,
156 "h": 48
157 },
158 {
159 "pitch": -60,
160 "yaw": 270,
161 "x": 288,
162 "y": 0,
163 "w": 32,
164 "h": 48
165 },
166 {
167 "pitch": -60,
168 "yaw": 300,
169 "x": 320,
170 "y": 0,
171 "w": 32,
172 "h": 48
173 },
174 {
175 "pitch": -60,
176 "yaw": 330,
177 "x": 352,
178 "y": 0,
179 "w": 32,
180 "h": 48
181 },
182 {
183 "pitch": -30,
184 "yaw": 0,
185 "x": 384,
186 "y": 0,
187 "w": 32,
188 "h": 48
189 },
190 {
191 "pitch": -30,
192 "yaw": 30,
193 "x": 416,
194 "y": 0,
195 "w": 32,
196 "h": 48
197 },
198 {
199 "pitch": -30,
200 "yaw": 60,
201 "x": 448,
202 "y": 0,
203 "w": 32,
204 "h": 48
205 },
206 {
207 "pitch": -30,
208 "yaw": 90,
209 "x": 480,
210 "y": 0,
211 "w": 32,
212 "h": 48
213 },
214 {
215 "pitch": -30,
216 "yaw": 120,
217 "x": 512,
218 "y": 0,
219 "w": 32,
220 "h": 48
221 },
222 {
223 "pitch": -30,
224 "yaw": 150,
225 "x": 544,
226 "y": 0,
227 "w": 32,
228 "h": 48
229 },
230 {
231 "pitch": -30,
232 "yaw": 180,
233 "x": 576,
234 "y": 0,
235 "w": 32,
236 "h": 48
237 },
238 {
239 "pitch": -30,
240 "yaw": 210,
241 "x": 608,
242 "y": 0,
243 "w": 32,
244 "h": 48
245 },
246 {
247 "pitch": -30,
248 "yaw": 240,
249 "x": 640,
250 "y": 0,
251 "w": 32,
252 "h": 48
253 },
254 {
255 "pitch": -30,
256 "yaw": 270,
257 "x": 672,
258 "y": 0,
259 "w": 32,
260 "h": 48
261 },
262 {
263 "pitch": -30,
264 "yaw": 300,
265 "x": 704,
266 "y": 0,
267 "w": 32,
268 "h": 48
269 },
270 {
271 "pitch": -30,
272 "yaw": 330,
273 "x": 736,
274 "y": 0,
275 "w": 32,
276 "h": 48
277 },
278 {
279 "pitch": 0,
280 "yaw": 0,
281 "x": 768,
282 "y": 0,
283 "w": 32,
284 "h": 48
285 },
286 {
287 "pitch": 0,
288 "yaw": 30,
289 "x": 800,
290 "y": 0,
291 "w": 32,
292 "h": 48
293 },
294 {
295 "pitch": 0,
296 "yaw": 60,
297 "x": 832,
298 "y": 0,
299 "w": 32,
300 "h": 48
301 },
302 {
303 "pitch": 0,
304 "yaw": 90,
305 "x": 864,
306 "y": 0,
307 "w": 32,
308 "h": 48
309 },
310 {
311 "pitch": 0,
312 "yaw": 120,
313 "x": 896,
314 "y": 0,
315 "w": 32,
316 "h": 48
317 },
318 {
319 "pitch": 0,
320 "yaw": 150,
321 "x": 928,
322 "y": 0,
323 "w": 32,
324 "h": 48
325 },
326 {
327 "pitch": 0,
328 "yaw": 180,
329 "x": 960,
330 "y": 0,
331 "w": 32,
332 "h": 48
333 },
334 {
335 "pitch": 0,
336 "yaw": 210,
337 "x": 992,
338 "y": 0,
339 "w": 32,
340 "h": 48
341 },
342 {
343 "pitch": 0,
344 "yaw": 240,
345 "x": 1024,
346 "y": 0,
347 "w": 32,
348 "h": 48
349 },
350 {
351 "pitch": 0,
352 "yaw": 270,
353 "x": 1056,
354 "y": 0,
355 "w": 32,
356 "h": 48
357 },
358 {
359 "pitch": 0,
360 "yaw": 300,
361 "x": 1088,
362 "y": 0,
363 "w": 32,
364 "h": 48
365 },
366 {
367 "pitch": 0,
368 "yaw": 330,
369 "x": 1120,
370 "y": 0,
371 "w": 32,
372 "h": 48
373 },
374 {
375 "pitch": 30,
376 "yaw": 0,
377 "x": 1152,
378 "y": 0,
379 "w": 32,
380 "h": 48
381 },
382 {
383 "pitch": 30,
384 "yaw": 30,
385 "x": 1184,
386 "y": 0,
387 "w": 32,
388 "h": 48
389 },
390 {
391 "pitch": 30,
392 "yaw": 60,
393 "x": 1216,
394 "y": 0,
395 "w": 32,
396 "h": 48
397 },
398 {
399 "pitch": 30,
400 "yaw": 90,
401 "x": 1248,
402 "y": 0,
403 "w": 32,
404 "h": 48
405 },
406 {
407 "pitch": 30,
408 "yaw": 120,
409 "x": 1280,
410 "y": 0,
411 "w": 32,
412 "h": 48
413 },
414 {
415 "pitch": 30,
416 "yaw": 150,
417 "x": 1312,
418 "y": 0,
419 "w": 32,
420 "h": 48
421 },
422 {
423 "pitch": 30,
424 "yaw": 180,
425 "x": 1344,
426 "y": 0,
427 "w": 32,
428 "h": 48
429 },
430 {
431 "pitch": 30,
432 "yaw": 210,
433 "x": 1376,
434 "y": 0,
435 "w": 32,
436 "h": 48
437 },
438 {
439 "pitch": 30,
440 "yaw": 240,
441 "x": 1408,
442 "y": 0,
443 "w": 32,
444 "h": 48
445 },
446 {
447 "pitch": 30,
448 "yaw": 270,
449 "x": 1440,
450 "y": 0,
451 "w": 32,
452 "h": 48
453 },
454 {
455 "pitch": 30,
456 "yaw": 300,
457 "x": 1472,
458 "y": 0,
459 "w": 32,
460 "h": 48
461 },
462 {
463 "pitch": 30,
464 "yaw": 330,
465 "x": 1504,
466 "y": 0,
467 "w": 32,
468 "h": 48
469 },
470 {
471 "pitch": 60,
472 "yaw": 0,
473 "x": 1536,
474 "y": 0,
475 "w": 32,
476 "h": 48
477 },
478 {
479 "pitch": 60,
480 "yaw": 30,
481 "x": 1568,
482 "y": 0,
483 "w": 32,
484 "h": 48
485 },
486 {
487 "pitch": 60,
488 "yaw": 60,
489 "x": 1600,
490 "y": 0,
491 "w": 32,
492 "h": 48
493 },
494 {
495 "pitch": 60,
496 "yaw": 90,
497 "x": 1632,
498 "y": 0,
499 "w": 32,
500 "h": 48
501 },
502 {
503 "pitch": 60,
504 "yaw": 120,
505 "x": 1664,
506 "y": 0,
507 "w": 32,
508 "h": 48
509 },
510 {
511 "pitch": 60,
512 "yaw": 150,
513 "x": 1696,
514 "y": 0,
515 "w": 32,
516 "h": 48
517 },
518 {
519 "pitch": 60,
520 "yaw": 180,
521 "x": 1728,
522 "y": 0,
523 "w": 32,
524 "h": 48
525 },
526 {
527 "pitch": 60,
528 "yaw": 210,
529 "x": 1760,
530 "y": 0,
531 "w": 32,
532 "h": 48
533 },
534 {
535 "pitch": 60,
536 "yaw": 240,
537 "x": 1792,
538 "y": 0,
539 "w": 32,
540 "h": 48
541 },
542 {
543 "pitch": 60,
544 "yaw": 270,
545 "x": 1824,
546 "y": 0,
547 "w": 32,
548 "h": 48
549 },
550 {
551 "pitch": 60,
552 "yaw": 300,
553 "x": 1856,
554 "y": 0,
555 "w": 32,
556 "h": 48
557 },
558 {
559 "pitch": 60,
560 "yaw": 330,
561 "x": 1888,
562 "y": 0,
563 "w": 32,
564 "h": 48
565 }
566 ]
567 },
568 {
569 "index": 1,
570 "views": [
571 {
572 "pitch": -60,
573 "yaw": 0,
574 "x": 0,
575 "y": 48,
576 "w": 32,
577 "h": 48
578 },
579 {
580 "pitch": -60,
581 "yaw": 30,
582 "x": 32,
583 "y": 48,
584 "w": 32,
585 "h": 48
586 },
587 {
588 "pitch": -60,
589 "yaw": 60,
590 "x": 64,
591 "y": 48,
592 "w": 32,
593 "h": 48
594 },
595 {
596 "pitch": -60,
597 "yaw": 90,
598 "x": 96,
599 "y": 48,
600 "w": 32,
601 "h": 48
602 },
603 {
604 "pitch": -60,
605 "yaw": 120,
606 "x": 128,
607 "y": 48,
608 "w": 32,
609 "h": 48
610 },
611 {
612 "pitch": -60,
613 "yaw": 150,
614 "x": 160,
615 "y": 48,
616 "w": 32,
617 "h": 48
618 },
619 {
620 "pitch": -60,
621 "yaw": 180,
622 "x": 192,
623 "y": 48,
624 "w": 32,
625 "h": 48
626 },
627 {
628 "pitch": -60,
629 "yaw": 210,
630 "x": 224,
631 "y": 48,
632 "w": 32,
633 "h": 48
634 },
635 {
636 "pitch": -60,
637 "yaw": 240,
638 "x": 256,
639 "y": 48,
640 "w": 32,
641 "h": 48
642 },
643 {
644 "pitch": -60,
645 "yaw": 270,
646 "x": 288,
647 "y": 48,
648 "w": 32,
649 "h": 48
650 },
651 {
652 "pitch": -60,
653 "yaw": 300,
654 "x": 320,
655 "y": 48,
656 "w": 32,
657 "h": 48
658 },
659 {
660 "pitch": -60,
661 "yaw": 330,
662 "x": 352,
663 "y": 48,
664 "w": 32,
665 "h": 48
666 },
667 {
668 "pitch": -30,
669 "yaw": 0,
670 "x": 384,
671 "y": 48,
672 "w": 32,
673 "h": 48
674 },
675 {
676 "pitch": -30,
677 "yaw": 30,
678 "x": 416,
679 "y": 48,
680 "w": 32,
681 "h": 48
682 },
683 {
684 "pitch": -30,
685 "yaw": 60,
686 "x": 448,
687 "y": 48,
688 "w": 32,
689 "h": 48
690 },
691 {
692 "pitch": -30,
693 "yaw": 90,
694 "x": 480,
695 "y": 48,
696 "w": 32,
697 "h": 48
698 },
699 {
700 "pitch": -30,
701 "yaw": 120,
702 "x": 512,
703 "y": 48,
704 "w": 32,
705 "h": 48
706 },
707 {
708 "pitch": -30,
709 "yaw": 150,
710 "x": 544,
711 "y": 48,
712 "w": 32,
713 "h": 48
714 },
715 {
716 "pitch": -30,
717 "yaw": 180,
718 "x": 576,
719 "y": 48,
720 "w": 32,
721 "h": 48
722 },
723 {
724 "pitch": -30,
725 "yaw": 210,
726 "x": 608,
727 "y": 48,
728 "w": 32,
729 "h": 48
730 },
731 {
732 "pitch": -30,
733 "yaw": 240,
734 "x": 640,
735 "y": 48,
736 "w": 32,
737 "h": 48
738 },
739 {
740 "pitch": -30,
741 "yaw": 270,
742 "x": 672,
743 "y": 48,
744 "w": 32,
745 "h": 48
746 },
747 {
748 "pitch": -30,
749 "yaw": 300,
750 "x": 704,
751 "y": 48,
752 "w": 32,
753 "h": 48
754 },
755 {
756 "pitch": -30,
757 "yaw": 330,
758 "x": 736,
759 "y": 48,
760 "w": 32,
761 "h": 48
762 },
763 {
764 "pitch": 0,
765 "yaw": 0,
766 "x": 768,
767 "y": 48,
768 "w": 32,
769 "h": 48
770 },
771 {
772 "pitch": 0,
773 "yaw": 30,
774 "x": 800,
775 "y": 48,
776 "w": 32,
777 "h": 48
778 },
779 {
780 "pitch": 0,
781 "yaw": 60,
782 "x": 832,
783 "y": 48,
784 "w": 32,
785 "h": 48
786 },
787 {
788 "pitch": 0,
789 "yaw": 90,
790 "x": 864,
791 "y": 48,
792 "w": 32,
793 "h": 48
794 },
795 {
796 "pitch": 0,
797 "yaw": 120,
798 "x": 896,
799 "y": 48,
800 "w": 32,
801 "h": 48
802 },
803 {
804 "pitch": 0,
805 "yaw": 150,
806 "x": 928,
807 "y": 48,
808 "w": 32,
809 "h": 48
810 },
811 {
812 "pitch": 0,
813 "yaw": 180,
814 "x": 960,
815 "y": 48,
816 "w": 32,
817 "h": 48
818 },
819 {
820 "pitch": 0,
821 "yaw": 210,
822 "x": 992,
823 "y": 48,
824 "w": 32,
825 "h": 48
826 },
827 {
828 "pitch": 0,
829 "yaw": 240,
830 "x": 1024,
831 "y": 48,
832 "w": 32,
833 "h": 48
834 },
835 {
836 "pitch": 0,
837 "yaw": 270,
838 "x": 1056,
839 "y": 48,
840 "w": 32,
841 "h": 48
842 },
843 {
844 "pitch": 0,
845 "yaw": 300,
846 "x": 1088,
847 "y": 48,
848 "w": 32,
849 "h": 48
850 },
851 {
852 "pitch": 0,
853 "yaw": 330,
854 "x": 1120,
855 "y": 48,
856 "w": 32,
857 "h": 48
858 },
859 {
860 "pitch": 30,
861 "yaw": 0,
862 "x": 1152,
863 "y": 48,
864 "w": 32,
865 "h": 48
866 },
867 {
868 "pitch": 30,
869 "yaw": 30,
870 "x": 1184,
871 "y": 48,
872 "w": 32,
873 "h": 48
874 },
875 {
876 "pitch": 30,
877 "yaw": 60,
878 "x": 1216,
879 "y": 48,
880 "w": 32,
881 "h": 48
882 },
883 {
884 "pitch": 30,
885 "yaw": 90,
886 "x": 1248,
887 "y": 48,
888 "w": 32,
889 "h": 48
890 },
891 {
892 "pitch": 30,
893 "yaw": 120,
894 "x": 1280,
895 "y": 48,
896 "w": 32,
897 "h": 48
898 },
899 {
900 "pitch": 30,
901 "yaw": 150,
902 "x": 1312,
903 "y": 48,
904 "w": 32,
905 "h": 48
906 },
907 {
908 "pitch": 30,
909 "yaw": 180,
910 "x": 1344,
911 "y": 48,
912 "w": 32,
913 "h": 48
914 },
915 {
916 "pitch": 30,
917 "yaw": 210,
918 "x": 1376,
919 "y": 48,
920 "w": 32,
921 "h": 48
922 },
923 {
924 "pitch": 30,
925 "yaw": 240,
926 "x": 1408,
927 "y": 48,
928 "w": 32,
929 "h": 48
930 },
931 {
932 "pitch": 30,
933 "yaw": 270,
934 "x": 1440,
935 "y": 48,
936 "w": 32,
937 "h": 48
938 },
939 {
940 "pitch": 30,
941 "yaw": 300,
942 "x": 1472,
943 "y": 48,
944 "w": 32,
945 "h": 48
946 },
947 {
948 "pitch": 30,
949 "yaw": 330,
950 "x": 1504,
951 "y": 48,
952 "w": 32,
953 "h": 48
954 },
955 {
956 "pitch": 60,
957 "yaw": 0,
958 "x": 1536,
959 "y": 48,
960 "w": 32,
961 "h": 48
962 },
963 {
964 "pitch": 60,
965 "yaw": 30,
966 "x": 1568,
967 "y": 48,
968 "w": 32,
969 "h": 48
970 },
971 {
972 "pitch": 60,
973 "yaw": 60,
974 "x": 1600,
975 "y": 48,
976 "w": 32,
977 "h": 48
978 },
979 {
980 "pitch": 60,
981 "yaw": 90,
982 "x": 1632,
983 "y": 48,
984 "w": 32,
985 "h": 48
986 },
987 {
988 "pitch": 60,
989 "yaw": 120,
990 "x": 1664,
991 "y": 48,
992 "w": 32,
993 "h": 48
994 },
995 {
996 "pitch": 60,
997 "yaw": 150,
998 "x": 1696,
999 "y": 48,
1000 "w": 32,
1001 "h": 48
1002 },
1003 {
1004 "pitch": 60,
1005 "yaw": 180,
1006 "x": 1728,
1007 "y": 48,
1008 "w": 32,
1009 "h": 48
1010 },
1011 {
1012 "pitch": 60,
1013 "yaw": 210,
1014 "x": 1760,
1015 "y": 48,
1016 "w": 32,
1017 "h": 48
1018 },
1019 {
1020 "pitch": 60,
1021 "yaw": 240,
1022 "x": 1792,
1023 "y": 48,
1024 "w": 32,
1025 "h": 48
1026 },
1027 {
1028 "pitch": 60,
1029 "yaw": 270,
1030 "x": 1824,
1031 "y": 48,
1032 "w": 32,
1033 "h": 48
1034 },
1035 {
1036 "pitch": 60,
1037 "yaw": 300,
1038 "x": 1856,
1039 "y": 48,
1040 "w": 32,
1041 "h": 48
1042 },
1043 {
1044 "pitch": 60,
1045 "yaw": 330,
1046 "x": 1888,
1047 "y": 48,
1048 "w": 32,
1049 "h": 48
1050 }
1051 ]
1052 },
1053 {
1054 "index": 2,
1055 "views": [
1056 {
1057 "pitch": -60,
1058 "yaw": 0,
1059 "x": 0,
1060 "y": 96,
1061 "w": 32,
1062 "h": 48
1063 },
1064 {
1065 "pitch": -60,
1066 "yaw": 30,
1067 "x": 32,
1068 "y": 96,
1069 "w": 32,
1070 "h": 48
1071 },
1072 {
1073 "pitch": -60,
1074 "yaw": 60,
1075 "x": 64,
1076 "y": 96,
1077 "w": 32,
1078 "h": 48
1079 },
1080 {
1081 "pitch": -60,
1082 "yaw": 90,
1083 "x": 96,
1084 "y": 96,
1085 "w": 32,
1086 "h": 48
1087 },
1088 {
1089 "pitch": -60,
1090 "yaw": 120,
1091 "x": 128,
1092 "y": 96,
1093 "w": 32,
1094 "h": 48
1095 },
1096 {
1097 "pitch": -60,
1098 "yaw": 150,
1099 "x": 160,
1100 "y": 96,
1101 "w": 32,
1102 "h": 48
1103 },
1104 {
1105 "pitch": -60,
1106 "yaw": 180,
1107 "x": 192,
1108 "y": 96,
1109 "w": 32,
1110 "h": 48
1111 },
1112 {
1113 "pitch": -60,
1114 "yaw": 210,
1115 "x": 224,
1116 "y": 96,
1117 "w": 32,
1118 "h": 48
1119 },
1120 {
1121 "pitch": -60,
1122 "yaw": 240,
1123 "x": 256,
1124 "y": 96,
1125 "w": 32,
1126 "h": 48
1127 },
1128 {
1129 "pitch": -60,
1130 "yaw": 270,
1131 "x": 288,
1132 "y": 96,
1133 "w": 32,
1134 "h": 48
1135 },
1136 {
1137 "pitch": -60,
1138 "yaw": 300,
1139 "x": 320,
1140 "y": 96,
1141 "w": 32,
1142 "h": 48
1143 },
1144 {
1145 "pitch": -60,
1146 "yaw": 330,
1147 "x": 352,
1148 "y": 96,
1149 "w": 32,
1150 "h": 48
1151 },
1152 {
1153 "pitch": -30,
1154 "yaw": 0,
1155 "x": 384,
1156 "y": 96,
1157 "w": 32,
1158 "h": 48
1159 },
1160 {
1161 "pitch": -30,
1162 "yaw": 30,
1163 "x": 416,
1164 "y": 96,
1165 "w": 32,
1166 "h": 48
1167 },
1168 {
1169 "pitch": -30,
1170 "yaw": 60,
1171 "x": 448,
1172 "y": 96,
1173 "w": 32,
1174 "h": 48
1175 },
1176 {
1177 "pitch": -30,
1178 "yaw": 90,
1179 "x": 480,
1180 "y": 96,
1181 "w": 32,
1182 "h": 48
1183 },
1184 {
1185 "pitch": -30,
1186 "yaw": 120,
1187 "x": 512,
1188 "y": 96,
1189 "w": 32,
1190 "h": 48
1191 },
1192 {
1193 "pitch": -30,
1194 "yaw": 150,
1195 "x": 544,
1196 "y": 96,
1197 "w": 32,
1198 "h": 48
1199 },
1200 {
1201 "pitch": -30,
1202 "yaw": 180,
1203 "x": 576,
1204 "y": 96,
1205 "w": 32,
1206 "h": 48
1207 },
1208 {
1209 "pitch": -30,
1210 "yaw": 210,
1211 "x": 608,
1212 "y": 96,
1213 "w": 32,
1214 "h": 48
1215 },
1216 {
1217 "pitch": -30,
1218 "yaw": 240,
1219 "x": 640,
1220 "y": 96,
1221 "w": 32,
1222 "h": 48
1223 },
1224 {
1225 "pitch": -30,
1226 "yaw": 270,
1227 "x": 672,
1228 "y": 96,
1229 "w": 32,
1230 "h": 48
1231 },
1232 {
1233 "pitch": -30,
1234 "yaw": 300,
1235 "x": 704,
1236 "y": 96,
1237 "w": 32,
1238 "h": 48
1239 },
1240 {
1241 "pitch": -30,
1242 "yaw": 330,
1243 "x": 736,
1244 "y": 96,
1245 "w": 32,
1246 "h": 48
1247 },
1248 {
1249 "pitch": 0,
1250 "yaw": 0,
1251 "x": 768,
1252 "y": 96,
1253 "w": 32,
1254 "h": 48
1255 },
1256 {
1257 "pitch": 0,
1258 "yaw": 30,
1259 "x": 800,
1260 "y": 96,
1261 "w": 32,
1262 "h": 48
1263 },
1264 {
1265 "pitch": 0,
1266 "yaw": 60,
1267 "x": 832,
1268 "y": 96,
1269 "w": 32,
1270 "h": 48
1271 },
1272 {
1273 "pitch": 0,
1274 "yaw": 90,
1275 "x": 864,
1276 "y": 96,
1277 "w": 32,
1278 "h": 48
1279 },
1280 {
1281 "pitch": 0,
1282 "yaw": 120,
1283 "x": 896,
1284 "y": 96,
1285 "w": 32,
1286 "h": 48
1287 },
1288 {
1289 "pitch": 0,
1290 "yaw": 150,
1291 "x": 928,
1292 "y": 96,
1293 "w": 32,
1294 "h": 48
1295 },
1296 {
1297 "pitch": 0,
1298 "yaw": 180,
1299 "x": 960,
1300 "y": 96,
1301 "w": 32,
1302 "h": 48
1303 },
1304 {
1305 "pitch": 0,
1306 "yaw": 210,
1307 "x": 992,
1308 "y": 96,
1309 "w": 32,
1310 "h": 48
1311 },
1312 {
1313 "pitch": 0,
1314 "yaw": 240,
1315 "x": 1024,
1316 "y": 96,
1317 "w": 32,
1318 "h": 48
1319 },
1320 {
1321 "pitch": 0,
1322 "yaw": 270,
1323 "x": 1056,
1324 "y": 96,
1325 "w": 32,
1326 "h": 48
1327 },
1328 {
1329 "pitch": 0,
1330 "yaw": 300,
1331 "x": 1088,
1332 "y": 96,
1333 "w": 32,
1334 "h": 48
1335 },
1336 {
1337 "pitch": 0,
1338 "yaw": 330,
1339 "x": 1120,
1340 "y": 96,
1341 "w": 32,
1342 "h": 48
1343 },
1344 {
1345 "pitch": 30,
1346 "yaw": 0,
1347 "x": 1152,
1348 "y": 96,
1349 "w": 32,
1350 "h": 48
1351 },
1352 {
1353 "pitch": 30,
1354 "yaw": 30,
1355 "x": 1184,
1356 "y": 96,
1357 "w": 32,
1358 "h": 48
1359 },
1360 {
1361 "pitch": 30,
1362 "yaw": 60,
1363 "x": 1216,
1364 "y": 96,
1365 "w": 32,
1366 "h": 48
1367 },
1368 {
1369 "pitch": 30,
1370 "yaw": 90,
1371 "x": 1248,
1372 "y": 96,
1373 "w": 32,
1374 "h": 48
1375 },
1376 {
1377 "pitch": 30,
1378 "yaw": 120,
1379 "x": 1280,
1380 "y": 96,
1381 "w": 32,
1382 "h": 48
1383 },
1384 {
1385 "pitch": 30,
1386 "yaw": 150,
1387 "x": 1312,
1388 "y": 96,
1389 "w": 32,
1390 "h": 48
1391 },
1392 {
1393 "pitch": 30,
1394 "yaw": 180,
1395 "x": 1344,
1396 "y": 96,
1397 "w": 32,
1398 "h": 48
1399 },
1400 {
1401 "pitch": 30,
1402 "yaw": 210,
1403 "x": 1376,
1404 "y": 96,
1405 "w": 32,
1406 "h": 48
1407 },
1408 {
1409 "pitch": 30,
1410 "yaw": 240,
1411 "x": 1408,
1412 "y": 96,
1413 "w": 32,
1414 "h": 48
1415 },
1416 {
1417 "pitch": 30,
1418 "yaw": 270,
1419 "x": 1440,
1420 "y": 96,
1421 "w": 32,
1422 "h": 48
1423 },
1424 {
1425 "pitch": 30,
1426 "yaw": 300,
1427 "x": 1472,
1428 "y": 96,
1429 "w": 32,
1430 "h": 48
1431 },
1432 {
1433 "pitch": 30,
1434 "yaw": 330,
1435 "x": 1504,
1436 "y": 96,
1437 "w": 32,
1438 "h": 48
1439 },
1440 {
1441 "pitch": 60,
1442 "yaw": 0,
1443 "x": 1536,
1444 "y": 96,
1445 "w": 32,
1446 "h": 48
1447 },
1448 {
1449 "pitch": 60,
1450 "yaw": 30,
1451 "x": 1568,
1452 "y": 96,
1453 "w": 32,
1454 "h": 48
1455 },
1456 {
1457 "pitch": 60,
1458 "yaw": 60,
1459 "x": 1600,
1460 "y": 96,
1461 "w": 32,
1462 "h": 48
1463 },
1464 {
1465 "pitch": 60,
1466 "yaw": 90,
1467 "x": 1632,
1468 "y": 96,
1469 "w": 32,
1470 "h": 48
1471 },
1472 {
1473 "pitch": 60,
1474 "yaw": 120,
1475 "x": 1664,
1476 "y": 96,
1477 "w": 32,
1478 "h": 48
1479 },
1480 {
1481 "pitch": 60,
1482 "yaw": 150,
1483 "x": 1696,
1484 "y": 96,
1485 "w": 32,
1486 "h": 48
1487 },
1488 {
1489 "pitch": 60,
1490 "yaw": 180,
1491 "x": 1728,
1492 "y": 96,
1493 "w": 32,
1494 "h": 48
1495 },
1496 {
1497 "pitch": 60,
1498 "yaw": 210,
1499 "x": 1760,
1500 "y": 96,
1501 "w": 32,
1502 "h": 48
1503 },
1504 {
1505 "pitch": 60,
1506 "yaw": 240,
1507 "x": 1792,
1508 "y": 96,
1509 "w": 32,
1510 "h": 48
1511 },
1512 {
1513 "pitch": 60,
1514 "yaw": 270,
1515 "x": 1824,
1516 "y": 96,
1517 "w": 32,
1518 "h": 48
1519 },
1520 {
1521 "pitch": 60,
1522 "yaw": 300,
1523 "x": 1856,
1524 "y": 96,
1525 "w": 32,
1526 "h": 48
1527 },
1528 {
1529 "pitch": 60,
1530 "yaw": 330,
1531 "x": 1888,
1532 "y": 96,
1533 "w": 32,
1534 "h": 48
1535 }
1536 ]
1537 },
1538 {
1539 "index": 3,
1540 "views": [
1541 {
1542 "pitch": -60,
1543 "yaw": 0,
1544 "x": 0,
1545 "y": 144,
1546 "w": 32,
1547 "h": 48
1548 },
1549 {
1550 "pitch": -60,
1551 "yaw": 30,
1552 "x": 32,
1553 "y": 144,
1554 "w": 32,
1555 "h": 48
1556 },
1557 {
1558 "pitch": -60,
1559 "yaw": 60,
1560 "x": 64,
1561 "y": 144,
1562 "w": 32,
1563 "h": 48
1564 },
1565 {
1566 "pitch": -60,
1567 "yaw": 90,
1568 "x": 96,
1569 "y": 144,
1570 "w": 32,
1571 "h": 48
1572 },
1573 {
1574 "pitch": -60,
1575 "yaw": 120,
1576 "x": 128,
1577 "y": 144,
1578 "w": 32,
1579 "h": 48
1580 },
1581 {
1582 "pitch": -60,
1583 "yaw": 150,
1584 "x": 160,
1585 "y": 144,
1586 "w": 32,
1587 "h": 48
1588 },
1589 {
1590 "pitch": -60,
1591 "yaw": 180,
1592 "x": 192,
1593 "y": 144,
1594 "w": 32,
1595 "h": 48
1596 },
1597 {
1598 "pitch": -60,
1599 "yaw": 210,
1600 "x": 224,
1601 "y": 144,
1602 "w": 32,
1603 "h": 48
1604 },
1605 {
1606 "pitch": -60,
1607 "yaw": 240,
1608 "x": 256,
1609 "y": 144,
1610 "w": 32,
1611 "h": 48
1612 },
1613 {
1614 "pitch": -60,
1615 "yaw": 270,
1616 "x": 288,
1617 "y": 144,
1618 "w": 32,
1619 "h": 48
1620 },
1621 {
1622 "pitch": -60,
1623 "yaw": 300,
1624 "x": 320,
1625 "y": 144,
1626 "w": 32,
1627 "h": 48
1628 },
1629 {
1630 "pitch": -60,
1631 "yaw": 330,
1632 "x": 352,
1633 "y": 144,
1634 "w": 32,
1635 "h": 48
1636 },
1637 {
1638 "pitch": -30,
1639 "yaw": 0,
1640 "x": 384,
1641 "y": 144,
1642 "w": 32,
1643 "h": 48
1644 },
1645 {
1646 "pitch": -30,
1647 "yaw": 30,
1648 "x": 416,
1649 "y": 144,
1650 "w": 32,
1651 "h": 48
1652 },
1653 {
1654 "pitch": -30,
1655 "yaw": 60,
1656 "x": 448,
1657 "y": 144,
1658 "w": 32,
1659 "h": 48
1660 },
1661 {
1662 "pitch": -30,
1663 "yaw": 90,
1664 "x": 480,
1665 "y": 144,
1666 "w": 32,
1667 "h": 48
1668 },
1669 {
1670 "pitch": -30,
1671 "yaw": 120,
1672 "x": 512,
1673 "y": 144,
1674 "w": 32,
1675 "h": 48
1676 },
1677 {
1678 "pitch": -30,
1679 "yaw": 150,
1680 "x": 544,
1681 "y": 144,
1682 "w": 32,
1683 "h": 48
1684 },
1685 {
1686 "pitch": -30,
1687 "yaw": 180,
1688 "x": 576,
1689 "y": 144,
1690 "w": 32,
1691 "h": 48
1692 },
1693 {
1694 "pitch": -30,
1695 "yaw": 210,
1696 "x": 608,
1697 "y": 144,
1698 "w": 32,
1699 "h": 48
1700 },
1701 {
1702 "pitch": -30,
1703 "yaw": 240,
1704 "x": 640,
1705 "y": 144,
1706 "w": 32,
1707 "h": 48
1708 },
1709 {
1710 "pitch": -30,
1711 "yaw": 270,
1712 "x": 672,
1713 "y": 144,
1714 "w": 32,
1715 "h": 48
1716 },
1717 {
1718 "pitch": -30,
1719 "yaw": 300,
1720 "x": 704,
1721 "y": 144,
1722 "w": 32,
1723 "h": 48
1724 },
1725 {
1726 "pitch": -30,
1727 "yaw": 330,
1728 "x": 736,
1729 "y": 144,
1730 "w": 32,
1731 "h": 48
1732 },
1733 {
1734 "pitch": 0,
1735 "yaw": 0,
1736 "x": 768,
1737 "y": 144,
1738 "w": 32,
1739 "h": 48
1740 },
1741 {
1742 "pitch": 0,
1743 "yaw": 30,
1744 "x": 800,
1745 "y": 144,
1746 "w": 32,
1747 "h": 48
1748 },
1749 {
1750 "pitch": 0,
1751 "yaw": 60,
1752 "x": 832,
1753 "y": 144,
1754 "w": 32,
1755 "h": 48
1756 },
1757 {
1758 "pitch": 0,
1759 "yaw": 90,
1760 "x": 864,
1761 "y": 144,
1762 "w": 32,
1763 "h": 48
1764 },
1765 {
1766 "pitch": 0,
1767 "yaw": 120,
1768 "x": 896,
1769 "y": 144,
1770 "w": 32,
1771 "h": 48
1772 },
1773 {
1774 "pitch": 0,
1775 "yaw": 150,
1776 "x": 928,
1777 "y": 144,
1778 "w": 32,
1779 "h": 48
1780 },
1781 {
1782 "pitch": 0,
1783 "yaw": 180,
1784 "x": 960,
1785 "y": 144,
1786 "w": 32,
1787 "h": 48
1788 },
1789 {
1790 "pitch": 0,
1791 "yaw": 210,
1792 "x": 992,
1793 "y": 144,
1794 "w": 32,
1795 "h": 48
1796 },
1797 {
1798 "pitch": 0,
1799 "yaw": 240,
1800 "x": 1024,
1801 "y": 144,
1802 "w": 32,
1803 "h": 48
1804 },
1805 {
1806 "pitch": 0,
1807 "yaw": 270,
1808 "x": 1056,
1809 "y": 144,
1810 "w": 32,
1811 "h": 48
1812 },
1813 {
1814 "pitch": 0,
1815 "yaw": 300,
1816 "x": 1088,
1817 "y": 144,
1818 "w": 32,
1819 "h": 48
1820 },
1821 {
1822 "pitch": 0,
1823 "yaw": 330,
1824 "x": 1120,
1825 "y": 144,
1826 "w": 32,
1827 "h": 48
1828 },
1829 {
1830 "pitch": 30,
1831 "yaw": 0,
1832 "x": 1152,
1833 "y": 144,
1834 "w": 32,
1835 "h": 48
1836 },
1837 {
1838 "pitch": 30,
1839 "yaw": 30,
1840 "x": 1184,
1841 "y": 144,
1842 "w": 32,
1843 "h": 48
1844 },
1845 {
1846 "pitch": 30,
1847 "yaw": 60,
1848 "x": 1216,
1849 "y": 144,
1850 "w": 32,
1851 "h": 48
1852 },
1853 {
1854 "pitch": 30,
1855 "yaw": 90,
1856 "x": 1248,
1857 "y": 144,
1858 "w": 32,
1859 "h": 48
1860 },
1861 {
1862 "pitch": 30,
1863 "yaw": 120,
1864 "x": 1280,
1865 "y": 144,
1866 "w": 32,
1867 "h": 48
1868 },
1869 {
1870 "pitch": 30,
1871 "yaw": 150,
1872 "x": 1312,
1873 "y": 144,
1874 "w": 32,
1875 "h": 48
1876 },
1877 {
1878 "pitch": 30,
1879 "yaw": 180,
1880 "x": 1344,
1881 "y": 144,
1882 "w": 32,
1883 "h": 48
1884 },
1885 {
1886 "pitch": 30,
1887 "yaw": 210,
1888 "x": 1376,
1889 "y": 144,
1890 "w": 32,
1891 "h": 48
1892 },
1893 {
1894 "pitch": 30,
1895 "yaw": 240,
1896 "x": 1408,
1897 "y": 144,
1898 "w": 32,
1899 "h": 48
1900 },
1901 {
1902 "pitch": 30,
1903 "yaw": 270,
1904 "x": 1440,
1905 "y": 144,
1906 "w": 32,
1907 "h": 48
1908 },
1909 {
1910 "pitch": 30,
1911 "yaw": 300,
1912 "x": 1472,
1913 "y": 144,
1914 "w": 32,
1915 "h": 48
1916 },
1917 {
1918 "pitch": 30,
1919 "yaw": 330,
1920 "x": 1504,
1921 "y": 144,
1922 "w": 32,
1923 "h": 48
1924 },
1925 {
1926 "pitch": 60,
1927 "yaw": 0,
1928 "x": 1536,
1929 "y": 144,
1930 "w": 32,
1931 "h": 48
1932 },
1933 {
1934 "pitch": 60,
1935 "yaw": 30,
1936 "x": 1568,
1937 "y": 144,
1938 "w": 32,
1939 "h": 48
1940 },
1941 {
1942 "pitch": 60,
1943 "yaw": 60,
1944 "x": 1600,
1945 "y": 144,
1946 "w": 32,
1947 "h": 48
1948 },
1949 {
1950 "pitch": 60,
1951 "yaw": 90,
1952 "x": 1632,
1953 "y": 144,
1954 "w": 32,
1955 "h": 48
1956 },
1957 {
1958 "pitch": 60,
1959 "yaw": 120,
1960 "x": 1664,
1961 "y": 144,
1962 "w": 32,
1963 "h": 48
1964 },
1965 {
1966 "pitch": 60,
1967 "yaw": 150,
1968 "x": 1696,
1969 "y": 144,
1970 "w": 32,
1971 "h": 48
1972 },
1973 {
1974 "pitch": 60,
1975 "yaw": 180,
1976 "x": 1728,
1977 "y": 144,
1978 "w": 32,
1979 "h": 48
1980 },
1981 {
1982 "pitch": 60,
1983 "yaw": 210,
1984 "x": 1760,
1985 "y": 144,
1986 "w": 32,
1987 "h": 48
1988 },
1989 {
1990 "pitch": 60,
1991 "yaw": 240,
1992 "x": 1792,
1993 "y": 144,
1994 "w": 32,
1995 "h": 48
1996 },
1997 {
1998 "pitch": 60,
1999 "yaw": 270,
2000 "x": 1824,
2001 "y": 144,
2002 "w": 32,
2003 "h": 48
2004 },
2005 {
2006 "pitch": 60,
2007 "yaw": 300,
2008 "x": 1856,
2009 "y": 144,
2010 "w": 32,
2011 "h": 48
2012 },
2013 {
2014 "pitch": 60,
2015 "yaw": 330,
2016 "x": 1888,
2017 "y": 144,
2018 "w": 32,
2019 "h": 48
2020 }
2021 ]
2022 }
2023 ]
2024 },
2025 {
2026 "source_index": 1,
2027 "name": "attack",
2028 "token": "clip001-attack",
2029 "frame_count": 4,
2030 "duration": 0.8,
2031 "frames": [
2032 {
2033 "index": 0,
2034 "views": [
2035 {
2036 "pitch": -60,
2037 "yaw": 0,
2038 "x": 0,
2039 "y": 192,
2040 "w": 32,
2041 "h": 48
2042 },
2043 {
2044 "pitch": -60,
2045 "yaw": 30,
2046 "x": 32,
2047 "y": 192,
2048 "w": 32,
2049 "h": 48
2050 },
2051 {
2052 "pitch": -60,
2053 "yaw": 60,
2054 "x": 64,
2055 "y": 192,
2056 "w": 32,
2057 "h": 48
2058 },
2059 {
2060 "pitch": -60,
2061 "yaw": 90,
2062 "x": 96,
2063 "y": 192,
2064 "w": 32,
2065 "h": 48
2066 },
2067 {
2068 "pitch": -60,
2069 "yaw": 120,
2070 "x": 128,
2071 "y": 192,
2072 "w": 32,
2073 "h": 48
2074 },
2075 {
2076 "pitch": -60,
2077 "yaw": 150,
2078 "x": 160,
2079 "y": 192,
2080 "w": 32,
2081 "h": 48
2082 },
2083 {
2084 "pitch": -60,
2085 "yaw": 180,
2086 "x": 192,
2087 "y": 192,
2088 "w": 32,
2089 "h": 48
2090 },
2091 {
2092 "pitch": -60,
2093 "yaw": 210,
2094 "x": 224,
2095 "y": 192,
2096 "w": 32,
2097 "h": 48
2098 },
2099 {
2100 "pitch": -60,
2101 "yaw": 240,
2102 "x": 256,
2103 "y": 192,
2104 "w": 32,
2105 "h": 48
2106 },
2107 {
2108 "pitch": -60,
2109 "yaw": 270,
2110 "x": 288,
2111 "y": 192,
2112 "w": 32,
2113 "h": 48
2114 },
2115 {
2116 "pitch": -60,
2117 "yaw": 300,
2118 "x": 320,
2119 "y": 192,
2120 "w": 32,
2121 "h": 48
2122 },
2123 {
2124 "pitch": -60,
2125 "yaw": 330,
2126 "x": 352,
2127 "y": 192,
2128 "w": 32,
2129 "h": 48
2130 },
2131 {
2132 "pitch": -30,
2133 "yaw": 0,
2134 "x": 384,
2135 "y": 192,
2136 "w": 32,
2137 "h": 48
2138 },
2139 {
2140 "pitch": -30,
2141 "yaw": 30,
2142 "x": 416,
2143 "y": 192,
2144 "w": 32,
2145 "h": 48
2146 },
2147 {
2148 "pitch": -30,
2149 "yaw": 60,
2150 "x": 448,
2151 "y": 192,
2152 "w": 32,
2153 "h": 48
2154 },
2155 {
2156 "pitch": -30,
2157 "yaw": 90,
2158 "x": 480,
2159 "y": 192,
2160 "w": 32,
2161 "h": 48
2162 },
2163 {
2164 "pitch": -30,
2165 "yaw": 120,
2166 "x": 512,
2167 "y": 192,
2168 "w": 32,
2169 "h": 48
2170 },
2171 {
2172 "pitch": -30,
2173 "yaw": 150,
2174 "x": 544,
2175 "y": 192,
2176 "w": 32,
2177 "h": 48
2178 },
2179 {
2180 "pitch": -30,
2181 "yaw": 180,
2182 "x": 576,
2183 "y": 192,
2184 "w": 32,
2185 "h": 48
2186 },
2187 {
2188 "pitch": -30,
2189 "yaw": 210,
2190 "x": 608,
2191 "y": 192,
2192 "w": 32,
2193 "h": 48
2194 },
2195 {
2196 "pitch": -30,
2197 "yaw": 240,
2198 "x": 640,
2199 "y": 192,
2200 "w": 32,
2201 "h": 48
2202 },
2203 {
2204 "pitch": -30,
2205 "yaw": 270,
2206 "x": 672,
2207 "y": 192,
2208 "w": 32,
2209 "h": 48
2210 },
2211 {
2212 "pitch": -30,
2213 "yaw": 300,
2214 "x": 704,
2215 "y": 192,
2216 "w": 32,
2217 "h": 48
2218 },
2219 {
2220 "pitch": -30,
2221 "yaw": 330,
2222 "x": 736,
2223 "y": 192,
2224 "w": 32,
2225 "h": 48
2226 },
2227 {
2228 "pitch": 0,
2229 "yaw": 0,
2230 "x": 768,
2231 "y": 192,
2232 "w": 32,
2233 "h": 48
2234 },
2235 {
2236 "pitch": 0,
2237 "yaw": 30,
2238 "x": 800,
2239 "y": 192,
2240 "w": 32,
2241 "h": 48
2242 },
2243 {
2244 "pitch": 0,
2245 "yaw": 60,
2246 "x": 832,
2247 "y": 192,
2248 "w": 32,
2249 "h": 48
2250 },
2251 {
2252 "pitch": 0,
2253 "yaw": 90,
2254 "x": 864,
2255 "y": 192,
2256 "w": 32,
2257 "h": 48
2258 },
2259 {
2260 "pitch": 0,
2261 "yaw": 120,
2262 "x": 896,
2263 "y": 192,
2264 "w": 32,
2265 "h": 48
2266 },
2267 {
2268 "pitch": 0,
2269 "yaw": 150,
2270 "x": 928,
2271 "y": 192,
2272 "w": 32,
2273 "h": 48
2274 },
2275 {
2276 "pitch": 0,
2277 "yaw": 180,
2278 "x": 960,
2279 "y": 192,
2280 "w": 32,
2281 "h": 48
2282 },
2283 {
2284 "pitch": 0,
2285 "yaw": 210,
2286 "x": 992,
2287 "y": 192,
2288 "w": 32,
2289 "h": 48
2290 },
2291 {
2292 "pitch": 0,
2293 "yaw": 240,
2294 "x": 1024,
2295 "y": 192,
2296 "w": 32,
2297 "h": 48
2298 },
2299 {
2300 "pitch": 0,
2301 "yaw": 270,
2302 "x": 1056,
2303 "y": 192,
2304 "w": 32,
2305 "h": 48
2306 },
2307 {
2308 "pitch": 0,
2309 "yaw": 300,
2310 "x": 1088,
2311 "y": 192,
2312 "w": 32,
2313 "h": 48
2314 },
2315 {
2316 "pitch": 0,
2317 "yaw": 330,
2318 "x": 1120,
2319 "y": 192,
2320 "w": 32,
2321 "h": 48
2322 },
2323 {
2324 "pitch": 30,
2325 "yaw": 0,
2326 "x": 1152,
2327 "y": 192,
2328 "w": 32,
2329 "h": 48
2330 },
2331 {
2332 "pitch": 30,
2333 "yaw": 30,
2334 "x": 1184,
2335 "y": 192,
2336 "w": 32,
2337 "h": 48
2338 },
2339 {
2340 "pitch": 30,
2341 "yaw": 60,
2342 "x": 1216,
2343 "y": 192,
2344 "w": 32,
2345 "h": 48
2346 },
2347 {
2348 "pitch": 30,
2349 "yaw": 90,
2350 "x": 1248,
2351 "y": 192,
2352 "w": 32,
2353 "h": 48
2354 },
2355 {
2356 "pitch": 30,
2357 "yaw": 120,
2358 "x": 1280,
2359 "y": 192,
2360 "w": 32,
2361 "h": 48
2362 },
2363 {
2364 "pitch": 30,
2365 "yaw": 150,
2366 "x": 1312,
2367 "y": 192,
2368 "w": 32,
2369 "h": 48
2370 },
2371 {
2372 "pitch": 30,
2373 "yaw": 180,
2374 "x": 1344,
2375 "y": 192,
2376 "w": 32,
2377 "h": 48
2378 },
2379 {
2380 "pitch": 30,
2381 "yaw": 210,
2382 "x": 1376,
2383 "y": 192,
2384 "w": 32,
2385 "h": 48
2386 },
2387 {
2388 "pitch": 30,
2389 "yaw": 240,
2390 "x": 1408,
2391 "y": 192,
2392 "w": 32,
2393 "h": 48
2394 },
2395 {
2396 "pitch": 30,
2397 "yaw": 270,
2398 "x": 1440,
2399 "y": 192,
2400 "w": 32,
2401 "h": 48
2402 },
2403 {
2404 "pitch": 30,
2405 "yaw": 300,
2406 "x": 1472,
2407 "y": 192,
2408 "w": 32,
2409 "h": 48
2410 },
2411 {
2412 "pitch": 30,
2413 "yaw": 330,
2414 "x": 1504,
2415 "y": 192,
2416 "w": 32,
2417 "h": 48
2418 },
2419 {
2420 "pitch": 60,
2421 "yaw": 0,
2422 "x": 1536,
2423 "y": 192,
2424 "w": 32,
2425 "h": 48
2426 },
2427 {
2428 "pitch": 60,
2429 "yaw": 30,
2430 "x": 1568,
2431 "y": 192,
2432 "w": 32,
2433 "h": 48
2434 },
2435 {
2436 "pitch": 60,
2437 "yaw": 60,
2438 "x": 1600,
2439 "y": 192,
2440 "w": 32,
2441 "h": 48
2442 },
2443 {
2444 "pitch": 60,
2445 "yaw": 90,
2446 "x": 1632,
2447 "y": 192,
2448 "w": 32,
2449 "h": 48
2450 },
2451 {
2452 "pitch": 60,
2453 "yaw": 120,
2454 "x": 1664,
2455 "y": 192,
2456 "w": 32,
2457 "h": 48
2458 },
2459 {
2460 "pitch": 60,
2461 "yaw": 150,
2462 "x": 1696,
2463 "y": 192,
2464 "w": 32,
2465 "h": 48
2466 },
2467 {
2468 "pitch": 60,
2469 "yaw": 180,
2470 "x": 1728,
2471 "y": 192,
2472 "w": 32,
2473 "h": 48
2474 },
2475 {
2476 "pitch": 60,
2477 "yaw": 210,
2478 "x": 1760,
2479 "y": 192,
2480 "w": 32,
2481 "h": 48
2482 },
2483 {
2484 "pitch": 60,
2485 "yaw": 240,
2486 "x": 1792,
2487 "y": 192,
2488 "w": 32,
2489 "h": 48
2490 },
2491 {
2492 "pitch": 60,
2493 "yaw": 270,
2494 "x": 1824,
2495 "y": 192,
2496 "w": 32,
2497 "h": 48
2498 },
2499 {
2500 "pitch": 60,
2501 "yaw": 300,
2502 "x": 1856,
2503 "y": 192,
2504 "w": 32,
2505 "h": 48
2506 },
2507 {
2508 "pitch": 60,
2509 "yaw": 330,
2510 "x": 1888,
2511 "y": 192,
2512 "w": 32,
2513 "h": 48
2514 }
2515 ]
2516 },
2517 {
2518 "index": 1,
2519 "views": [
2520 {
2521 "pitch": -60,
2522 "yaw": 0,
2523 "x": 0,
2524 "y": 240,
2525 "w": 32,
2526 "h": 48
2527 },
2528 {
2529 "pitch": -60,
2530 "yaw": 30,
2531 "x": 32,
2532 "y": 240,
2533 "w": 32,
2534 "h": 48
2535 },
2536 {
2537 "pitch": -60,
2538 "yaw": 60,
2539 "x": 64,
2540 "y": 240,
2541 "w": 32,
2542 "h": 48
2543 },
2544 {
2545 "pitch": -60,
2546 "yaw": 90,
2547 "x": 96,
2548 "y": 240,
2549 "w": 32,
2550 "h": 48
2551 },
2552 {
2553 "pitch": -60,
2554 "yaw": 120,
2555 "x": 128,
2556 "y": 240,
2557 "w": 32,
2558 "h": 48
2559 },
2560 {
2561 "pitch": -60,
2562 "yaw": 150,
2563 "x": 160,
2564 "y": 240,
2565 "w": 32,
2566 "h": 48
2567 },
2568 {
2569 "pitch": -60,
2570 "yaw": 180,
2571 "x": 192,
2572 "y": 240,
2573 "w": 32,
2574 "h": 48
2575 },
2576 {
2577 "pitch": -60,
2578 "yaw": 210,
2579 "x": 224,
2580 "y": 240,
2581 "w": 32,
2582 "h": 48
2583 },
2584 {
2585 "pitch": -60,
2586 "yaw": 240,
2587 "x": 256,
2588 "y": 240,
2589 "w": 32,
2590 "h": 48
2591 },
2592 {
2593 "pitch": -60,
2594 "yaw": 270,
2595 "x": 288,
2596 "y": 240,
2597 "w": 32,
2598 "h": 48
2599 },
2600 {
2601 "pitch": -60,
2602 "yaw": 300,
2603 "x": 320,
2604 "y": 240,
2605 "w": 32,
2606 "h": 48
2607 },
2608 {
2609 "pitch": -60,
2610 "yaw": 330,
2611 "x": 352,
2612 "y": 240,
2613 "w": 32,
2614 "h": 48
2615 },
2616 {
2617 "pitch": -30,
2618 "yaw": 0,
2619 "x": 384,
2620 "y": 240,
2621 "w": 32,
2622 "h": 48
2623 },
2624 {
2625 "pitch": -30,
2626 "yaw": 30,
2627 "x": 416,
2628 "y": 240,
2629 "w": 32,
2630 "h": 48
2631 },
2632 {
2633 "pitch": -30,
2634 "yaw": 60,
2635 "x": 448,
2636 "y": 240,
2637 "w": 32,
2638 "h": 48
2639 },
2640 {
2641 "pitch": -30,
2642 "yaw": 90,
2643 "x": 480,
2644 "y": 240,
2645 "w": 32,
2646 "h": 48
2647 },
2648 {
2649 "pitch": -30,
2650 "yaw": 120,
2651 "x": 512,
2652 "y": 240,
2653 "w": 32,
2654 "h": 48
2655 },
2656 {
2657 "pitch": -30,
2658 "yaw": 150,
2659 "x": 544,
2660 "y": 240,
2661 "w": 32,
2662 "h": 48
2663 },
2664 {
2665 "pitch": -30,
2666 "yaw": 180,
2667 "x": 576,
2668 "y": 240,
2669 "w": 32,
2670 "h": 48
2671 },
2672 {
2673 "pitch": -30,
2674 "yaw": 210,
2675 "x": 608,
2676 "y": 240,
2677 "w": 32,
2678 "h": 48
2679 },
2680 {
2681 "pitch": -30,
2682 "yaw": 240,
2683 "x": 640,
2684 "y": 240,
2685 "w": 32,
2686 "h": 48
2687 },
2688 {
2689 "pitch": -30,
2690 "yaw": 270,
2691 "x": 672,
2692 "y": 240,
2693 "w": 32,
2694 "h": 48
2695 },
2696 {
2697 "pitch": -30,
2698 "yaw": 300,
2699 "x": 704,
2700 "y": 240,
2701 "w": 32,
2702 "h": 48
2703 },
2704 {
2705 "pitch": -30,
2706 "yaw": 330,
2707 "x": 736,
2708 "y": 240,
2709 "w": 32,
2710 "h": 48
2711 },
2712 {
2713 "pitch": 0,
2714 "yaw": 0,
2715 "x": 768,
2716 "y": 240,
2717 "w": 32,
2718 "h": 48
2719 },
2720 {
2721 "pitch": 0,
2722 "yaw": 30,
2723 "x": 800,
2724 "y": 240,
2725 "w": 32,
2726 "h": 48
2727 },
2728 {
2729 "pitch": 0,
2730 "yaw": 60,
2731 "x": 832,
2732 "y": 240,
2733 "w": 32,
2734 "h": 48
2735 },
2736 {
2737 "pitch": 0,
2738 "yaw": 90,
2739 "x": 864,
2740 "y": 240,
2741 "w": 32,
2742 "h": 48
2743 },
2744 {
2745 "pitch": 0,
2746 "yaw": 120,
2747 "x": 896,
2748 "y": 240,
2749 "w": 32,
2750 "h": 48
2751 },
2752 {
2753 "pitch": 0,
2754 "yaw": 150,
2755 "x": 928,
2756 "y": 240,
2757 "w": 32,
2758 "h": 48
2759 },
2760 {
2761 "pitch": 0,
2762 "yaw": 180,
2763 "x": 960,
2764 "y": 240,
2765 "w": 32,
2766 "h": 48
2767 },
2768 {
2769 "pitch": 0,
2770 "yaw": 210,
2771 "x": 992,
2772 "y": 240,
2773 "w": 32,
2774 "h": 48
2775 },
2776 {
2777 "pitch": 0,
2778 "yaw": 240,
2779 "x": 1024,
2780 "y": 240,
2781 "w": 32,
2782 "h": 48
2783 },
2784 {
2785 "pitch": 0,
2786 "yaw": 270,
2787 "x": 1056,
2788 "y": 240,
2789 "w": 32,
2790 "h": 48
2791 },
2792 {
2793 "pitch": 0,
2794 "yaw": 300,
2795 "x": 1088,
2796 "y": 240,
2797 "w": 32,
2798 "h": 48
2799 },
2800 {
2801 "pitch": 0,
2802 "yaw": 330,
2803 "x": 1120,
2804 "y": 240,
2805 "w": 32,
2806 "h": 48
2807 },
2808 {
2809 "pitch": 30,
2810 "yaw": 0,
2811 "x": 1152,
2812 "y": 240,
2813 "w": 32,
2814 "h": 48
2815 },
2816 {
2817 "pitch": 30,
2818 "yaw": 30,
2819 "x": 1184,
2820 "y": 240,
2821 "w": 32,
2822 "h": 48
2823 },
2824 {
2825 "pitch": 30,
2826 "yaw": 60,
2827 "x": 1216,
2828 "y": 240,
2829 "w": 32,
2830 "h": 48
2831 },
2832 {
2833 "pitch": 30,
2834 "yaw": 90,
2835 "x": 1248,
2836 "y": 240,
2837 "w": 32,
2838 "h": 48
2839 },
2840 {
2841 "pitch": 30,
2842 "yaw": 120,
2843 "x": 1280,
2844 "y": 240,
2845 "w": 32,
2846 "h": 48
2847 },
2848 {
2849 "pitch": 30,
2850 "yaw": 150,
2851 "x": 1312,
2852 "y": 240,
2853 "w": 32,
2854 "h": 48
2855 },
2856 {
2857 "pitch": 30,
2858 "yaw": 180,
2859 "x": 1344,
2860 "y": 240,
2861 "w": 32,
2862 "h": 48
2863 },
2864 {
2865 "pitch": 30,
2866 "yaw": 210,
2867 "x": 1376,
2868 "y": 240,
2869 "w": 32,
2870 "h": 48
2871 },
2872 {
2873 "pitch": 30,
2874 "yaw": 240,
2875 "x": 1408,
2876 "y": 240,
2877 "w": 32,
2878 "h": 48
2879 },
2880 {
2881 "pitch": 30,
2882 "yaw": 270,
2883 "x": 1440,
2884 "y": 240,
2885 "w": 32,
2886 "h": 48
2887 },
2888 {
2889 "pitch": 30,
2890 "yaw": 300,
2891 "x": 1472,
2892 "y": 240,
2893 "w": 32,
2894 "h": 48
2895 },
2896 {
2897 "pitch": 30,
2898 "yaw": 330,
2899 "x": 1504,
2900 "y": 240,
2901 "w": 32,
2902 "h": 48
2903 },
2904 {
2905 "pitch": 60,
2906 "yaw": 0,
2907 "x": 1536,
2908 "y": 240,
2909 "w": 32,
2910 "h": 48
2911 },
2912 {
2913 "pitch": 60,
2914 "yaw": 30,
2915 "x": 1568,
2916 "y": 240,
2917 "w": 32,
2918 "h": 48
2919 },
2920 {
2921 "pitch": 60,
2922 "yaw": 60,
2923 "x": 1600,
2924 "y": 240,
2925 "w": 32,
2926 "h": 48
2927 },
2928 {
2929 "pitch": 60,
2930 "yaw": 90,
2931 "x": 1632,
2932 "y": 240,
2933 "w": 32,
2934 "h": 48
2935 },
2936 {
2937 "pitch": 60,
2938 "yaw": 120,
2939 "x": 1664,
2940 "y": 240,
2941 "w": 32,
2942 "h": 48
2943 },
2944 {
2945 "pitch": 60,
2946 "yaw": 150,
2947 "x": 1696,
2948 "y": 240,
2949 "w": 32,
2950 "h": 48
2951 },
2952 {
2953 "pitch": 60,
2954 "yaw": 180,
2955 "x": 1728,
2956 "y": 240,
2957 "w": 32,
2958 "h": 48
2959 },
2960 {
2961 "pitch": 60,
2962 "yaw": 210,
2963 "x": 1760,
2964 "y": 240,
2965 "w": 32,
2966 "h": 48
2967 },
2968 {
2969 "pitch": 60,
2970 "yaw": 240,
2971 "x": 1792,
2972 "y": 240,
2973 "w": 32,
2974 "h": 48
2975 },
2976 {
2977 "pitch": 60,
2978 "yaw": 270,
2979 "x": 1824,
2980 "y": 240,
2981 "w": 32,
2982 "h": 48
2983 },
2984 {
2985 "pitch": 60,
2986 "yaw": 300,
2987 "x": 1856,
2988 "y": 240,
2989 "w": 32,
2990 "h": 48
2991 },
2992 {
2993 "pitch": 60,
2994 "yaw": 330,
2995 "x": 1888,
2996 "y": 240,
2997 "w": 32,
2998 "h": 48
2999 }
3000 ]
3001 },
3002 {
3003 "index": 2,
3004 "views": [
3005 {
3006 "pitch": -60,
3007 "yaw": 0,
3008 "x": 0,
3009 "y": 288,
3010 "w": 32,
3011 "h": 48
3012 },
3013 {
3014 "pitch": -60,
3015 "yaw": 30,
3016 "x": 32,
3017 "y": 288,
3018 "w": 32,
3019 "h": 48
3020 },
3021 {
3022 "pitch": -60,
3023 "yaw": 60,
3024 "x": 64,
3025 "y": 288,
3026 "w": 32,
3027 "h": 48
3028 },
3029 {
3030 "pitch": -60,
3031 "yaw": 90,
3032 "x": 96,
3033 "y": 288,
3034 "w": 32,
3035 "h": 48
3036 },
3037 {
3038 "pitch": -60,
3039 "yaw": 120,
3040 "x": 128,
3041 "y": 288,
3042 "w": 32,
3043 "h": 48
3044 },
3045 {
3046 "pitch": -60,
3047 "yaw": 150,
3048 "x": 160,
3049 "y": 288,
3050 "w": 32,
3051 "h": 48
3052 },
3053 {
3054 "pitch": -60,
3055 "yaw": 180,
3056 "x": 192,
3057 "y": 288,
3058 "w": 32,
3059 "h": 48
3060 },
3061 {
3062 "pitch": -60,
3063 "yaw": 210,
3064 "x": 224,
3065 "y": 288,
3066 "w": 32,
3067 "h": 48
3068 },
3069 {
3070 "pitch": -60,
3071 "yaw": 240,
3072 "x": 256,
3073 "y": 288,
3074 "w": 32,
3075 "h": 48
3076 },
3077 {
3078 "pitch": -60,
3079 "yaw": 270,
3080 "x": 288,
3081 "y": 288,
3082 "w": 32,
3083 "h": 48
3084 },
3085 {
3086 "pitch": -60,
3087 "yaw": 300,
3088 "x": 320,
3089 "y": 288,
3090 "w": 32,
3091 "h": 48
3092 },
3093 {
3094 "pitch": -60,
3095 "yaw": 330,
3096 "x": 352,
3097 "y": 288,
3098 "w": 32,
3099 "h": 48
3100 },
3101 {
3102 "pitch": -30,
3103 "yaw": 0,
3104 "x": 384,
3105 "y": 288,
3106 "w": 32,
3107 "h": 48
3108 },
3109 {
3110 "pitch": -30,
3111 "yaw": 30,
3112 "x": 416,
3113 "y": 288,
3114 "w": 32,
3115 "h": 48
3116 },
3117 {
3118 "pitch": -30,
3119 "yaw": 60,
3120 "x": 448,
3121 "y": 288,
3122 "w": 32,
3123 "h": 48
3124 },
3125 {
3126 "pitch": -30,
3127 "yaw": 90,
3128 "x": 480,
3129 "y": 288,
3130 "w": 32,
3131 "h": 48
3132 },
3133 {
3134 "pitch": -30,
3135 "yaw": 120,
3136 "x": 512,
3137 "y": 288,
3138 "w": 32,
3139 "h": 48
3140 },
3141 {
3142 "pitch": -30,
3143 "yaw": 150,
3144 "x": 544,
3145 "y": 288,
3146 "w": 32,
3147 "h": 48
3148 },
3149 {
3150 "pitch": -30,
3151 "yaw": 180,
3152 "x": 576,
3153 "y": 288,
3154 "w": 32,
3155 "h": 48
3156 },
3157 {
3158 "pitch": -30,
3159 "yaw": 210,
3160 "x": 608,
3161 "y": 288,
3162 "w": 32,
3163 "h": 48
3164 },
3165 {
3166 "pitch": -30,
3167 "yaw": 240,
3168 "x": 640,
3169 "y": 288,
3170 "w": 32,
3171 "h": 48
3172 },
3173 {
3174 "pitch": -30,
3175 "yaw": 270,
3176 "x": 672,
3177 "y": 288,
3178 "w": 32,
3179 "h": 48
3180 },
3181 {
3182 "pitch": -30,
3183 "yaw": 300,
3184 "x": 704,
3185 "y": 288,
3186 "w": 32,
3187 "h": 48
3188 },
3189 {
3190 "pitch": -30,
3191 "yaw": 330,
3192 "x": 736,
3193 "y": 288,
3194 "w": 32,
3195 "h": 48
3196 },
3197 {
3198 "pitch": 0,
3199 "yaw": 0,
3200 "x": 768,
3201 "y": 288,
3202 "w": 32,
3203 "h": 48
3204 },
3205 {
3206 "pitch": 0,
3207 "yaw": 30,
3208 "x": 800,
3209 "y": 288,
3210 "w": 32,
3211 "h": 48
3212 },
3213 {
3214 "pitch": 0,
3215 "yaw": 60,
3216 "x": 832,
3217 "y": 288,
3218 "w": 32,
3219 "h": 48
3220 },
3221 {
3222 "pitch": 0,
3223 "yaw": 90,
3224 "x": 864,
3225 "y": 288,
3226 "w": 32,
3227 "h": 48
3228 },
3229 {
3230 "pitch": 0,
3231 "yaw": 120,
3232 "x": 896,
3233 "y": 288,
3234 "w": 32,
3235 "h": 48
3236 },
3237 {
3238 "pitch": 0,
3239 "yaw": 150,
3240 "x": 928,
3241 "y": 288,
3242 "w": 32,
3243 "h": 48
3244 },
3245 {
3246 "pitch": 0,
3247 "yaw": 180,
3248 "x": 960,
3249 "y": 288,
3250 "w": 32,
3251 "h": 48
3252 },
3253 {
3254 "pitch": 0,
3255 "yaw": 210,
3256 "x": 992,
3257 "y": 288,
3258 "w": 32,
3259 "h": 48
3260 },
3261 {
3262 "pitch": 0,
3263 "yaw": 240,
3264 "x": 1024,
3265 "y": 288,
3266 "w": 32,
3267 "h": 48
3268 },
3269 {
3270 "pitch": 0,
3271 "yaw": 270,
3272 "x": 1056,
3273 "y": 288,
3274 "w": 32,
3275 "h": 48
3276 },
3277 {
3278 "pitch": 0,
3279 "yaw": 300,
3280 "x": 1088,
3281 "y": 288,
3282 "w": 32,
3283 "h": 48
3284 },
3285 {
3286 "pitch": 0,
3287 "yaw": 330,
3288 "x": 1120,
3289 "y": 288,
3290 "w": 32,
3291 "h": 48
3292 },
3293 {
3294 "pitch": 30,
3295 "yaw": 0,
3296 "x": 1152,
3297 "y": 288,
3298 "w": 32,
3299 "h": 48
3300 },
3301 {
3302 "pitch": 30,
3303 "yaw": 30,
3304 "x": 1184,
3305 "y": 288,
3306 "w": 32,
3307 "h": 48
3308 },
3309 {
3310 "pitch": 30,
3311 "yaw": 60,
3312 "x": 1216,
3313 "y": 288,
3314 "w": 32,
3315 "h": 48
3316 },
3317 {
3318 "pitch": 30,
3319 "yaw": 90,
3320 "x": 1248,
3321 "y": 288,
3322 "w": 32,
3323 "h": 48
3324 },
3325 {
3326 "pitch": 30,
3327 "yaw": 120,
3328 "x": 1280,
3329 "y": 288,
3330 "w": 32,
3331 "h": 48
3332 },
3333 {
3334 "pitch": 30,
3335 "yaw": 150,
3336 "x": 1312,
3337 "y": 288,
3338 "w": 32,
3339 "h": 48
3340 },
3341 {
3342 "pitch": 30,
3343 "yaw": 180,
3344 "x": 1344,
3345 "y": 288,
3346 "w": 32,
3347 "h": 48
3348 },
3349 {
3350 "pitch": 30,
3351 "yaw": 210,
3352 "x": 1376,
3353 "y": 288,
3354 "w": 32,
3355 "h": 48
3356 },
3357 {
3358 "pitch": 30,
3359 "yaw": 240,
3360 "x": 1408,
3361 "y": 288,
3362 "w": 32,
3363 "h": 48
3364 },
3365 {
3366 "pitch": 30,
3367 "yaw": 270,
3368 "x": 1440,
3369 "y": 288,
3370 "w": 32,
3371 "h": 48
3372 },
3373 {
3374 "pitch": 30,
3375 "yaw": 300,
3376 "x": 1472,
3377 "y": 288,
3378 "w": 32,
3379 "h": 48
3380 },
3381 {
3382 "pitch": 30,
3383 "yaw": 330,
3384 "x": 1504,
3385 "y": 288,
3386 "w": 32,
3387 "h": 48
3388 },
3389 {
3390 "pitch": 60,
3391 "yaw": 0,
3392 "x": 1536,
3393 "y": 288,
3394 "w": 32,
3395 "h": 48
3396 },
3397 {
3398 "pitch": 60,
3399 "yaw": 30,
3400 "x": 1568,
3401 "y": 288,
3402 "w": 32,
3403 "h": 48
3404 },
3405 {
3406 "pitch": 60,
3407 "yaw": 60,
3408 "x": 1600,
3409 "y": 288,
3410 "w": 32,
3411 "h": 48
3412 },
3413 {
3414 "pitch": 60,
3415 "yaw": 90,
3416 "x": 1632,
3417 "y": 288,
3418 "w": 32,
3419 "h": 48
3420 },
3421 {
3422 "pitch": 60,
3423 "yaw": 120,
3424 "x": 1664,
3425 "y": 288,
3426 "w": 32,
3427 "h": 48
3428 },
3429 {
3430 "pitch": 60,
3431 "yaw": 150,
3432 "x": 1696,
3433 "y": 288,
3434 "w": 32,
3435 "h": 48
3436 },
3437 {
3438 "pitch": 60,
3439 "yaw": 180,
3440 "x": 1728,
3441 "y": 288,
3442 "w": 32,
3443 "h": 48
3444 },
3445 {
3446 "pitch": 60,
3447 "yaw": 210,
3448 "x": 1760,
3449 "y": 288,
3450 "w": 32,
3451 "h": 48
3452 },
3453 {
3454 "pitch": 60,
3455 "yaw": 240,
3456 "x": 1792,
3457 "y": 288,
3458 "w": 32,
3459 "h": 48
3460 },
3461 {
3462 "pitch": 60,
3463 "yaw": 270,
3464 "x": 1824,
3465 "y": 288,
3466 "w": 32,
3467 "h": 48
3468 },
3469 {
3470 "pitch": 60,
3471 "yaw": 300,
3472 "x": 1856,
3473 "y": 288,
3474 "w": 32,
3475 "h": 48
3476 },
3477 {
3478 "pitch": 60,
3479 "yaw": 330,
3480 "x": 1888,
3481 "y": 288,
3482 "w": 32,
3483 "h": 48
3484 }
3485 ]
3486 },
3487 {
3488 "index": 3,
3489 "views": [
3490 {
3491 "pitch": -60,
3492 "yaw": 0,
3493 "x": 0,
3494 "y": 336,
3495 "w": 32,
3496 "h": 48
3497 },
3498 {
3499 "pitch": -60,
3500 "yaw": 30,
3501 "x": 32,
3502 "y": 336,
3503 "w": 32,
3504 "h": 48
3505 },
3506 {
3507 "pitch": -60,
3508 "yaw": 60,
3509 "x": 64,
3510 "y": 336,
3511 "w": 32,
3512 "h": 48
3513 },
3514 {
3515 "pitch": -60,
3516 "yaw": 90,
3517 "x": 96,
3518 "y": 336,
3519 "w": 32,
3520 "h": 48
3521 },
3522 {
3523 "pitch": -60,
3524 "yaw": 120,
3525 "x": 128,
3526 "y": 336,
3527 "w": 32,
3528 "h": 48
3529 },
3530 {
3531 "pitch": -60,
3532 "yaw": 150,
3533 "x": 160,
3534 "y": 336,
3535 "w": 32,
3536 "h": 48
3537 },
3538 {
3539 "pitch": -60,
3540 "yaw": 180,
3541 "x": 192,
3542 "y": 336,
3543 "w": 32,
3544 "h": 48
3545 },
3546 {
3547 "pitch": -60,
3548 "yaw": 210,
3549 "x": 224,
3550 "y": 336,
3551 "w": 32,
3552 "h": 48
3553 },
3554 {
3555 "pitch": -60,
3556 "yaw": 240,
3557 "x": 256,
3558 "y": 336,
3559 "w": 32,
3560 "h": 48
3561 },
3562 {
3563 "pitch": -60,
3564 "yaw": 270,
3565 "x": 288,
3566 "y": 336,
3567 "w": 32,
3568 "h": 48
3569 },
3570 {
3571 "pitch": -60,
3572 "yaw": 300,
3573 "x": 320,
3574 "y": 336,
3575 "w": 32,
3576 "h": 48
3577 },
3578 {
3579 "pitch": -60,
3580 "yaw": 330,
3581 "x": 352,
3582 "y": 336,
3583 "w": 32,
3584 "h": 48
3585 },
3586 {
3587 "pitch": -30,
3588 "yaw": 0,
3589 "x": 384,
3590 "y": 336,
3591 "w": 32,
3592 "h": 48
3593 },
3594 {
3595 "pitch": -30,
3596 "yaw": 30,
3597 "x": 416,
3598 "y": 336,
3599 "w": 32,
3600 "h": 48
3601 },
3602 {
3603 "pitch": -30,
3604 "yaw": 60,
3605 "x": 448,
3606 "y": 336,
3607 "w": 32,
3608 "h": 48
3609 },
3610 {
3611 "pitch": -30,
3612 "yaw": 90,
3613 "x": 480,
3614 "y": 336,
3615 "w": 32,
3616 "h": 48
3617 },
3618 {
3619 "pitch": -30,
3620 "yaw": 120,
3621 "x": 512,
3622 "y": 336,
3623 "w": 32,
3624 "h": 48
3625 },
3626 {
3627 "pitch": -30,
3628 "yaw": 150,
3629 "x": 544,
3630 "y": 336,
3631 "w": 32,
3632 "h": 48
3633 },
3634 {
3635 "pitch": -30,
3636 "yaw": 180,
3637 "x": 576,
3638 "y": 336,
3639 "w": 32,
3640 "h": 48
3641 },
3642 {
3643 "pitch": -30,
3644 "yaw": 210,
3645 "x": 608,
3646 "y": 336,
3647 "w": 32,
3648 "h": 48
3649 },
3650 {
3651 "pitch": -30,
3652 "yaw": 240,
3653 "x": 640,
3654 "y": 336,
3655 "w": 32,
3656 "h": 48
3657 },
3658 {
3659 "pitch": -30,
3660 "yaw": 270,
3661 "x": 672,
3662 "y": 336,
3663 "w": 32,
3664 "h": 48
3665 },
3666 {
3667 "pitch": -30,
3668 "yaw": 300,
3669 "x": 704,
3670 "y": 336,
3671 "w": 32,
3672 "h": 48
3673 },
3674 {
3675 "pitch": -30,
3676 "yaw": 330,
3677 "x": 736,
3678 "y": 336,
3679 "w": 32,
3680 "h": 48
3681 },
3682 {
3683 "pitch": 0,
3684 "yaw": 0,
3685 "x": 768,
3686 "y": 336,
3687 "w": 32,
3688 "h": 48
3689 },
3690 {
3691 "pitch": 0,
3692 "yaw": 30,
3693 "x": 800,
3694 "y": 336,
3695 "w": 32,
3696 "h": 48
3697 },
3698 {
3699 "pitch": 0,
3700 "yaw": 60,
3701 "x": 832,
3702 "y": 336,
3703 "w": 32,
3704 "h": 48
3705 },
3706 {
3707 "pitch": 0,
3708 "yaw": 90,
3709 "x": 864,
3710 "y": 336,
3711 "w": 32,
3712 "h": 48
3713 },
3714 {
3715 "pitch": 0,
3716 "yaw": 120,
3717 "x": 896,
3718 "y": 336,
3719 "w": 32,
3720 "h": 48
3721 },
3722 {
3723 "pitch": 0,
3724 "yaw": 150,
3725 "x": 928,
3726 "y": 336,
3727 "w": 32,
3728 "h": 48
3729 },
3730 {
3731 "pitch": 0,
3732 "yaw": 180,
3733 "x": 960,
3734 "y": 336,
3735 "w": 32,
3736 "h": 48
3737 },
3738 {
3739 "pitch": 0,
3740 "yaw": 210,
3741 "x": 992,
3742 "y": 336,
3743 "w": 32,
3744 "h": 48
3745 },
3746 {
3747 "pitch": 0,
3748 "yaw": 240,
3749 "x": 1024,
3750 "y": 336,
3751 "w": 32,
3752 "h": 48
3753 },
3754 {
3755 "pitch": 0,
3756 "yaw": 270,
3757 "x": 1056,
3758 "y": 336,
3759 "w": 32,
3760 "h": 48
3761 },
3762 {
3763 "pitch": 0,
3764 "yaw": 300,
3765 "x": 1088,
3766 "y": 336,
3767 "w": 32,
3768 "h": 48
3769 },
3770 {
3771 "pitch": 0,
3772 "yaw": 330,
3773 "x": 1120,
3774 "y": 336,
3775 "w": 32,
3776 "h": 48
3777 },
3778 {
3779 "pitch": 30,
3780 "yaw": 0,
3781 "x": 1152,
3782 "y": 336,
3783 "w": 32,
3784 "h": 48
3785 },
3786 {
3787 "pitch": 30,
3788 "yaw": 30,
3789 "x": 1184,
3790 "y": 336,
3791 "w": 32,
3792 "h": 48
3793 },
3794 {
3795 "pitch": 30,
3796 "yaw": 60,
3797 "x": 1216,
3798 "y": 336,
3799 "w": 32,
3800 "h": 48
3801 },
3802 {
3803 "pitch": 30,
3804 "yaw": 90,
3805 "x": 1248,
3806 "y": 336,
3807 "w": 32,
3808 "h": 48
3809 },
3810 {
3811 "pitch": 30,
3812 "yaw": 120,
3813 "x": 1280,
3814 "y": 336,
3815 "w": 32,
3816 "h": 48
3817 },
3818 {
3819 "pitch": 30,
3820 "yaw": 150,
3821 "x": 1312,
3822 "y": 336,
3823 "w": 32,
3824 "h": 48
3825 },
3826 {
3827 "pitch": 30,
3828 "yaw": 180,
3829 "x": 1344,
3830 "y": 336,
3831 "w": 32,
3832 "h": 48
3833 },
3834 {
3835 "pitch": 30,
3836 "yaw": 210,
3837 "x": 1376,
3838 "y": 336,
3839 "w": 32,
3840 "h": 48
3841 },
3842 {
3843 "pitch": 30,
3844 "yaw": 240,
3845 "x": 1408,
3846 "y": 336,
3847 "w": 32,
3848 "h": 48
3849 },
3850 {
3851 "pitch": 30,
3852 "yaw": 270,
3853 "x": 1440,
3854 "y": 336,
3855 "w": 32,
3856 "h": 48
3857 },
3858 {
3859 "pitch": 30,
3860 "yaw": 300,
3861 "x": 1472,
3862 "y": 336,
3863 "w": 32,
3864 "h": 48
3865 },
3866 {
3867 "pitch": 30,
3868 "yaw": 330,
3869 "x": 1504,
3870 "y": 336,
3871 "w": 32,
3872 "h": 48
3873 },
3874 {
3875 "pitch": 60,
3876 "yaw": 0,
3877 "x": 1536,
3878 "y": 336,
3879 "w": 32,
3880 "h": 48
3881 },
3882 {
3883 "pitch": 60,
3884 "yaw": 30,
3885 "x": 1568,
3886 "y": 336,
3887 "w": 32,
3888 "h": 48
3889 },
3890 {
3891 "pitch": 60,
3892 "yaw": 60,
3893 "x": 1600,
3894 "y": 336,
3895 "w": 32,
3896 "h": 48
3897 },
3898 {
3899 "pitch": 60,
3900 "yaw": 90,
3901 "x": 1632,
3902 "y": 336,
3903 "w": 32,
3904 "h": 48
3905 },
3906 {
3907 "pitch": 60,
3908 "yaw": 120,
3909 "x": 1664,
3910 "y": 336,
3911 "w": 32,
3912 "h": 48
3913 },
3914 {
3915 "pitch": 60,
3916 "yaw": 150,
3917 "x": 1696,
3918 "y": 336,
3919 "w": 32,
3920 "h": 48
3921 },
3922 {
3923 "pitch": 60,
3924 "yaw": 180,
3925 "x": 1728,
3926 "y": 336,
3927 "w": 32,
3928 "h": 48
3929 },
3930 {
3931 "pitch": 60,
3932 "yaw": 210,
3933 "x": 1760,
3934 "y": 336,
3935 "w": 32,
3936 "h": 48
3937 },
3938 {
3939 "pitch": 60,
3940 "yaw": 240,
3941 "x": 1792,
3942 "y": 336,
3943 "w": 32,
3944 "h": 48
3945 },
3946 {
3947 "pitch": 60,
3948 "yaw": 270,
3949 "x": 1824,
3950 "y": 336,
3951 "w": 32,
3952 "h": 48
3953 },
3954 {
3955 "pitch": 60,
3956 "yaw": 300,
3957 "x": 1856,
3958 "y": 336,
3959 "w": 32,
3960 "h": 48
3961 },
3962 {
3963 "pitch": 60,
3964 "yaw": 330,
3965 "x": 1888,
3966 "y": 336,
3967 "w": 32,
3968 "h": 48
3969 }
3970 ]
3971 }
3972 ]
3973 }
3974 ],
3975 "depth_near": 0.05,
3976 "depth_far": 40.0,
3977 "depth_encoding": "gray",
3978 "depth_bits": 16
3979}
build/paperdolls/male-body/male-body-depth-atlas.u16 added Binary file +0 −0

The contents of this binary file are not shown.

build/paperdolls/male-body/male-body-diffuse-atlas.png added Binary file +0 −0

The contents of this binary file are not shown.

build/paperdolls/male-body/male-body-normal-atlas.png added Binary file +0 −0

The contents of this binary file are not shown.

build/paperdolls/male-body/male-body-specular-atlas.png added Binary file +0 −0

The contents of this binary file are not shown.

build/paperdolls/male-sword/male-sword-atlas.ppda added +3979 −0
@@ -0,0 +1,3979 @@
1 {
2 "format_version": 1,
3 "sex": "male",
4 "settype": "sword",
5 "project": {
6 "id": "ppd-18e5bbc827a5ecf3",
7 "name": "Nieuw project"
8 },
9 "identity": {
10 "body_model_sha256": "3f2eb80ca5151a5c3aff703c961aa9a827a969cf7de4cf955ec7b8abe16e352c",
11 "equipment_preset_sha256": "cc1a644017f41e7a95c8ca3008678c34cb1280adf0d0fad69bd54c8940d77646",
12 "framing": {
13 "height_milli": 2600,
14 "center_y_milli": 1000,
15 "pivot_y_milli": 1460
16 },
17 "pivot_source": "neck",
18 "near": 0.05,
19 "far": 40.0,
20 "camera_distance": 10.0,
21 "normal_space": "view (+Y up), PNG rows top-down",
22 "depth": "16-bit gray+alpha; distance=near+(sample/65535)*(far-near)"
23 },
24 "fps": 4,
25 "cell_width": 32,
26 "cell_height": 48,
27 "pitches": [
28 -60,
29 -30,
30 0,
31 30,
32 60
33 ],
34 "yaws": [
35 0,
36 30,
37 60,
38 90,
39 120,
40 150,
41 180,
42 210,
43 240,
44 270,
45 300,
46 330
47 ],
48 "maps": {
49 "depth": {
50 "file": "male-sword-depth-atlas.u16",
51 "sha256": "0479d6ca296108f8bde8292d16866e579a1106821b4beda2692ecaa3d70b44e9",
52 "width": 1920,
53 "height": 384,
54 "storage": "u16le_ga"
55 },
56 "diffuse": {
57 "file": "male-sword-diffuse-atlas.png",
58 "sha256": "d06ed71a166d2d6ece8f6346cd690510413864aa97273ed165068fd6a8337917",
59 "width": 1920,
60 "height": 384
61 },
62 "normal": {
63 "file": "male-sword-normal-atlas.png",
64 "sha256": "06c68b9af39ba2321df04e04b7f62a932d47f05b479b0ef063d712b0a9347614",
65 "width": 1920,
66 "height": 384
67 },
68 "specular": {
69 "file": "male-sword-specular-atlas.png",
70 "sha256": "7059b1a4a4d1168d4846476ec42ffcd1fcd53d782fa1adedc3a4b534fb706e9d",
71 "width": 1920,
72 "height": 384
73 }
74 },
75 "clips": [
76 {
77 "source_index": 0,
78 "name": "walk",
79 "token": "clip000-walk",
80 "frame_count": 4,
81 "duration": 1.0,
82 "frames": [
83 {
84 "index": 0,
85 "views": [
86 {
87 "pitch": -60,
88 "yaw": 0,
89 "x": 0,
90 "y": 0,
91 "w": 32,
92 "h": 48
93 },
94 {
95 "pitch": -60,
96 "yaw": 30,
97 "x": 32,
98 "y": 0,
99 "w": 32,
100 "h": 48
101 },
102 {
103 "pitch": -60,
104 "yaw": 60,
105 "x": 64,
106 "y": 0,
107 "w": 32,
108 "h": 48
109 },
110 {
111 "pitch": -60,
112 "yaw": 90,
113 "x": 96,
114 "y": 0,
115 "w": 32,
116 "h": 48
117 },
118 {
119 "pitch": -60,
120 "yaw": 120,
121 "x": 128,
122 "y": 0,
123 "w": 32,
124 "h": 48
125 },
126 {
127 "pitch": -60,
128 "yaw": 150,
129 "x": 160,
130 "y": 0,
131 "w": 32,
132 "h": 48
133 },
134 {
135 "pitch": -60,
136 "yaw": 180,
137 "x": 192,
138 "y": 0,
139 "w": 32,
140 "h": 48
141 },
142 {
143 "pitch": -60,
144 "yaw": 210,
145 "x": 224,
146 "y": 0,
147 "w": 32,
148 "h": 48
149 },
150 {
151 "pitch": -60,
152 "yaw": 240,
153 "x": 256,
154 "y": 0,
155 "w": 32,
156 "h": 48
157 },
158 {
159 "pitch": -60,
160 "yaw": 270,
161 "x": 288,
162 "y": 0,
163 "w": 32,
164 "h": 48
165 },
166 {
167 "pitch": -60,
168 "yaw": 300,
169 "x": 320,
170 "y": 0,
171 "w": 32,
172 "h": 48
173 },
174 {
175 "pitch": -60,
176 "yaw": 330,
177 "x": 352,
178 "y": 0,
179 "w": 32,
180 "h": 48
181 },
182 {
183 "pitch": -30,
184 "yaw": 0,
185 "x": 384,
186 "y": 0,
187 "w": 32,
188 "h": 48
189 },
190 {
191 "pitch": -30,
192 "yaw": 30,
193 "x": 416,
194 "y": 0,
195 "w": 32,
196 "h": 48
197 },
198 {
199 "pitch": -30,
200 "yaw": 60,
201 "x": 448,
202 "y": 0,
203 "w": 32,
204 "h": 48
205 },
206 {
207 "pitch": -30,
208 "yaw": 90,
209 "x": 480,
210 "y": 0,
211 "w": 32,
212 "h": 48
213 },
214 {
215 "pitch": -30,
216 "yaw": 120,
217 "x": 512,
218 "y": 0,
219 "w": 32,
220 "h": 48
221 },
222 {
223 "pitch": -30,
224 "yaw": 150,
225 "x": 544,
226 "y": 0,
227 "w": 32,
228 "h": 48
229 },
230 {
231 "pitch": -30,
232 "yaw": 180,
233 "x": 576,
234 "y": 0,
235 "w": 32,
236 "h": 48
237 },
238 {
239 "pitch": -30,
240 "yaw": 210,
241 "x": 608,
242 "y": 0,
243 "w": 32,
244 "h": 48
245 },
246 {
247 "pitch": -30,
248 "yaw": 240,
249 "x": 640,
250 "y": 0,
251 "w": 32,
252 "h": 48
253 },
254 {
255 "pitch": -30,
256 "yaw": 270,
257 "x": 672,
258 "y": 0,
259 "w": 32,
260 "h": 48
261 },
262 {
263 "pitch": -30,
264 "yaw": 300,
265 "x": 704,
266 "y": 0,
267 "w": 32,
268 "h": 48
269 },
270 {
271 "pitch": -30,
272 "yaw": 330,
273 "x": 736,
274 "y": 0,
275 "w": 32,
276 "h": 48
277 },
278 {
279 "pitch": 0,
280 "yaw": 0,
281 "x": 768,
282 "y": 0,
283 "w": 32,
284 "h": 48
285 },
286 {
287 "pitch": 0,
288 "yaw": 30,
289 "x": 800,
290 "y": 0,
291 "w": 32,
292 "h": 48
293 },
294 {
295 "pitch": 0,
296 "yaw": 60,
297 "x": 832,
298 "y": 0,
299 "w": 32,
300 "h": 48
301 },
302 {
303 "pitch": 0,
304 "yaw": 90,
305 "x": 864,
306 "y": 0,
307 "w": 32,
308 "h": 48
309 },
310 {
311 "pitch": 0,
312 "yaw": 120,
313 "x": 896,
314 "y": 0,
315 "w": 32,
316 "h": 48
317 },
318 {
319 "pitch": 0,
320 "yaw": 150,
321 "x": 928,
322 "y": 0,
323 "w": 32,
324 "h": 48
325 },
326 {
327 "pitch": 0,
328 "yaw": 180,
329 "x": 960,
330 "y": 0,
331 "w": 32,
332 "h": 48
333 },
334 {
335 "pitch": 0,
336 "yaw": 210,
337 "x": 992,
338 "y": 0,
339 "w": 32,
340 "h": 48
341 },
342 {
343 "pitch": 0,
344 "yaw": 240,
345 "x": 1024,
346 "y": 0,
347 "w": 32,
348 "h": 48
349 },
350 {
351 "pitch": 0,
352 "yaw": 270,
353 "x": 1056,
354 "y": 0,
355 "w": 32,
356 "h": 48
357 },
358 {
359 "pitch": 0,
360 "yaw": 300,
361 "x": 1088,
362 "y": 0,
363 "w": 32,
364 "h": 48
365 },
366 {
367 "pitch": 0,
368 "yaw": 330,
369 "x": 1120,
370 "y": 0,
371 "w": 32,
372 "h": 48
373 },
374 {
375 "pitch": 30,
376 "yaw": 0,
377 "x": 1152,
378 "y": 0,
379 "w": 32,
380 "h": 48
381 },
382 {
383 "pitch": 30,
384 "yaw": 30,
385 "x": 1184,
386 "y": 0,
387 "w": 32,
388 "h": 48
389 },
390 {
391 "pitch": 30,
392 "yaw": 60,
393 "x": 1216,
394 "y": 0,
395 "w": 32,
396 "h": 48
397 },
398 {
399 "pitch": 30,
400 "yaw": 90,
401 "x": 1248,
402 "y": 0,
403 "w": 32,
404 "h": 48
405 },
406 {
407 "pitch": 30,
408 "yaw": 120,
409 "x": 1280,
410 "y": 0,
411 "w": 32,
412 "h": 48
413 },
414 {
415 "pitch": 30,
416 "yaw": 150,
417 "x": 1312,
418 "y": 0,
419 "w": 32,
420 "h": 48
421 },
422 {
423 "pitch": 30,
424 "yaw": 180,
425 "x": 1344,
426 "y": 0,
427 "w": 32,
428 "h": 48
429 },
430 {
431 "pitch": 30,
432 "yaw": 210,
433 "x": 1376,
434 "y": 0,
435 "w": 32,
436 "h": 48
437 },
438 {
439 "pitch": 30,
440 "yaw": 240,
441 "x": 1408,
442 "y": 0,
443 "w": 32,
444 "h": 48
445 },
446 {
447 "pitch": 30,
448 "yaw": 270,
449 "x": 1440,
450 "y": 0,
451 "w": 32,
452 "h": 48
453 },
454 {
455 "pitch": 30,
456 "yaw": 300,
457 "x": 1472,
458 "y": 0,
459 "w": 32,
460 "h": 48
461 },
462 {
463 "pitch": 30,
464 "yaw": 330,
465 "x": 1504,
466 "y": 0,
467 "w": 32,
468 "h": 48
469 },
470 {
471 "pitch": 60,
472 "yaw": 0,
473 "x": 1536,
474 "y": 0,
475 "w": 32,
476 "h": 48
477 },
478 {
479 "pitch": 60,
480 "yaw": 30,
481 "x": 1568,
482 "y": 0,
483 "w": 32,
484 "h": 48
485 },
486 {
487 "pitch": 60,
488 "yaw": 60,
489 "x": 1600,
490 "y": 0,
491 "w": 32,
492 "h": 48
493 },
494 {
495 "pitch": 60,
496 "yaw": 90,
497 "x": 1632,
498 "y": 0,
499 "w": 32,
500 "h": 48
501 },
502 {
503 "pitch": 60,
504 "yaw": 120,
505 "x": 1664,
506 "y": 0,
507 "w": 32,
508 "h": 48
509 },
510 {
511 "pitch": 60,
512 "yaw": 150,
513 "x": 1696,
514 "y": 0,
515 "w": 32,
516 "h": 48
517 },
518 {
519 "pitch": 60,
520 "yaw": 180,
521 "x": 1728,
522 "y": 0,
523 "w": 32,
524 "h": 48
525 },
526 {
527 "pitch": 60,
528 "yaw": 210,
529 "x": 1760,
530 "y": 0,
531 "w": 32,
532 "h": 48
533 },
534 {
535 "pitch": 60,
536 "yaw": 240,
537 "x": 1792,
538 "y": 0,
539 "w": 32,
540 "h": 48
541 },
542 {
543 "pitch": 60,
544 "yaw": 270,
545 "x": 1824,
546 "y": 0,
547 "w": 32,
548 "h": 48
549 },
550 {
551 "pitch": 60,
552 "yaw": 300,
553 "x": 1856,
554 "y": 0,
555 "w": 32,
556 "h": 48
557 },
558 {
559 "pitch": 60,
560 "yaw": 330,
561 "x": 1888,
562 "y": 0,
563 "w": 32,
564 "h": 48
565 }
566 ]
567 },
568 {
569 "index": 1,
570 "views": [
571 {
572 "pitch": -60,
573 "yaw": 0,
574 "x": 0,
575 "y": 48,
576 "w": 32,
577 "h": 48
578 },
579 {
580 "pitch": -60,
581 "yaw": 30,
582 "x": 32,
583 "y": 48,
584 "w": 32,
585 "h": 48
586 },
587 {
588 "pitch": -60,
589 "yaw": 60,
590 "x": 64,
591 "y": 48,
592 "w": 32,
593 "h": 48
594 },
595 {
596 "pitch": -60,
597 "yaw": 90,
598 "x": 96,
599 "y": 48,
600 "w": 32,
601 "h": 48
602 },
603 {
604 "pitch": -60,
605 "yaw": 120,
606 "x": 128,
607 "y": 48,
608 "w": 32,
609 "h": 48
610 },
611 {
612 "pitch": -60,
613 "yaw": 150,
614 "x": 160,
615 "y": 48,
616 "w": 32,
617 "h": 48
618 },
619 {
620 "pitch": -60,
621 "yaw": 180,
622 "x": 192,
623 "y": 48,
624 "w": 32,
625 "h": 48
626 },
627 {
628 "pitch": -60,
629 "yaw": 210,
630 "x": 224,
631 "y": 48,
632 "w": 32,
633 "h": 48
634 },
635 {
636 "pitch": -60,
637 "yaw": 240,
638 "x": 256,
639 "y": 48,
640 "w": 32,
641 "h": 48
642 },
643 {
644 "pitch": -60,
645 "yaw": 270,
646 "x": 288,
647 "y": 48,
648 "w": 32,
649 "h": 48
650 },
651 {
652 "pitch": -60,
653 "yaw": 300,
654 "x": 320,
655 "y": 48,
656 "w": 32,
657 "h": 48
658 },
659 {
660 "pitch": -60,
661 "yaw": 330,
662 "x": 352,
663 "y": 48,
664 "w": 32,
665 "h": 48
666 },
667 {
668 "pitch": -30,
669 "yaw": 0,
670 "x": 384,
671 "y": 48,
672 "w": 32,
673 "h": 48
674 },
675 {
676 "pitch": -30,
677 "yaw": 30,
678 "x": 416,
679 "y": 48,
680 "w": 32,
681 "h": 48
682 },
683 {
684 "pitch": -30,
685 "yaw": 60,
686 "x": 448,
687 "y": 48,
688 "w": 32,
689 "h": 48
690 },
691 {
692 "pitch": -30,
693 "yaw": 90,
694 "x": 480,
695 "y": 48,
696 "w": 32,
697 "h": 48
698 },
699 {
700 "pitch": -30,
701 "yaw": 120,
702 "x": 512,
703 "y": 48,
704 "w": 32,
705 "h": 48
706 },
707 {
708 "pitch": -30,
709 "yaw": 150,
710 "x": 544,
711 "y": 48,
712 "w": 32,
713 "h": 48
714 },
715 {
716 "pitch": -30,
717 "yaw": 180,
718 "x": 576,
719 "y": 48,
720 "w": 32,
721 "h": 48
722 },
723 {
724 "pitch": -30,
725 "yaw": 210,
726 "x": 608,
727 "y": 48,
728 "w": 32,
729 "h": 48
730 },
731 {
732 "pitch": -30,
733 "yaw": 240,
734 "x": 640,
735 "y": 48,
736 "w": 32,
737 "h": 48
738 },
739 {
740 "pitch": -30,
741 "yaw": 270,
742 "x": 672,
743 "y": 48,
744 "w": 32,
745 "h": 48
746 },
747 {
748 "pitch": -30,
749 "yaw": 300,
750 "x": 704,
751 "y": 48,
752 "w": 32,
753 "h": 48
754 },
755 {
756 "pitch": -30,
757 "yaw": 330,
758 "x": 736,
759 "y": 48,
760 "w": 32,
761 "h": 48
762 },
763 {
764 "pitch": 0,
765 "yaw": 0,
766 "x": 768,
767 "y": 48,
768 "w": 32,
769 "h": 48
770 },
771 {
772 "pitch": 0,
773 "yaw": 30,
774 "x": 800,
775 "y": 48,
776 "w": 32,
777 "h": 48
778 },
779 {
780 "pitch": 0,
781 "yaw": 60,
782 "x": 832,
783 "y": 48,
784 "w": 32,
785 "h": 48
786 },
787 {
788 "pitch": 0,
789 "yaw": 90,
790 "x": 864,
791 "y": 48,
792 "w": 32,
793 "h": 48
794 },
795 {
796 "pitch": 0,
797 "yaw": 120,
798 "x": 896,
799 "y": 48,
800 "w": 32,
801 "h": 48
802 },
803 {
804 "pitch": 0,
805 "yaw": 150,
806 "x": 928,
807 "y": 48,
808 "w": 32,
809 "h": 48
810 },
811 {
812 "pitch": 0,
813 "yaw": 180,
814 "x": 960,
815 "y": 48,
816 "w": 32,
817 "h": 48
818 },
819 {
820 "pitch": 0,
821 "yaw": 210,
822 "x": 992,
823 "y": 48,
824 "w": 32,
825 "h": 48
826 },
827 {
828 "pitch": 0,
829 "yaw": 240,
830 "x": 1024,
831 "y": 48,
832 "w": 32,
833 "h": 48
834 },
835 {
836 "pitch": 0,
837 "yaw": 270,
838 "x": 1056,
839 "y": 48,
840 "w": 32,
841 "h": 48
842 },
843 {
844 "pitch": 0,
845 "yaw": 300,
846 "x": 1088,
847 "y": 48,
848 "w": 32,
849 "h": 48
850 },
851 {
852 "pitch": 0,
853 "yaw": 330,
854 "x": 1120,
855 "y": 48,
856 "w": 32,
857 "h": 48
858 },
859 {
860 "pitch": 30,
861 "yaw": 0,
862 "x": 1152,
863 "y": 48,
864 "w": 32,
865 "h": 48
866 },
867 {
868 "pitch": 30,
869 "yaw": 30,
870 "x": 1184,
871 "y": 48,
872 "w": 32,
873 "h": 48
874 },
875 {
876 "pitch": 30,
877 "yaw": 60,
878 "x": 1216,
879 "y": 48,
880 "w": 32,
881 "h": 48
882 },
883 {
884 "pitch": 30,
885 "yaw": 90,
886 "x": 1248,
887 "y": 48,
888 "w": 32,
889 "h": 48
890 },
891 {
892 "pitch": 30,
893 "yaw": 120,
894 "x": 1280,
895 "y": 48,
896 "w": 32,
897 "h": 48
898 },
899 {
900 "pitch": 30,
901 "yaw": 150,
902 "x": 1312,
903 "y": 48,
904 "w": 32,
905 "h": 48
906 },
907 {
908 "pitch": 30,
909 "yaw": 180,
910 "x": 1344,
911 "y": 48,
912 "w": 32,
913 "h": 48
914 },
915 {
916 "pitch": 30,
917 "yaw": 210,
918 "x": 1376,
919 "y": 48,
920 "w": 32,
921 "h": 48
922 },
923 {
924 "pitch": 30,
925 "yaw": 240,
926 "x": 1408,
927 "y": 48,
928 "w": 32,
929 "h": 48
930 },
931 {
932 "pitch": 30,
933 "yaw": 270,
934 "x": 1440,
935 "y": 48,
936 "w": 32,
937 "h": 48
938 },
939 {
940 "pitch": 30,
941 "yaw": 300,
942 "x": 1472,
943 "y": 48,
944 "w": 32,
945 "h": 48
946 },
947 {
948 "pitch": 30,
949 "yaw": 330,
950 "x": 1504,
951 "y": 48,
952 "w": 32,
953 "h": 48
954 },
955 {
956 "pitch": 60,
957 "yaw": 0,
958 "x": 1536,
959 "y": 48,
960 "w": 32,
961 "h": 48
962 },
963 {
964 "pitch": 60,
965 "yaw": 30,
966 "x": 1568,
967 "y": 48,
968 "w": 32,
969 "h": 48
970 },
971 {
972 "pitch": 60,
973 "yaw": 60,
974 "x": 1600,
975 "y": 48,
976 "w": 32,
977 "h": 48
978 },
979 {
980 "pitch": 60,
981 "yaw": 90,
982 "x": 1632,
983 "y": 48,
984 "w": 32,
985 "h": 48
986 },
987 {
988 "pitch": 60,
989 "yaw": 120,
990 "x": 1664,
991 "y": 48,
992 "w": 32,
993 "h": 48
994 },
995 {
996 "pitch": 60,
997 "yaw": 150,
998 "x": 1696,
999 "y": 48,
1000 "w": 32,
1001 "h": 48
1002 },
1003 {
1004 "pitch": 60,
1005 "yaw": 180,
1006 "x": 1728,
1007 "y": 48,
1008 "w": 32,
1009 "h": 48
1010 },
1011 {
1012 "pitch": 60,
1013 "yaw": 210,
1014 "x": 1760,
1015 "y": 48,
1016 "w": 32,
1017 "h": 48
1018 },
1019 {
1020 "pitch": 60,
1021 "yaw": 240,
1022 "x": 1792,
1023 "y": 48,
1024 "w": 32,
1025 "h": 48
1026 },
1027 {
1028 "pitch": 60,
1029 "yaw": 270,
1030 "x": 1824,
1031 "y": 48,
1032 "w": 32,
1033 "h": 48
1034 },
1035 {
1036 "pitch": 60,
1037 "yaw": 300,
1038 "x": 1856,
1039 "y": 48,
1040 "w": 32,
1041 "h": 48
1042 },
1043 {
1044 "pitch": 60,
1045 "yaw": 330,
1046 "x": 1888,
1047 "y": 48,
1048 "w": 32,
1049 "h": 48
1050 }
1051 ]
1052 },
1053 {
1054 "index": 2,
1055 "views": [
1056 {
1057 "pitch": -60,
1058 "yaw": 0,
1059 "x": 0,
1060 "y": 96,
1061 "w": 32,
1062 "h": 48
1063 },
1064 {
1065 "pitch": -60,
1066 "yaw": 30,
1067 "x": 32,
1068 "y": 96,
1069 "w": 32,
1070 "h": 48
1071 },
1072 {
1073 "pitch": -60,
1074 "yaw": 60,
1075 "x": 64,
1076 "y": 96,
1077 "w": 32,
1078 "h": 48
1079 },
1080 {
1081 "pitch": -60,
1082 "yaw": 90,
1083 "x": 96,
1084 "y": 96,
1085 "w": 32,
1086 "h": 48
1087 },
1088 {
1089 "pitch": -60,
1090 "yaw": 120,
1091 "x": 128,
1092 "y": 96,
1093 "w": 32,
1094 "h": 48
1095 },
1096 {
1097 "pitch": -60,
1098 "yaw": 150,
1099 "x": 160,
1100 "y": 96,
1101 "w": 32,
1102 "h": 48
1103 },
1104 {
1105 "pitch": -60,
1106 "yaw": 180,
1107 "x": 192,
1108 "y": 96,
1109 "w": 32,
1110 "h": 48
1111 },
1112 {
1113 "pitch": -60,
1114 "yaw": 210,
1115 "x": 224,
1116 "y": 96,
1117 "w": 32,
1118 "h": 48
1119 },
1120 {
1121 "pitch": -60,
1122 "yaw": 240,
1123 "x": 256,
1124 "y": 96,
1125 "w": 32,
1126 "h": 48
1127 },
1128 {
1129 "pitch": -60,
1130 "yaw": 270,
1131 "x": 288,
1132 "y": 96,
1133 "w": 32,
1134 "h": 48
1135 },
1136 {
1137 "pitch": -60,
1138 "yaw": 300,
1139 "x": 320,
1140 "y": 96,
1141 "w": 32,
1142 "h": 48
1143 },
1144 {
1145 "pitch": -60,
1146 "yaw": 330,
1147 "x": 352,
1148 "y": 96,
1149 "w": 32,
1150 "h": 48
1151 },
1152 {
1153 "pitch": -30,
1154 "yaw": 0,
1155 "x": 384,
1156 "y": 96,
1157 "w": 32,
1158 "h": 48
1159 },
1160 {
1161 "pitch": -30,
1162 "yaw": 30,
1163 "x": 416,
1164 "y": 96,
1165 "w": 32,
1166 "h": 48
1167 },
1168 {
1169 "pitch": -30,
1170 "yaw": 60,
1171 "x": 448,
1172 "y": 96,
1173 "w": 32,
1174 "h": 48
1175 },
1176 {
1177 "pitch": -30,
1178 "yaw": 90,
1179 "x": 480,
1180 "y": 96,
1181 "w": 32,
1182 "h": 48
1183 },
1184 {
1185 "pitch": -30,
1186 "yaw": 120,
1187 "x": 512,
1188 "y": 96,
1189 "w": 32,
1190 "h": 48
1191 },
1192 {
1193 "pitch": -30,
1194 "yaw": 150,
1195 "x": 544,
1196 "y": 96,
1197 "w": 32,
1198 "h": 48
1199 },
1200 {
1201 "pitch": -30,
1202 "yaw": 180,
1203 "x": 576,
1204 "y": 96,
1205 "w": 32,
1206 "h": 48
1207 },
1208 {
1209 "pitch": -30,
1210 "yaw": 210,
1211 "x": 608,
1212 "y": 96,
1213 "w": 32,
1214 "h": 48
1215 },
1216 {
1217 "pitch": -30,
1218 "yaw": 240,
1219 "x": 640,
1220 "y": 96,
1221 "w": 32,
1222 "h": 48
1223 },
1224 {
1225 "pitch": -30,
1226 "yaw": 270,
1227 "x": 672,
1228 "y": 96,
1229 "w": 32,
1230 "h": 48
1231 },
1232 {
1233 "pitch": -30,
1234 "yaw": 300,
1235 "x": 704,
1236 "y": 96,
1237 "w": 32,
1238 "h": 48
1239 },
1240 {
1241 "pitch": -30,
1242 "yaw": 330,
1243 "x": 736,
1244 "y": 96,
1245 "w": 32,
1246 "h": 48
1247 },
1248 {
1249 "pitch": 0,
1250 "yaw": 0,
1251 "x": 768,
1252 "y": 96,
1253 "w": 32,
1254 "h": 48
1255 },
1256 {
1257 "pitch": 0,
1258 "yaw": 30,
1259 "x": 800,
1260 "y": 96,
1261 "w": 32,
1262 "h": 48
1263 },
1264 {
1265 "pitch": 0,
1266 "yaw": 60,
1267 "x": 832,
1268 "y": 96,
1269 "w": 32,
1270 "h": 48
1271 },
1272 {
1273 "pitch": 0,
1274 "yaw": 90,
1275 "x": 864,
1276 "y": 96,
1277 "w": 32,
1278 "h": 48
1279 },
1280 {
1281 "pitch": 0,
1282 "yaw": 120,
1283 "x": 896,
1284 "y": 96,
1285 "w": 32,
1286 "h": 48
1287 },
1288 {
1289 "pitch": 0,
1290 "yaw": 150,
1291 "x": 928,
1292 "y": 96,
1293 "w": 32,
1294 "h": 48
1295 },
1296 {
1297 "pitch": 0,
1298 "yaw": 180,
1299 "x": 960,
1300 "y": 96,
1301 "w": 32,
1302 "h": 48
1303 },
1304 {
1305 "pitch": 0,
1306 "yaw": 210,
1307 "x": 992,
1308 "y": 96,
1309 "w": 32,
1310 "h": 48
1311 },
1312 {
1313 "pitch": 0,
1314 "yaw": 240,
1315 "x": 1024,
1316 "y": 96,
1317 "w": 32,
1318 "h": 48
1319 },
1320 {
1321 "pitch": 0,
1322 "yaw": 270,
1323 "x": 1056,
1324 "y": 96,
1325 "w": 32,
1326 "h": 48
1327 },
1328 {
1329 "pitch": 0,
1330 "yaw": 300,
1331 "x": 1088,
1332 "y": 96,
1333 "w": 32,
1334 "h": 48
1335 },
1336 {
1337 "pitch": 0,
1338 "yaw": 330,
1339 "x": 1120,
1340 "y": 96,
1341 "w": 32,
1342 "h": 48
1343 },
1344 {
1345 "pitch": 30,
1346 "yaw": 0,
1347 "x": 1152,
1348 "y": 96,
1349 "w": 32,
1350 "h": 48
1351 },
1352 {
1353 "pitch": 30,
1354 "yaw": 30,
1355 "x": 1184,
1356 "y": 96,
1357 "w": 32,
1358 "h": 48
1359 },
1360 {
1361 "pitch": 30,
1362 "yaw": 60,
1363 "x": 1216,
1364 "y": 96,
1365 "w": 32,
1366 "h": 48
1367 },
1368 {
1369 "pitch": 30,
1370 "yaw": 90,
1371 "x": 1248,
1372 "y": 96,
1373 "w": 32,
1374 "h": 48
1375 },
1376 {
1377 "pitch": 30,
1378 "yaw": 120,
1379 "x": 1280,
1380 "y": 96,
1381 "w": 32,
1382 "h": 48
1383 },
1384 {
1385 "pitch": 30,
1386 "yaw": 150,
1387 "x": 1312,
1388 "y": 96,
1389 "w": 32,
1390 "h": 48
1391 },
1392 {
1393 "pitch": 30,
1394 "yaw": 180,
1395 "x": 1344,
1396 "y": 96,
1397 "w": 32,
1398 "h": 48
1399 },
1400 {
1401 "pitch": 30,
1402 "yaw": 210,
1403 "x": 1376,
1404 "y": 96,
1405 "w": 32,
1406 "h": 48
1407 },
1408 {
1409 "pitch": 30,
1410 "yaw": 240,
1411 "x": 1408,
1412 "y": 96,
1413 "w": 32,
1414 "h": 48
1415 },
1416 {
1417 "pitch": 30,
1418 "yaw": 270,
1419 "x": 1440,
1420 "y": 96,
1421 "w": 32,
1422 "h": 48
1423 },
1424 {
1425 "pitch": 30,
1426 "yaw": 300,
1427 "x": 1472,
1428 "y": 96,
1429 "w": 32,
1430 "h": 48
1431 },
1432 {
1433 "pitch": 30,
1434 "yaw": 330,
1435 "x": 1504,
1436 "y": 96,
1437 "w": 32,
1438 "h": 48
1439 },
1440 {
1441 "pitch": 60,
1442 "yaw": 0,
1443 "x": 1536,
1444 "y": 96,
1445 "w": 32,
1446 "h": 48
1447 },
1448 {
1449 "pitch": 60,
1450 "yaw": 30,
1451 "x": 1568,
1452 "y": 96,
1453 "w": 32,
1454 "h": 48
1455 },
1456 {
1457 "pitch": 60,
1458 "yaw": 60,
1459 "x": 1600,
1460 "y": 96,
1461 "w": 32,
1462 "h": 48
1463 },
1464 {
1465 "pitch": 60,
1466 "yaw": 90,
1467 "x": 1632,
1468 "y": 96,
1469 "w": 32,
1470 "h": 48
1471 },
1472 {
1473 "pitch": 60,
1474 "yaw": 120,
1475 "x": 1664,
1476 "y": 96,
1477 "w": 32,
1478 "h": 48
1479 },
1480 {
1481 "pitch": 60,
1482 "yaw": 150,
1483 "x": 1696,
1484 "y": 96,
1485 "w": 32,
1486 "h": 48
1487 },
1488 {
1489 "pitch": 60,
1490 "yaw": 180,
1491 "x": 1728,
1492 "y": 96,
1493 "w": 32,
1494 "h": 48
1495 },
1496 {
1497 "pitch": 60,
1498 "yaw": 210,
1499 "x": 1760,
1500 "y": 96,
1501 "w": 32,
1502 "h": 48
1503 },
1504 {
1505 "pitch": 60,
1506 "yaw": 240,
1507 "x": 1792,
1508 "y": 96,
1509 "w": 32,
1510 "h": 48
1511 },
1512 {
1513 "pitch": 60,
1514 "yaw": 270,
1515 "x": 1824,
1516 "y": 96,
1517 "w": 32,
1518 "h": 48
1519 },
1520 {
1521 "pitch": 60,
1522 "yaw": 300,
1523 "x": 1856,
1524 "y": 96,
1525 "w": 32,
1526 "h": 48
1527 },
1528 {
1529 "pitch": 60,
1530 "yaw": 330,
1531 "x": 1888,
1532 "y": 96,
1533 "w": 32,
1534 "h": 48
1535 }
1536 ]
1537 },
1538 {
1539 "index": 3,
1540 "views": [
1541 {
1542 "pitch": -60,
1543 "yaw": 0,
1544 "x": 0,
1545 "y": 144,
1546 "w": 32,
1547 "h": 48
1548 },
1549 {
1550 "pitch": -60,
1551 "yaw": 30,
1552 "x": 32,
1553 "y": 144,
1554 "w": 32,
1555 "h": 48
1556 },
1557 {
1558 "pitch": -60,
1559 "yaw": 60,
1560 "x": 64,
1561 "y": 144,
1562 "w": 32,
1563 "h": 48
1564 },
1565 {
1566 "pitch": -60,
1567 "yaw": 90,
1568 "x": 96,
1569 "y": 144,
1570 "w": 32,
1571 "h": 48
1572 },
1573 {
1574 "pitch": -60,
1575 "yaw": 120,
1576 "x": 128,
1577 "y": 144,
1578 "w": 32,
1579 "h": 48
1580 },
1581 {
1582 "pitch": -60,
1583 "yaw": 150,
1584 "x": 160,
1585 "y": 144,
1586 "w": 32,
1587 "h": 48
1588 },
1589 {
1590 "pitch": -60,
1591 "yaw": 180,
1592 "x": 192,
1593 "y": 144,
1594 "w": 32,
1595 "h": 48
1596 },
1597 {
1598 "pitch": -60,
1599 "yaw": 210,
1600 "x": 224,
1601 "y": 144,
1602 "w": 32,
1603 "h": 48
1604 },
1605 {
1606 "pitch": -60,
1607 "yaw": 240,
1608 "x": 256,
1609 "y": 144,
1610 "w": 32,
1611 "h": 48
1612 },
1613 {
1614 "pitch": -60,
1615 "yaw": 270,
1616 "x": 288,
1617 "y": 144,
1618 "w": 32,
1619 "h": 48
1620 },
1621 {
1622 "pitch": -60,
1623 "yaw": 300,
1624 "x": 320,
1625 "y": 144,
1626 "w": 32,
1627 "h": 48
1628 },
1629 {
1630 "pitch": -60,
1631 "yaw": 330,
1632 "x": 352,
1633 "y": 144,
1634 "w": 32,
1635 "h": 48
1636 },
1637 {
1638 "pitch": -30,
1639 "yaw": 0,
1640 "x": 384,
1641 "y": 144,
1642 "w": 32,
1643 "h": 48
1644 },
1645 {
1646 "pitch": -30,
1647 "yaw": 30,
1648 "x": 416,
1649 "y": 144,
1650 "w": 32,
1651 "h": 48
1652 },
1653 {
1654 "pitch": -30,
1655 "yaw": 60,
1656 "x": 448,
1657 "y": 144,
1658 "w": 32,
1659 "h": 48
1660 },
1661 {
1662 "pitch": -30,
1663 "yaw": 90,
1664 "x": 480,
1665 "y": 144,
1666 "w": 32,
1667 "h": 48
1668 },
1669 {
1670 "pitch": -30,
1671 "yaw": 120,
1672 "x": 512,
1673 "y": 144,
1674 "w": 32,
1675 "h": 48
1676 },
1677 {
1678 "pitch": -30,
1679 "yaw": 150,
1680 "x": 544,
1681 "y": 144,
1682 "w": 32,
1683 "h": 48
1684 },
1685 {
1686 "pitch": -30,
1687 "yaw": 180,
1688 "x": 576,
1689 "y": 144,
1690 "w": 32,
1691 "h": 48
1692 },
1693 {
1694 "pitch": -30,
1695 "yaw": 210,
1696 "x": 608,
1697 "y": 144,
1698 "w": 32,
1699 "h": 48
1700 },
1701 {
1702 "pitch": -30,
1703 "yaw": 240,
1704 "x": 640,
1705 "y": 144,
1706 "w": 32,
1707 "h": 48
1708 },
1709 {
1710 "pitch": -30,
1711 "yaw": 270,
1712 "x": 672,
1713 "y": 144,
1714 "w": 32,
1715 "h": 48
1716 },
1717 {
1718 "pitch": -30,
1719 "yaw": 300,
1720 "x": 704,
1721 "y": 144,
1722 "w": 32,
1723 "h": 48
1724 },
1725 {
1726 "pitch": -30,
1727 "yaw": 330,
1728 "x": 736,
1729 "y": 144,
1730 "w": 32,
1731 "h": 48
1732 },
1733 {
1734 "pitch": 0,
1735 "yaw": 0,
1736 "x": 768,
1737 "y": 144,
1738 "w": 32,
1739 "h": 48
1740 },
1741 {
1742 "pitch": 0,
1743 "yaw": 30,
1744 "x": 800,
1745 "y": 144,
1746 "w": 32,
1747 "h": 48
1748 },
1749 {
1750 "pitch": 0,
1751 "yaw": 60,
1752 "x": 832,
1753 "y": 144,
1754 "w": 32,
1755 "h": 48
1756 },
1757 {
1758 "pitch": 0,
1759 "yaw": 90,
1760 "x": 864,
1761 "y": 144,
1762 "w": 32,
1763 "h": 48
1764 },
1765 {
1766 "pitch": 0,
1767 "yaw": 120,
1768 "x": 896,
1769 "y": 144,
1770 "w": 32,
1771 "h": 48
1772 },
1773 {
1774 "pitch": 0,
1775 "yaw": 150,
1776 "x": 928,
1777 "y": 144,
1778 "w": 32,
1779 "h": 48
1780 },
1781 {
1782 "pitch": 0,
1783 "yaw": 180,
1784 "x": 960,
1785 "y": 144,
1786 "w": 32,
1787 "h": 48
1788 },
1789 {
1790 "pitch": 0,
1791 "yaw": 210,
1792 "x": 992,
1793 "y": 144,
1794 "w": 32,
1795 "h": 48
1796 },
1797 {
1798 "pitch": 0,
1799 "yaw": 240,
1800 "x": 1024,
1801 "y": 144,
1802 "w": 32,
1803 "h": 48
1804 },
1805 {
1806 "pitch": 0,
1807 "yaw": 270,
1808 "x": 1056,
1809 "y": 144,
1810 "w": 32,
1811 "h": 48
1812 },
1813 {
1814 "pitch": 0,
1815 "yaw": 300,
1816 "x": 1088,
1817 "y": 144,
1818 "w": 32,
1819 "h": 48
1820 },
1821 {
1822 "pitch": 0,
1823 "yaw": 330,
1824 "x": 1120,
1825 "y": 144,
1826 "w": 32,
1827 "h": 48
1828 },
1829 {
1830 "pitch": 30,
1831 "yaw": 0,
1832 "x": 1152,
1833 "y": 144,
1834 "w": 32,
1835 "h": 48
1836 },
1837 {
1838 "pitch": 30,
1839 "yaw": 30,
1840 "x": 1184,
1841 "y": 144,
1842 "w": 32,
1843 "h": 48
1844 },
1845 {
1846 "pitch": 30,
1847 "yaw": 60,
1848 "x": 1216,
1849 "y": 144,
1850 "w": 32,
1851 "h": 48
1852 },
1853 {
1854 "pitch": 30,
1855 "yaw": 90,
1856 "x": 1248,
1857 "y": 144,
1858 "w": 32,
1859 "h": 48
1860 },
1861 {
1862 "pitch": 30,
1863 "yaw": 120,
1864 "x": 1280,
1865 "y": 144,
1866 "w": 32,
1867 "h": 48
1868 },
1869 {
1870 "pitch": 30,
1871 "yaw": 150,
1872 "x": 1312,
1873 "y": 144,
1874 "w": 32,
1875 "h": 48
1876 },
1877 {
1878 "pitch": 30,
1879 "yaw": 180,
1880 "x": 1344,
1881 "y": 144,
1882 "w": 32,
1883 "h": 48
1884 },
1885 {
1886 "pitch": 30,
1887 "yaw": 210,
1888 "x": 1376,
1889 "y": 144,
1890 "w": 32,
1891 "h": 48
1892 },
1893 {
1894 "pitch": 30,
1895 "yaw": 240,
1896 "x": 1408,
1897 "y": 144,
1898 "w": 32,
1899 "h": 48
1900 },
1901 {
1902 "pitch": 30,
1903 "yaw": 270,
1904 "x": 1440,
1905 "y": 144,
1906 "w": 32,
1907 "h": 48
1908 },
1909 {
1910 "pitch": 30,
1911 "yaw": 300,
1912 "x": 1472,
1913 "y": 144,
1914 "w": 32,
1915 "h": 48
1916 },
1917 {
1918 "pitch": 30,
1919 "yaw": 330,
1920 "x": 1504,
1921 "y": 144,
1922 "w": 32,
1923 "h": 48
1924 },
1925 {
1926 "pitch": 60,
1927 "yaw": 0,
1928 "x": 1536,
1929 "y": 144,
1930 "w": 32,
1931 "h": 48
1932 },
1933 {
1934 "pitch": 60,
1935 "yaw": 30,
1936 "x": 1568,
1937 "y": 144,
1938 "w": 32,
1939 "h": 48
1940 },
1941 {
1942 "pitch": 60,
1943 "yaw": 60,
1944 "x": 1600,
1945 "y": 144,
1946 "w": 32,
1947 "h": 48
1948 },
1949 {
1950 "pitch": 60,
1951 "yaw": 90,
1952 "x": 1632,
1953 "y": 144,
1954 "w": 32,
1955 "h": 48
1956 },
1957 {
1958 "pitch": 60,
1959 "yaw": 120,
1960 "x": 1664,
1961 "y": 144,
1962 "w": 32,
1963 "h": 48
1964 },
1965 {
1966 "pitch": 60,
1967 "yaw": 150,
1968 "x": 1696,
1969 "y": 144,
1970 "w": 32,
1971 "h": 48
1972 },
1973 {
1974 "pitch": 60,
1975 "yaw": 180,
1976 "x": 1728,
1977 "y": 144,
1978 "w": 32,
1979 "h": 48
1980 },
1981 {
1982 "pitch": 60,
1983 "yaw": 210,
1984 "x": 1760,
1985 "y": 144,
1986 "w": 32,
1987 "h": 48
1988 },
1989 {
1990 "pitch": 60,
1991 "yaw": 240,
1992 "x": 1792,
1993 "y": 144,
1994 "w": 32,
1995 "h": 48
1996 },
1997 {
1998 "pitch": 60,
1999 "yaw": 270,
2000 "x": 1824,
2001 "y": 144,
2002 "w": 32,
2003 "h": 48
2004 },
2005 {
2006 "pitch": 60,
2007 "yaw": 300,
2008 "x": 1856,
2009 "y": 144,
2010 "w": 32,
2011 "h": 48
2012 },
2013 {
2014 "pitch": 60,
2015 "yaw": 330,
2016 "x": 1888,
2017 "y": 144,
2018 "w": 32,
2019 "h": 48
2020 }
2021 ]
2022 }
2023 ]
2024 },
2025 {
2026 "source_index": 1,
2027 "name": "attack",
2028 "token": "clip001-attack",
2029 "frame_count": 4,
2030 "duration": 0.8,
2031 "frames": [
2032 {
2033 "index": 0,
2034 "views": [
2035 {
2036 "pitch": -60,
2037 "yaw": 0,
2038 "x": 0,
2039 "y": 192,
2040 "w": 32,
2041 "h": 48
2042 },
2043 {
2044 "pitch": -60,
2045 "yaw": 30,
2046 "x": 32,
2047 "y": 192,
2048 "w": 32,
2049 "h": 48
2050 },
2051 {
2052 "pitch": -60,
2053 "yaw": 60,
2054 "x": 64,
2055 "y": 192,
2056 "w": 32,
2057 "h": 48
2058 },
2059 {
2060 "pitch": -60,
2061 "yaw": 90,
2062 "x": 96,
2063 "y": 192,
2064 "w": 32,
2065 "h": 48
2066 },
2067 {
2068 "pitch": -60,
2069 "yaw": 120,
2070 "x": 128,
2071 "y": 192,
2072 "w": 32,
2073 "h": 48
2074 },
2075 {
2076 "pitch": -60,
2077 "yaw": 150,
2078 "x": 160,
2079 "y": 192,
2080 "w": 32,
2081 "h": 48
2082 },
2083 {
2084 "pitch": -60,
2085 "yaw": 180,
2086 "x": 192,
2087 "y": 192,
2088 "w": 32,
2089 "h": 48
2090 },
2091 {
2092 "pitch": -60,
2093 "yaw": 210,
2094 "x": 224,
2095 "y": 192,
2096 "w": 32,
2097 "h": 48
2098 },
2099 {
2100 "pitch": -60,
2101 "yaw": 240,
2102 "x": 256,
2103 "y": 192,
2104 "w": 32,
2105 "h": 48
2106 },
2107 {
2108 "pitch": -60,
2109 "yaw": 270,
2110 "x": 288,
2111 "y": 192,
2112 "w": 32,
2113 "h": 48
2114 },
2115 {
2116 "pitch": -60,
2117 "yaw": 300,
2118 "x": 320,
2119 "y": 192,
2120 "w": 32,
2121 "h": 48
2122 },
2123 {
2124 "pitch": -60,
2125 "yaw": 330,
2126 "x": 352,
2127 "y": 192,
2128 "w": 32,
2129 "h": 48
2130 },
2131 {
2132 "pitch": -30,
2133 "yaw": 0,
2134 "x": 384,
2135 "y": 192,
2136 "w": 32,
2137 "h": 48
2138 },
2139 {
2140 "pitch": -30,
2141 "yaw": 30,
2142 "x": 416,
2143 "y": 192,
2144 "w": 32,
2145 "h": 48
2146 },
2147 {
2148 "pitch": -30,
2149 "yaw": 60,
2150 "x": 448,
2151 "y": 192,
2152 "w": 32,
2153 "h": 48
2154 },
2155 {
2156 "pitch": -30,
2157 "yaw": 90,
2158 "x": 480,
2159 "y": 192,
2160 "w": 32,
2161 "h": 48
2162 },
2163 {
2164 "pitch": -30,
2165 "yaw": 120,
2166 "x": 512,
2167 "y": 192,
2168 "w": 32,
2169 "h": 48
2170 },
2171 {
2172 "pitch": -30,
2173 "yaw": 150,
2174 "x": 544,
2175 "y": 192,
2176 "w": 32,
2177 "h": 48
2178 },
2179 {
2180 "pitch": -30,
2181 "yaw": 180,
2182 "x": 576,
2183 "y": 192,
2184 "w": 32,
2185 "h": 48
2186 },
2187 {
2188 "pitch": -30,
2189 "yaw": 210,
2190 "x": 608,
2191 "y": 192,
2192 "w": 32,
2193 "h": 48
2194 },
2195 {
2196 "pitch": -30,
2197 "yaw": 240,
2198 "x": 640,
2199 "y": 192,
2200 "w": 32,
2201 "h": 48
2202 },
2203 {
2204 "pitch": -30,
2205 "yaw": 270,
2206 "x": 672,
2207 "y": 192,
2208 "w": 32,
2209 "h": 48
2210 },
2211 {
2212 "pitch": -30,
2213 "yaw": 300,
2214 "x": 704,
2215 "y": 192,
2216 "w": 32,
2217 "h": 48
2218 },
2219 {
2220 "pitch": -30,
2221 "yaw": 330,
2222 "x": 736,
2223 "y": 192,
2224 "w": 32,
2225 "h": 48
2226 },
2227 {
2228 "pitch": 0,
2229 "yaw": 0,
2230 "x": 768,
2231 "y": 192,
2232 "w": 32,
2233 "h": 48
2234 },
2235 {
2236 "pitch": 0,
2237 "yaw": 30,
2238 "x": 800,
2239 "y": 192,
2240 "w": 32,
2241 "h": 48
2242 },
2243 {
2244 "pitch": 0,
2245 "yaw": 60,
2246 "x": 832,
2247 "y": 192,
2248 "w": 32,
2249 "h": 48
2250 },
2251 {
2252 "pitch": 0,
2253 "yaw": 90,
2254 "x": 864,
2255 "y": 192,
2256 "w": 32,
2257 "h": 48
2258 },
2259 {
2260 "pitch": 0,
2261 "yaw": 120,
2262 "x": 896,
2263 "y": 192,
2264 "w": 32,
2265 "h": 48
2266 },
2267 {
2268 "pitch": 0,
2269 "yaw": 150,
2270 "x": 928,
2271 "y": 192,
2272 "w": 32,
2273 "h": 48
2274 },
2275 {
2276 "pitch": 0,
2277 "yaw": 180,
2278 "x": 960,
2279 "y": 192,
2280 "w": 32,
2281 "h": 48
2282 },
2283 {
2284 "pitch": 0,
2285 "yaw": 210,
2286 "x": 992,
2287 "y": 192,
2288 "w": 32,
2289 "h": 48
2290 },
2291 {
2292 "pitch": 0,
2293 "yaw": 240,
2294 "x": 1024,
2295 "y": 192,
2296 "w": 32,
2297 "h": 48
2298 },
2299 {
2300 "pitch": 0,
2301 "yaw": 270,
2302 "x": 1056,
2303 "y": 192,
2304 "w": 32,
2305 "h": 48
2306 },
2307 {
2308 "pitch": 0,
2309 "yaw": 300,
2310 "x": 1088,
2311 "y": 192,
2312 "w": 32,
2313 "h": 48
2314 },
2315 {
2316 "pitch": 0,
2317 "yaw": 330,
2318 "x": 1120,
2319 "y": 192,
2320 "w": 32,
2321 "h": 48
2322 },
2323 {
2324 "pitch": 30,
2325 "yaw": 0,
2326 "x": 1152,
2327 "y": 192,
2328 "w": 32,
2329 "h": 48
2330 },
2331 {
2332 "pitch": 30,
2333 "yaw": 30,
2334 "x": 1184,
2335 "y": 192,
2336 "w": 32,
2337 "h": 48
2338 },
2339 {
2340 "pitch": 30,
2341 "yaw": 60,
2342 "x": 1216,
2343 "y": 192,
2344 "w": 32,
2345 "h": 48
2346 },
2347 {
2348 "pitch": 30,
2349 "yaw": 90,
2350 "x": 1248,
2351 "y": 192,
2352 "w": 32,
2353 "h": 48
2354 },
2355 {
2356 "pitch": 30,
2357 "yaw": 120,
2358 "x": 1280,
2359 "y": 192,
2360 "w": 32,
2361 "h": 48
2362 },
2363 {
2364 "pitch": 30,
2365 "yaw": 150,
2366 "x": 1312,
2367 "y": 192,
2368 "w": 32,
2369 "h": 48
2370 },
2371 {
2372 "pitch": 30,
2373 "yaw": 180,
2374 "x": 1344,
2375 "y": 192,
2376 "w": 32,
2377 "h": 48
2378 },
2379 {
2380 "pitch": 30,
2381 "yaw": 210,
2382 "x": 1376,
2383 "y": 192,
2384 "w": 32,
2385 "h": 48
2386 },
2387 {
2388 "pitch": 30,
2389 "yaw": 240,
2390 "x": 1408,
2391 "y": 192,
2392 "w": 32,
2393 "h": 48
2394 },
2395 {
2396 "pitch": 30,
2397 "yaw": 270,
2398 "x": 1440,
2399 "y": 192,
2400 "w": 32,
2401 "h": 48
2402 },
2403 {
2404 "pitch": 30,
2405 "yaw": 300,
2406 "x": 1472,
2407 "y": 192,
2408 "w": 32,
2409 "h": 48
2410 },
2411 {
2412 "pitch": 30,
2413 "yaw": 330,
2414 "x": 1504,
2415 "y": 192,
2416 "w": 32,
2417 "h": 48
2418 },
2419 {
2420 "pitch": 60,
2421 "yaw": 0,
2422 "x": 1536,
2423 "y": 192,
2424 "w": 32,
2425 "h": 48
2426 },
2427 {
2428 "pitch": 60,
2429 "yaw": 30,
2430 "x": 1568,
2431 "y": 192,
2432 "w": 32,
2433 "h": 48
2434 },
2435 {
2436 "pitch": 60,
2437 "yaw": 60,
2438 "x": 1600,
2439 "y": 192,
2440 "w": 32,
2441 "h": 48
2442 },
2443 {
2444 "pitch": 60,
2445 "yaw": 90,
2446 "x": 1632,
2447 "y": 192,
2448 "w": 32,
2449 "h": 48
2450 },
2451 {
2452 "pitch": 60,
2453 "yaw": 120,
2454 "x": 1664,
2455 "y": 192,
2456 "w": 32,
2457 "h": 48
2458 },
2459 {
2460 "pitch": 60,
2461 "yaw": 150,
2462 "x": 1696,
2463 "y": 192,
2464 "w": 32,
2465 "h": 48
2466 },
2467 {
2468 "pitch": 60,
2469 "yaw": 180,
2470 "x": 1728,
2471 "y": 192,
2472 "w": 32,
2473 "h": 48
2474 },
2475 {
2476 "pitch": 60,
2477 "yaw": 210,
2478 "x": 1760,
2479 "y": 192,
2480 "w": 32,
2481 "h": 48
2482 },
2483 {
2484 "pitch": 60,
2485 "yaw": 240,
2486 "x": 1792,
2487 "y": 192,
2488 "w": 32,
2489 "h": 48
2490 },
2491 {
2492 "pitch": 60,
2493 "yaw": 270,
2494 "x": 1824,
2495 "y": 192,
2496 "w": 32,
2497 "h": 48
2498 },
2499 {
2500 "pitch": 60,
2501 "yaw": 300,
2502 "x": 1856,
2503 "y": 192,
2504 "w": 32,
2505 "h": 48
2506 },
2507 {
2508 "pitch": 60,
2509 "yaw": 330,
2510 "x": 1888,
2511 "y": 192,
2512 "w": 32,
2513 "h": 48
2514 }
2515 ]
2516 },
2517 {
2518 "index": 1,
2519 "views": [
2520 {
2521 "pitch": -60,
2522 "yaw": 0,
2523 "x": 0,
2524 "y": 240,
2525 "w": 32,
2526 "h": 48
2527 },
2528 {
2529 "pitch": -60,
2530 "yaw": 30,
2531 "x": 32,
2532 "y": 240,
2533 "w": 32,
2534 "h": 48
2535 },
2536 {
2537 "pitch": -60,
2538 "yaw": 60,
2539 "x": 64,
2540 "y": 240,
2541 "w": 32,
2542 "h": 48
2543 },
2544 {
2545 "pitch": -60,
2546 "yaw": 90,
2547 "x": 96,
2548 "y": 240,
2549 "w": 32,
2550 "h": 48
2551 },
2552 {
2553 "pitch": -60,
2554 "yaw": 120,
2555 "x": 128,
2556 "y": 240,
2557 "w": 32,
2558 "h": 48
2559 },
2560 {
2561 "pitch": -60,
2562 "yaw": 150,
2563 "x": 160,
2564 "y": 240,
2565 "w": 32,
2566 "h": 48
2567 },
2568 {
2569 "pitch": -60,
2570 "yaw": 180,
2571 "x": 192,
2572 "y": 240,
2573 "w": 32,
2574 "h": 48
2575 },
2576 {
2577 "pitch": -60,
2578 "yaw": 210,
2579 "x": 224,
2580 "y": 240,
2581 "w": 32,
2582 "h": 48
2583 },
2584 {
2585 "pitch": -60,
2586 "yaw": 240,
2587 "x": 256,
2588 "y": 240,
2589 "w": 32,
2590 "h": 48
2591 },
2592 {
2593 "pitch": -60,
2594 "yaw": 270,
2595 "x": 288,
2596 "y": 240,
2597 "w": 32,
2598 "h": 48
2599 },
2600 {
2601 "pitch": -60,
2602 "yaw": 300,
2603 "x": 320,
2604 "y": 240,
2605 "w": 32,
2606 "h": 48
2607 },
2608 {
2609 "pitch": -60,
2610 "yaw": 330,
2611 "x": 352,
2612 "y": 240,
2613 "w": 32,
2614 "h": 48
2615 },
2616 {
2617 "pitch": -30,
2618 "yaw": 0,
2619 "x": 384,
2620 "y": 240,
2621 "w": 32,
2622 "h": 48
2623 },
2624 {
2625 "pitch": -30,
2626 "yaw": 30,
2627 "x": 416,
2628 "y": 240,
2629 "w": 32,
2630 "h": 48
2631 },
2632 {
2633 "pitch": -30,
2634 "yaw": 60,
2635 "x": 448,
2636 "y": 240,
2637 "w": 32,
2638 "h": 48
2639 },
2640 {
2641 "pitch": -30,
2642 "yaw": 90,
2643 "x": 480,
2644 "y": 240,
2645 "w": 32,
2646 "h": 48
2647 },
2648 {
2649 "pitch": -30,
2650 "yaw": 120,
2651 "x": 512,
2652 "y": 240,
2653 "w": 32,
2654 "h": 48
2655 },
2656 {
2657 "pitch": -30,
2658 "yaw": 150,
2659 "x": 544,
2660 "y": 240,
2661 "w": 32,
2662 "h": 48
2663 },
2664 {
2665 "pitch": -30,
2666 "yaw": 180,
2667 "x": 576,
2668 "y": 240,
2669 "w": 32,
2670 "h": 48
2671 },
2672 {
2673 "pitch": -30,
2674 "yaw": 210,
2675 "x": 608,
2676 "y": 240,
2677 "w": 32,
2678 "h": 48
2679 },
2680 {
2681 "pitch": -30,
2682 "yaw": 240,
2683 "x": 640,
2684 "y": 240,
2685 "w": 32,
2686 "h": 48
2687 },
2688 {
2689 "pitch": -30,
2690 "yaw": 270,
2691 "x": 672,
2692 "y": 240,
2693 "w": 32,
2694 "h": 48
2695 },
2696 {
2697 "pitch": -30,
2698 "yaw": 300,
2699 "x": 704,
2700 "y": 240,
2701 "w": 32,
2702 "h": 48
2703 },
2704 {
2705 "pitch": -30,
2706 "yaw": 330,
2707 "x": 736,
2708 "y": 240,
2709 "w": 32,
2710 "h": 48
2711 },
2712 {
2713 "pitch": 0,
2714 "yaw": 0,
2715 "x": 768,
2716 "y": 240,
2717 "w": 32,
2718 "h": 48
2719 },
2720 {
2721 "pitch": 0,
2722 "yaw": 30,
2723 "x": 800,
2724 "y": 240,
2725 "w": 32,
2726 "h": 48
2727 },
2728 {
2729 "pitch": 0,
2730 "yaw": 60,
2731 "x": 832,
2732 "y": 240,
2733 "w": 32,
2734 "h": 48
2735 },
2736 {
2737 "pitch": 0,
2738 "yaw": 90,
2739 "x": 864,
2740 "y": 240,
2741 "w": 32,
2742 "h": 48
2743 },
2744 {
2745 "pitch": 0,
2746 "yaw": 120,
2747 "x": 896,
2748 "y": 240,
2749 "w": 32,
2750 "h": 48
2751 },
2752 {
2753 "pitch": 0,
2754 "yaw": 150,
2755 "x": 928,
2756 "y": 240,
2757 "w": 32,
2758 "h": 48
2759 },
2760 {
2761 "pitch": 0,
2762 "yaw": 180,
2763 "x": 960,
2764 "y": 240,
2765 "w": 32,
2766 "h": 48
2767 },
2768 {
2769 "pitch": 0,
2770 "yaw": 210,
2771 "x": 992,
2772 "y": 240,
2773 "w": 32,
2774 "h": 48
2775 },
2776 {
2777 "pitch": 0,
2778 "yaw": 240,
2779 "x": 1024,
2780 "y": 240,
2781 "w": 32,
2782 "h": 48
2783 },
2784 {
2785 "pitch": 0,
2786 "yaw": 270,
2787 "x": 1056,
2788 "y": 240,
2789 "w": 32,
2790 "h": 48
2791 },
2792 {
2793 "pitch": 0,
2794 "yaw": 300,
2795 "x": 1088,
2796 "y": 240,
2797 "w": 32,
2798 "h": 48
2799 },
2800 {
2801 "pitch": 0,
2802 "yaw": 330,
2803 "x": 1120,
2804 "y": 240,
2805 "w": 32,
2806 "h": 48
2807 },
2808 {
2809 "pitch": 30,
2810 "yaw": 0,
2811 "x": 1152,
2812 "y": 240,
2813 "w": 32,
2814 "h": 48
2815 },
2816 {
2817 "pitch": 30,
2818 "yaw": 30,
2819 "x": 1184,
2820 "y": 240,
2821 "w": 32,
2822 "h": 48
2823 },
2824 {
2825 "pitch": 30,
2826 "yaw": 60,
2827 "x": 1216,
2828 "y": 240,
2829 "w": 32,
2830 "h": 48
2831 },
2832 {
2833 "pitch": 30,
2834 "yaw": 90,
2835 "x": 1248,
2836 "y": 240,
2837 "w": 32,
2838 "h": 48
2839 },
2840 {
2841 "pitch": 30,
2842 "yaw": 120,
2843 "x": 1280,
2844 "y": 240,
2845 "w": 32,
2846 "h": 48
2847 },
2848 {
2849 "pitch": 30,
2850 "yaw": 150,
2851 "x": 1312,
2852 "y": 240,
2853 "w": 32,
2854 "h": 48
2855 },
2856 {
2857 "pitch": 30,
2858 "yaw": 180,
2859 "x": 1344,
2860 "y": 240,
2861 "w": 32,
2862 "h": 48
2863 },
2864 {
2865 "pitch": 30,
2866 "yaw": 210,
2867 "x": 1376,
2868 "y": 240,
2869 "w": 32,
2870 "h": 48
2871 },
2872 {
2873 "pitch": 30,
2874 "yaw": 240,
2875 "x": 1408,
2876 "y": 240,
2877 "w": 32,
2878 "h": 48
2879 },
2880 {
2881 "pitch": 30,
2882 "yaw": 270,
2883 "x": 1440,
2884 "y": 240,
2885 "w": 32,
2886 "h": 48
2887 },
2888 {
2889 "pitch": 30,
2890 "yaw": 300,
2891 "x": 1472,
2892 "y": 240,
2893 "w": 32,
2894 "h": 48
2895 },
2896 {
2897 "pitch": 30,
2898 "yaw": 330,
2899 "x": 1504,
2900 "y": 240,
2901 "w": 32,
2902 "h": 48
2903 },
2904 {
2905 "pitch": 60,
2906 "yaw": 0,
2907 "x": 1536,
2908 "y": 240,
2909 "w": 32,
2910 "h": 48
2911 },
2912 {
2913 "pitch": 60,
2914 "yaw": 30,
2915 "x": 1568,
2916 "y": 240,
2917 "w": 32,
2918 "h": 48
2919 },
2920 {
2921 "pitch": 60,
2922 "yaw": 60,
2923 "x": 1600,
2924 "y": 240,
2925 "w": 32,
2926 "h": 48
2927 },
2928 {
2929 "pitch": 60,
2930 "yaw": 90,
2931 "x": 1632,
2932 "y": 240,
2933 "w": 32,
2934 "h": 48
2935 },
2936 {
2937 "pitch": 60,
2938 "yaw": 120,
2939 "x": 1664,
2940 "y": 240,
2941 "w": 32,
2942 "h": 48
2943 },
2944 {
2945 "pitch": 60,
2946 "yaw": 150,
2947 "x": 1696,
2948 "y": 240,
2949 "w": 32,
2950 "h": 48
2951 },
2952 {
2953 "pitch": 60,
2954 "yaw": 180,
2955 "x": 1728,
2956 "y": 240,
2957 "w": 32,
2958 "h": 48
2959 },
2960 {
2961 "pitch": 60,
2962 "yaw": 210,
2963 "x": 1760,
2964 "y": 240,
2965 "w": 32,
2966 "h": 48
2967 },
2968 {
2969 "pitch": 60,
2970 "yaw": 240,
2971 "x": 1792,
2972 "y": 240,
2973 "w": 32,
2974 "h": 48
2975 },
2976 {
2977 "pitch": 60,
2978 "yaw": 270,
2979 "x": 1824,
2980 "y": 240,
2981 "w": 32,
2982 "h": 48
2983 },
2984 {
2985 "pitch": 60,
2986 "yaw": 300,
2987 "x": 1856,
2988 "y": 240,
2989 "w": 32,
2990 "h": 48
2991 },
2992 {
2993 "pitch": 60,
2994 "yaw": 330,
2995 "x": 1888,
2996 "y": 240,
2997 "w": 32,
2998 "h": 48
2999 }
3000 ]
3001 },
3002 {
3003 "index": 2,
3004 "views": [
3005 {
3006 "pitch": -60,
3007 "yaw": 0,
3008 "x": 0,
3009 "y": 288,
3010 "w": 32,
3011 "h": 48
3012 },
3013 {
3014 "pitch": -60,
3015 "yaw": 30,
3016 "x": 32,
3017 "y": 288,
3018 "w": 32,
3019 "h": 48
3020 },
3021 {
3022 "pitch": -60,
3023 "yaw": 60,
3024 "x": 64,
3025 "y": 288,
3026 "w": 32,
3027 "h": 48
3028 },
3029 {
3030 "pitch": -60,
3031 "yaw": 90,
3032 "x": 96,
3033 "y": 288,
3034 "w": 32,
3035 "h": 48
3036 },
3037 {
3038 "pitch": -60,
3039 "yaw": 120,
3040 "x": 128,
3041 "y": 288,
3042 "w": 32,
3043 "h": 48
3044 },
3045 {
3046 "pitch": -60,
3047 "yaw": 150,
3048 "x": 160,
3049 "y": 288,
3050 "w": 32,
3051 "h": 48
3052 },
3053 {
3054 "pitch": -60,
3055 "yaw": 180,
3056 "x": 192,
3057 "y": 288,
3058 "w": 32,
3059 "h": 48
3060 },
3061 {
3062 "pitch": -60,
3063 "yaw": 210,
3064 "x": 224,
3065 "y": 288,
3066 "w": 32,
3067 "h": 48
3068 },
3069 {
3070 "pitch": -60,
3071 "yaw": 240,
3072 "x": 256,
3073 "y": 288,
3074 "w": 32,
3075 "h": 48
3076 },
3077 {
3078 "pitch": -60,
3079 "yaw": 270,
3080 "x": 288,
3081 "y": 288,
3082 "w": 32,
3083 "h": 48
3084 },
3085 {
3086 "pitch": -60,
3087 "yaw": 300,
3088 "x": 320,
3089 "y": 288,
3090 "w": 32,
3091 "h": 48
3092 },
3093 {
3094 "pitch": -60,
3095 "yaw": 330,
3096 "x": 352,
3097 "y": 288,
3098 "w": 32,
3099 "h": 48
3100 },
3101 {
3102 "pitch": -30,
3103 "yaw": 0,
3104 "x": 384,
3105 "y": 288,
3106 "w": 32,
3107 "h": 48
3108 },
3109 {
3110 "pitch": -30,
3111 "yaw": 30,
3112 "x": 416,
3113 "y": 288,
3114 "w": 32,
3115 "h": 48
3116 },
3117 {
3118 "pitch": -30,
3119 "yaw": 60,
3120 "x": 448,
3121 "y": 288,
3122 "w": 32,
3123 "h": 48
3124 },
3125 {
3126 "pitch": -30,
3127 "yaw": 90,
3128 "x": 480,
3129 "y": 288,
3130 "w": 32,
3131 "h": 48
3132 },
3133 {
3134 "pitch": -30,
3135 "yaw": 120,
3136 "x": 512,
3137 "y": 288,
3138 "w": 32,
3139 "h": 48
3140 },
3141 {
3142 "pitch": -30,
3143 "yaw": 150,
3144 "x": 544,
3145 "y": 288,
3146 "w": 32,
3147 "h": 48
3148 },
3149 {
3150 "pitch": -30,
3151 "yaw": 180,
3152 "x": 576,
3153 "y": 288,
3154 "w": 32,
3155 "h": 48
3156 },
3157 {
3158 "pitch": -30,
3159 "yaw": 210,
3160 "x": 608,
3161 "y": 288,
3162 "w": 32,
3163 "h": 48
3164 },
3165 {
3166 "pitch": -30,
3167 "yaw": 240,
3168 "x": 640,
3169 "y": 288,
3170 "w": 32,
3171 "h": 48
3172 },
3173 {
3174 "pitch": -30,
3175 "yaw": 270,
3176 "x": 672,
3177 "y": 288,
3178 "w": 32,
3179 "h": 48
3180 },
3181 {
3182 "pitch": -30,
3183 "yaw": 300,
3184 "x": 704,
3185 "y": 288,
3186 "w": 32,
3187 "h": 48
3188 },
3189 {
3190 "pitch": -30,
3191 "yaw": 330,
3192 "x": 736,
3193 "y": 288,
3194 "w": 32,
3195 "h": 48
3196 },
3197 {
3198 "pitch": 0,
3199 "yaw": 0,
3200 "x": 768,
3201 "y": 288,
3202 "w": 32,
3203 "h": 48
3204 },
3205 {
3206 "pitch": 0,
3207 "yaw": 30,
3208 "x": 800,
3209 "y": 288,
3210 "w": 32,
3211 "h": 48
3212 },
3213 {
3214 "pitch": 0,
3215 "yaw": 60,
3216 "x": 832,
3217 "y": 288,
3218 "w": 32,
3219 "h": 48
3220 },
3221 {
3222 "pitch": 0,
3223 "yaw": 90,
3224 "x": 864,
3225 "y": 288,
3226 "w": 32,
3227 "h": 48
3228 },
3229 {
3230 "pitch": 0,
3231 "yaw": 120,
3232 "x": 896,
3233 "y": 288,
3234 "w": 32,
3235 "h": 48
3236 },
3237 {
3238 "pitch": 0,
3239 "yaw": 150,
3240 "x": 928,
3241 "y": 288,
3242 "w": 32,
3243 "h": 48
3244 },
3245 {
3246 "pitch": 0,
3247 "yaw": 180,
3248 "x": 960,
3249 "y": 288,
3250 "w": 32,
3251 "h": 48
3252 },
3253 {
3254 "pitch": 0,
3255 "yaw": 210,
3256 "x": 992,
3257 "y": 288,
3258 "w": 32,
3259 "h": 48
3260 },
3261 {
3262 "pitch": 0,
3263 "yaw": 240,
3264 "x": 1024,
3265 "y": 288,
3266 "w": 32,
3267 "h": 48
3268 },
3269 {
3270 "pitch": 0,
3271 "yaw": 270,
3272 "x": 1056,
3273 "y": 288,
3274 "w": 32,
3275 "h": 48
3276 },
3277 {
3278 "pitch": 0,
3279 "yaw": 300,
3280 "x": 1088,
3281 "y": 288,
3282 "w": 32,
3283 "h": 48
3284 },
3285 {
3286 "pitch": 0,
3287 "yaw": 330,
3288 "x": 1120,
3289 "y": 288,
3290 "w": 32,
3291 "h": 48
3292 },
3293 {
3294 "pitch": 30,
3295 "yaw": 0,
3296 "x": 1152,
3297 "y": 288,
3298 "w": 32,
3299 "h": 48
3300 },
3301 {
3302 "pitch": 30,
3303 "yaw": 30,
3304 "x": 1184,
3305 "y": 288,
3306 "w": 32,
3307 "h": 48
3308 },
3309 {
3310 "pitch": 30,
3311 "yaw": 60,
3312 "x": 1216,
3313 "y": 288,
3314 "w": 32,
3315 "h": 48
3316 },
3317 {
3318 "pitch": 30,
3319 "yaw": 90,
3320 "x": 1248,
3321 "y": 288,
3322 "w": 32,
3323 "h": 48
3324 },
3325 {
3326 "pitch": 30,
3327 "yaw": 120,
3328 "x": 1280,
3329 "y": 288,
3330 "w": 32,
3331 "h": 48
3332 },
3333 {
3334 "pitch": 30,
3335 "yaw": 150,
3336 "x": 1312,
3337 "y": 288,
3338 "w": 32,
3339 "h": 48
3340 },
3341 {
3342 "pitch": 30,
3343 "yaw": 180,
3344 "x": 1344,
3345 "y": 288,
3346 "w": 32,
3347 "h": 48
3348 },
3349 {
3350 "pitch": 30,
3351 "yaw": 210,
3352 "x": 1376,
3353 "y": 288,
3354 "w": 32,
3355 "h": 48
3356 },
3357 {
3358 "pitch": 30,
3359 "yaw": 240,
3360 "x": 1408,
3361 "y": 288,
3362 "w": 32,
3363 "h": 48
3364 },
3365 {
3366 "pitch": 30,
3367 "yaw": 270,
3368 "x": 1440,
3369 "y": 288,
3370 "w": 32,
3371 "h": 48
3372 },
3373 {
3374 "pitch": 30,
3375 "yaw": 300,
3376 "x": 1472,
3377 "y": 288,
3378 "w": 32,
3379 "h": 48
3380 },
3381 {
3382 "pitch": 30,
3383 "yaw": 330,
3384 "x": 1504,
3385 "y": 288,
3386 "w": 32,
3387 "h": 48
3388 },
3389 {
3390 "pitch": 60,
3391 "yaw": 0,
3392 "x": 1536,
3393 "y": 288,
3394 "w": 32,
3395 "h": 48
3396 },
3397 {
3398 "pitch": 60,
3399 "yaw": 30,
3400 "x": 1568,
3401 "y": 288,
3402 "w": 32,
3403 "h": 48
3404 },
3405 {
3406 "pitch": 60,
3407 "yaw": 60,
3408 "x": 1600,
3409 "y": 288,
3410 "w": 32,
3411 "h": 48
3412 },
3413 {
3414 "pitch": 60,
3415 "yaw": 90,
3416 "x": 1632,
3417 "y": 288,
3418 "w": 32,
3419 "h": 48
3420 },
3421 {
3422 "pitch": 60,
3423 "yaw": 120,
3424 "x": 1664,
3425 "y": 288,
3426 "w": 32,
3427 "h": 48
3428 },
3429 {
3430 "pitch": 60,
3431 "yaw": 150,
3432 "x": 1696,
3433 "y": 288,
3434 "w": 32,
3435 "h": 48
3436 },
3437 {
3438 "pitch": 60,
3439 "yaw": 180,
3440 "x": 1728,
3441 "y": 288,
3442 "w": 32,
3443 "h": 48
3444 },
3445 {
3446 "pitch": 60,
3447 "yaw": 210,
3448 "x": 1760,
3449 "y": 288,
3450 "w": 32,
3451 "h": 48
3452 },
3453 {
3454 "pitch": 60,
3455 "yaw": 240,
3456 "x": 1792,
3457 "y": 288,
3458 "w": 32,
3459 "h": 48
3460 },
3461 {
3462 "pitch": 60,
3463 "yaw": 270,
3464 "x": 1824,
3465 "y": 288,
3466 "w": 32,
3467 "h": 48
3468 },
3469 {
3470 "pitch": 60,
3471 "yaw": 300,
3472 "x": 1856,
3473 "y": 288,
3474 "w": 32,
3475 "h": 48
3476 },
3477 {
3478 "pitch": 60,
3479 "yaw": 330,
3480 "x": 1888,
3481 "y": 288,
3482 "w": 32,
3483 "h": 48
3484 }
3485 ]
3486 },
3487 {
3488 "index": 3,
3489 "views": [
3490 {
3491 "pitch": -60,
3492 "yaw": 0,
3493 "x": 0,
3494 "y": 336,
3495 "w": 32,
3496 "h": 48
3497 },
3498 {
3499 "pitch": -60,
3500 "yaw": 30,
3501 "x": 32,
3502 "y": 336,
3503 "w": 32,
3504 "h": 48
3505 },
3506 {
3507 "pitch": -60,
3508 "yaw": 60,
3509 "x": 64,
3510 "y": 336,
3511 "w": 32,
3512 "h": 48
3513 },
3514 {
3515 "pitch": -60,
3516 "yaw": 90,
3517 "x": 96,
3518 "y": 336,
3519 "w": 32,
3520 "h": 48
3521 },
3522 {
3523 "pitch": -60,
3524 "yaw": 120,
3525 "x": 128,
3526 "y": 336,
3527 "w": 32,
3528 "h": 48
3529 },
3530 {
3531 "pitch": -60,
3532 "yaw": 150,
3533 "x": 160,
3534 "y": 336,
3535 "w": 32,
3536 "h": 48
3537 },
3538 {
3539 "pitch": -60,
3540 "yaw": 180,
3541 "x": 192,
3542 "y": 336,
3543 "w": 32,
3544 "h": 48
3545 },
3546 {
3547 "pitch": -60,
3548 "yaw": 210,
3549 "x": 224,
3550 "y": 336,
3551 "w": 32,
3552 "h": 48
3553 },
3554 {
3555 "pitch": -60,
3556 "yaw": 240,
3557 "x": 256,
3558 "y": 336,
3559 "w": 32,
3560 "h": 48
3561 },
3562 {
3563 "pitch": -60,
3564 "yaw": 270,
3565 "x": 288,
3566 "y": 336,
3567 "w": 32,
3568 "h": 48
3569 },
3570 {
3571 "pitch": -60,
3572 "yaw": 300,
3573 "x": 320,
3574 "y": 336,
3575 "w": 32,
3576 "h": 48
3577 },
3578 {
3579 "pitch": -60,
3580 "yaw": 330,
3581 "x": 352,
3582 "y": 336,
3583 "w": 32,
3584 "h": 48
3585 },
3586 {
3587 "pitch": -30,
3588 "yaw": 0,
3589 "x": 384,
3590 "y": 336,
3591 "w": 32,
3592 "h": 48
3593 },
3594 {
3595 "pitch": -30,
3596 "yaw": 30,
3597 "x": 416,
3598 "y": 336,
3599 "w": 32,
3600 "h": 48
3601 },
3602 {
3603 "pitch": -30,
3604 "yaw": 60,
3605 "x": 448,
3606 "y": 336,
3607 "w": 32,
3608 "h": 48
3609 },
3610 {
3611 "pitch": -30,
3612 "yaw": 90,
3613 "x": 480,
3614 "y": 336,
3615 "w": 32,
3616 "h": 48
3617 },
3618 {
3619 "pitch": -30,
3620 "yaw": 120,
3621 "x": 512,
3622 "y": 336,
3623 "w": 32,
3624 "h": 48
3625 },
3626 {
3627 "pitch": -30,
3628 "yaw": 150,
3629 "x": 544,
3630 "y": 336,
3631 "w": 32,
3632 "h": 48
3633 },
3634 {
3635 "pitch": -30,
3636 "yaw": 180,
3637 "x": 576,
3638 "y": 336,
3639 "w": 32,
3640 "h": 48
3641 },
3642 {
3643 "pitch": -30,
3644 "yaw": 210,
3645 "x": 608,
3646 "y": 336,
3647 "w": 32,
3648 "h": 48
3649 },
3650 {
3651 "pitch": -30,
3652 "yaw": 240,
3653 "x": 640,
3654 "y": 336,
3655 "w": 32,
3656 "h": 48
3657 },
3658 {
3659 "pitch": -30,
3660 "yaw": 270,
3661 "x": 672,
3662 "y": 336,
3663 "w": 32,
3664 "h": 48
3665 },
3666 {
3667 "pitch": -30,
3668 "yaw": 300,
3669 "x": 704,
3670 "y": 336,
3671 "w": 32,
3672 "h": 48
3673 },
3674 {
3675 "pitch": -30,
3676 "yaw": 330,
3677 "x": 736,
3678 "y": 336,
3679 "w": 32,
3680 "h": 48
3681 },
3682 {
3683 "pitch": 0,
3684 "yaw": 0,
3685 "x": 768,
3686 "y": 336,
3687 "w": 32,
3688 "h": 48
3689 },
3690 {
3691 "pitch": 0,
3692 "yaw": 30,
3693 "x": 800,
3694 "y": 336,
3695 "w": 32,
3696 "h": 48
3697 },
3698 {
3699 "pitch": 0,
3700 "yaw": 60,
3701 "x": 832,
3702 "y": 336,
3703 "w": 32,
3704 "h": 48
3705 },
3706 {
3707 "pitch": 0,
3708 "yaw": 90,
3709 "x": 864,
3710 "y": 336,
3711 "w": 32,
3712 "h": 48
3713 },
3714 {
3715 "pitch": 0,
3716 "yaw": 120,
3717 "x": 896,
3718 "y": 336,
3719 "w": 32,
3720 "h": 48
3721 },
3722 {
3723 "pitch": 0,
3724 "yaw": 150,
3725 "x": 928,
3726 "y": 336,
3727 "w": 32,
3728 "h": 48
3729 },
3730 {
3731 "pitch": 0,
3732 "yaw": 180,
3733 "x": 960,
3734 "y": 336,
3735 "w": 32,
3736 "h": 48
3737 },
3738 {
3739 "pitch": 0,
3740 "yaw": 210,
3741 "x": 992,
3742 "y": 336,
3743 "w": 32,
3744 "h": 48
3745 },
3746 {
3747 "pitch": 0,
3748 "yaw": 240,
3749 "x": 1024,
3750 "y": 336,
3751 "w": 32,
3752 "h": 48
3753 },
3754 {
3755 "pitch": 0,
3756 "yaw": 270,
3757 "x": 1056,
3758 "y": 336,
3759 "w": 32,
3760 "h": 48
3761 },
3762 {
3763 "pitch": 0,
3764 "yaw": 300,
3765 "x": 1088,
3766 "y": 336,
3767 "w": 32,
3768 "h": 48
3769 },
3770 {
3771 "pitch": 0,
3772 "yaw": 330,
3773 "x": 1120,
3774 "y": 336,
3775 "w": 32,
3776 "h": 48
3777 },
3778 {
3779 "pitch": 30,
3780 "yaw": 0,
3781 "x": 1152,
3782 "y": 336,
3783 "w": 32,
3784 "h": 48
3785 },
3786 {
3787 "pitch": 30,
3788 "yaw": 30,
3789 "x": 1184,
3790 "y": 336,
3791 "w": 32,
3792 "h": 48
3793 },
3794 {
3795 "pitch": 30,
3796 "yaw": 60,
3797 "x": 1216,
3798 "y": 336,
3799 "w": 32,
3800 "h": 48
3801 },
3802 {
3803 "pitch": 30,
3804 "yaw": 90,
3805 "x": 1248,
3806 "y": 336,
3807 "w": 32,
3808 "h": 48
3809 },
3810 {
3811 "pitch": 30,
3812 "yaw": 120,
3813 "x": 1280,
3814 "y": 336,
3815 "w": 32,
3816 "h": 48
3817 },
3818 {
3819 "pitch": 30,
3820 "yaw": 150,
3821 "x": 1312,
3822 "y": 336,
3823 "w": 32,
3824 "h": 48
3825 },
3826 {
3827 "pitch": 30,
3828 "yaw": 180,
3829 "x": 1344,
3830 "y": 336,
3831 "w": 32,
3832 "h": 48
3833 },
3834 {
3835 "pitch": 30,
3836 "yaw": 210,
3837 "x": 1376,
3838 "y": 336,
3839 "w": 32,
3840 "h": 48
3841 },
3842 {
3843 "pitch": 30,
3844 "yaw": 240,
3845 "x": 1408,
3846 "y": 336,
3847 "w": 32,
3848 "h": 48
3849 },
3850 {
3851 "pitch": 30,
3852 "yaw": 270,
3853 "x": 1440,
3854 "y": 336,
3855 "w": 32,
3856 "h": 48
3857 },
3858 {
3859 "pitch": 30,
3860 "yaw": 300,
3861 "x": 1472,
3862 "y": 336,
3863 "w": 32,
3864 "h": 48
3865 },
3866 {
3867 "pitch": 30,
3868 "yaw": 330,
3869 "x": 1504,
3870 "y": 336,
3871 "w": 32,
3872 "h": 48
3873 },
3874 {
3875 "pitch": 60,
3876 "yaw": 0,
3877 "x": 1536,
3878 "y": 336,
3879 "w": 32,
3880 "h": 48
3881 },
3882 {
3883 "pitch": 60,
3884 "yaw": 30,
3885 "x": 1568,
3886 "y": 336,
3887 "w": 32,
3888 "h": 48
3889 },
3890 {
3891 "pitch": 60,
3892 "yaw": 60,
3893 "x": 1600,
3894 "y": 336,
3895 "w": 32,
3896 "h": 48
3897 },
3898 {
3899 "pitch": 60,
3900 "yaw": 90,
3901 "x": 1632,
3902 "y": 336,
3903 "w": 32,
3904 "h": 48
3905 },
3906 {
3907 "pitch": 60,
3908 "yaw": 120,
3909 "x": 1664,
3910 "y": 336,
3911 "w": 32,
3912 "h": 48
3913 },
3914 {
3915 "pitch": 60,
3916 "yaw": 150,
3917 "x": 1696,
3918 "y": 336,
3919 "w": 32,
3920 "h": 48
3921 },
3922 {
3923 "pitch": 60,
3924 "yaw": 180,
3925 "x": 1728,
3926 "y": 336,
3927 "w": 32,
3928 "h": 48
3929 },
3930 {
3931 "pitch": 60,
3932 "yaw": 210,
3933 "x": 1760,
3934 "y": 336,
3935 "w": 32,
3936 "h": 48
3937 },
3938 {
3939 "pitch": 60,
3940 "yaw": 240,
3941 "x": 1792,
3942 "y": 336,
3943 "w": 32,
3944 "h": 48
3945 },
3946 {
3947 "pitch": 60,
3948 "yaw": 270,
3949 "x": 1824,
3950 "y": 336,
3951 "w": 32,
3952 "h": 48
3953 },
3954 {
3955 "pitch": 60,
3956 "yaw": 300,
3957 "x": 1856,
3958 "y": 336,
3959 "w": 32,
3960 "h": 48
3961 },
3962 {
3963 "pitch": 60,
3964 "yaw": 330,
3965 "x": 1888,
3966 "y": 336,
3967 "w": 32,
3968 "h": 48
3969 }
3970 ]
3971 }
3972 ]
3973 }
3974 ],
3975 "depth_near": 0.05,
3976 "depth_far": 40.0,
3977 "depth_encoding": "gray",
3978 "depth_bits": 16
3979 }
@@ -0,0 +1,3979 @@
1{
2 "format_version": 1,
3 "sex": "male",
4 "settype": "sword",
5 "project": {
6 "id": "ppd-18e5bbc827a5ecf3",
7 "name": "Nieuw project"
8 },
9 "identity": {
10 "body_model_sha256": "3f2eb80ca5151a5c3aff703c961aa9a827a969cf7de4cf955ec7b8abe16e352c",
11 "equipment_preset_sha256": "cc1a644017f41e7a95c8ca3008678c34cb1280adf0d0fad69bd54c8940d77646",
12 "framing": {
13 "height_milli": 2600,
14 "center_y_milli": 1000,
15 "pivot_y_milli": 1460
16 },
17 "pivot_source": "neck",
18 "near": 0.05,
19 "far": 40.0,
20 "camera_distance": 10.0,
21 "normal_space": "view (+Y up), PNG rows top-down",
22 "depth": "16-bit gray+alpha; distance=near+(sample/65535)*(far-near)"
23 },
24 "fps": 4,
25 "cell_width": 32,
26 "cell_height": 48,
27 "pitches": [
28 -60,
29 -30,
30 0,
31 30,
32 60
33 ],
34 "yaws": [
35 0,
36 30,
37 60,
38 90,
39 120,
40 150,
41 180,
42 210,
43 240,
44 270,
45 300,
46 330
47 ],
48 "maps": {
49 "depth": {
50 "file": "male-sword-depth-atlas.u16",
51 "sha256": "0479d6ca296108f8bde8292d16866e579a1106821b4beda2692ecaa3d70b44e9",
52 "width": 1920,
53 "height": 384,
54 "storage": "u16le_ga"
55 },
56 "diffuse": {
57 "file": "male-sword-diffuse-atlas.png",
58 "sha256": "d06ed71a166d2d6ece8f6346cd690510413864aa97273ed165068fd6a8337917",
59 "width": 1920,
60 "height": 384
61 },
62 "normal": {
63 "file": "male-sword-normal-atlas.png",
64 "sha256": "06c68b9af39ba2321df04e04b7f62a932d47f05b479b0ef063d712b0a9347614",
65 "width": 1920,
66 "height": 384
67 },
68 "specular": {
69 "file": "male-sword-specular-atlas.png",
70 "sha256": "7059b1a4a4d1168d4846476ec42ffcd1fcd53d782fa1adedc3a4b534fb706e9d",
71 "width": 1920,
72 "height": 384
73 }
74 },
75 "clips": [
76 {
77 "source_index": 0,
78 "name": "walk",
79 "token": "clip000-walk",
80 "frame_count": 4,
81 "duration": 1.0,
82 "frames": [
83 {
84 "index": 0,
85 "views": [
86 {
87 "pitch": -60,
88 "yaw": 0,
89 "x": 0,
90 "y": 0,
91 "w": 32,
92 "h": 48
93 },
94 {
95 "pitch": -60,
96 "yaw": 30,
97 "x": 32,
98 "y": 0,
99 "w": 32,
100 "h": 48
101 },
102 {
103 "pitch": -60,
104 "yaw": 60,
105 "x": 64,
106 "y": 0,
107 "w": 32,
108 "h": 48
109 },
110 {
111 "pitch": -60,
112 "yaw": 90,
113 "x": 96,
114 "y": 0,
115 "w": 32,
116 "h": 48
117 },
118 {
119 "pitch": -60,
120 "yaw": 120,
121 "x": 128,
122 "y": 0,
123 "w": 32,
124 "h": 48
125 },
126 {
127 "pitch": -60,
128 "yaw": 150,
129 "x": 160,
130 "y": 0,
131 "w": 32,
132 "h": 48
133 },
134 {
135 "pitch": -60,
136 "yaw": 180,
137 "x": 192,
138 "y": 0,
139 "w": 32,
140 "h": 48
141 },
142 {
143 "pitch": -60,
144 "yaw": 210,
145 "x": 224,
146 "y": 0,
147 "w": 32,
148 "h": 48
149 },
150 {
151 "pitch": -60,
152 "yaw": 240,
153 "x": 256,
154 "y": 0,
155 "w": 32,
156 "h": 48
157 },
158 {
159 "pitch": -60,
160 "yaw": 270,
161 "x": 288,
162 "y": 0,
163 "w": 32,
164 "h": 48
165 },
166 {
167 "pitch": -60,
168 "yaw": 300,
169 "x": 320,
170 "y": 0,
171 "w": 32,
172 "h": 48
173 },
174 {
175 "pitch": -60,
176 "yaw": 330,
177 "x": 352,
178 "y": 0,
179 "w": 32,
180 "h": 48
181 },
182 {
183 "pitch": -30,
184 "yaw": 0,
185 "x": 384,
186 "y": 0,
187 "w": 32,
188 "h": 48
189 },
190 {
191 "pitch": -30,
192 "yaw": 30,
193 "x": 416,
194 "y": 0,
195 "w": 32,
196 "h": 48
197 },
198 {
199 "pitch": -30,
200 "yaw": 60,
201 "x": 448,
202 "y": 0,
203 "w": 32,
204 "h": 48
205 },
206 {
207 "pitch": -30,
208 "yaw": 90,
209 "x": 480,
210 "y": 0,
211 "w": 32,
212 "h": 48
213 },
214 {
215 "pitch": -30,
216 "yaw": 120,
217 "x": 512,
218 "y": 0,
219 "w": 32,
220 "h": 48
221 },
222 {
223 "pitch": -30,
224 "yaw": 150,
225 "x": 544,
226 "y": 0,
227 "w": 32,
228 "h": 48
229 },
230 {
231 "pitch": -30,
232 "yaw": 180,
233 "x": 576,
234 "y": 0,
235 "w": 32,
236 "h": 48
237 },
238 {
239 "pitch": -30,
240 "yaw": 210,
241 "x": 608,
242 "y": 0,
243 "w": 32,
244 "h": 48
245 },
246 {
247 "pitch": -30,
248 "yaw": 240,
249 "x": 640,
250 "y": 0,
251 "w": 32,
252 "h": 48
253 },
254 {
255 "pitch": -30,
256 "yaw": 270,
257 "x": 672,
258 "y": 0,
259 "w": 32,
260 "h": 48
261 },
262 {
263 "pitch": -30,
264 "yaw": 300,
265 "x": 704,
266 "y": 0,
267 "w": 32,
268 "h": 48
269 },
270 {
271 "pitch": -30,
272 "yaw": 330,
273 "x": 736,
274 "y": 0,
275 "w": 32,
276 "h": 48
277 },
278 {
279 "pitch": 0,
280 "yaw": 0,
281 "x": 768,
282 "y": 0,
283 "w": 32,
284 "h": 48
285 },
286 {
287 "pitch": 0,
288 "yaw": 30,
289 "x": 800,
290 "y": 0,
291 "w": 32,
292 "h": 48
293 },
294 {
295 "pitch": 0,
296 "yaw": 60,
297 "x": 832,
298 "y": 0,
299 "w": 32,
300 "h": 48
301 },
302 {
303 "pitch": 0,
304 "yaw": 90,
305 "x": 864,
306 "y": 0,
307 "w": 32,
308 "h": 48
309 },
310 {
311 "pitch": 0,
312 "yaw": 120,
313 "x": 896,
314 "y": 0,
315 "w": 32,
316 "h": 48
317 },
318 {
319 "pitch": 0,
320 "yaw": 150,
321 "x": 928,
322 "y": 0,
323 "w": 32,
324 "h": 48
325 },
326 {
327 "pitch": 0,
328 "yaw": 180,
329 "x": 960,
330 "y": 0,
331 "w": 32,
332 "h": 48
333 },
334 {
335 "pitch": 0,
336 "yaw": 210,
337 "x": 992,
338 "y": 0,
339 "w": 32,
340 "h": 48
341 },
342 {
343 "pitch": 0,
344 "yaw": 240,
345 "x": 1024,
346 "y": 0,
347 "w": 32,
348 "h": 48
349 },
350 {
351 "pitch": 0,
352 "yaw": 270,
353 "x": 1056,
354 "y": 0,
355 "w": 32,
356 "h": 48
357 },
358 {
359 "pitch": 0,
360 "yaw": 300,
361 "x": 1088,
362 "y": 0,
363 "w": 32,
364 "h": 48
365 },
366 {
367 "pitch": 0,
368 "yaw": 330,
369 "x": 1120,
370 "y": 0,
371 "w": 32,
372 "h": 48
373 },
374 {
375 "pitch": 30,
376 "yaw": 0,
377 "x": 1152,
378 "y": 0,
379 "w": 32,
380 "h": 48
381 },
382 {
383 "pitch": 30,
384 "yaw": 30,
385 "x": 1184,
386 "y": 0,
387 "w": 32,
388 "h": 48
389 },
390 {
391 "pitch": 30,
392 "yaw": 60,
393 "x": 1216,
394 "y": 0,
395 "w": 32,
396 "h": 48
397 },
398 {
399 "pitch": 30,
400 "yaw": 90,
401 "x": 1248,
402 "y": 0,
403 "w": 32,
404 "h": 48
405 },
406 {
407 "pitch": 30,
408 "yaw": 120,
409 "x": 1280,
410 "y": 0,
411 "w": 32,
412 "h": 48
413 },
414 {
415 "pitch": 30,
416 "yaw": 150,
417 "x": 1312,
418 "y": 0,
419 "w": 32,
420 "h": 48
421 },
422 {
423 "pitch": 30,
424 "yaw": 180,
425 "x": 1344,
426 "y": 0,
427 "w": 32,
428 "h": 48
429 },
430 {
431 "pitch": 30,
432 "yaw": 210,
433 "x": 1376,
434 "y": 0,
435 "w": 32,
436 "h": 48
437 },
438 {
439 "pitch": 30,
440 "yaw": 240,
441 "x": 1408,
442 "y": 0,
443 "w": 32,
444 "h": 48
445 },
446 {
447 "pitch": 30,
448 "yaw": 270,
449 "x": 1440,
450 "y": 0,
451 "w": 32,
452 "h": 48
453 },
454 {
455 "pitch": 30,
456 "yaw": 300,
457 "x": 1472,
458 "y": 0,
459 "w": 32,
460 "h": 48
461 },
462 {
463 "pitch": 30,
464 "yaw": 330,
465 "x": 1504,
466 "y": 0,
467 "w": 32,
468 "h": 48
469 },
470 {
471 "pitch": 60,
472 "yaw": 0,
473 "x": 1536,
474 "y": 0,
475 "w": 32,
476 "h": 48
477 },
478 {
479 "pitch": 60,
480 "yaw": 30,
481 "x": 1568,
482 "y": 0,
483 "w": 32,
484 "h": 48
485 },
486 {
487 "pitch": 60,
488 "yaw": 60,
489 "x": 1600,
490 "y": 0,
491 "w": 32,
492 "h": 48
493 },
494 {
495 "pitch": 60,
496 "yaw": 90,
497 "x": 1632,
498 "y": 0,
499 "w": 32,
500 "h": 48
501 },
502 {
503 "pitch": 60,
504 "yaw": 120,
505 "x": 1664,
506 "y": 0,
507 "w": 32,
508 "h": 48
509 },
510 {
511 "pitch": 60,
512 "yaw": 150,
513 "x": 1696,
514 "y": 0,
515 "w": 32,
516 "h": 48
517 },
518 {
519 "pitch": 60,
520 "yaw": 180,
521 "x": 1728,
522 "y": 0,
523 "w": 32,
524 "h": 48
525 },
526 {
527 "pitch": 60,
528 "yaw": 210,
529 "x": 1760,
530 "y": 0,
531 "w": 32,
532 "h": 48
533 },
534 {
535 "pitch": 60,
536 "yaw": 240,
537 "x": 1792,
538 "y": 0,
539 "w": 32,
540 "h": 48
541 },
542 {
543 "pitch": 60,
544 "yaw": 270,
545 "x": 1824,
546 "y": 0,
547 "w": 32,
548 "h": 48
549 },
550 {
551 "pitch": 60,
552 "yaw": 300,
553 "x": 1856,
554 "y": 0,
555 "w": 32,
556 "h": 48
557 },
558 {
559 "pitch": 60,
560 "yaw": 330,
561 "x": 1888,
562 "y": 0,
563 "w": 32,
564 "h": 48
565 }
566 ]
567 },
568 {
569 "index": 1,
570 "views": [
571 {
572 "pitch": -60,
573 "yaw": 0,
574 "x": 0,
575 "y": 48,
576 "w": 32,
577 "h": 48
578 },
579 {
580 "pitch": -60,
581 "yaw": 30,
582 "x": 32,
583 "y": 48,
584 "w": 32,
585 "h": 48
586 },
587 {
588 "pitch": -60,
589 "yaw": 60,
590 "x": 64,
591 "y": 48,
592 "w": 32,
593 "h": 48
594 },
595 {
596 "pitch": -60,
597 "yaw": 90,
598 "x": 96,
599 "y": 48,
600 "w": 32,
601 "h": 48
602 },
603 {
604 "pitch": -60,
605 "yaw": 120,
606 "x": 128,
607 "y": 48,
608 "w": 32,
609 "h": 48
610 },
611 {
612 "pitch": -60,
613 "yaw": 150,
614 "x": 160,
615 "y": 48,
616 "w": 32,
617 "h": 48
618 },
619 {
620 "pitch": -60,
621 "yaw": 180,
622 "x": 192,
623 "y": 48,
624 "w": 32,
625 "h": 48
626 },
627 {
628 "pitch": -60,
629 "yaw": 210,
630 "x": 224,
631 "y": 48,
632 "w": 32,
633 "h": 48
634 },
635 {
636 "pitch": -60,
637 "yaw": 240,
638 "x": 256,
639 "y": 48,
640 "w": 32,
641 "h": 48
642 },
643 {
644 "pitch": -60,
645 "yaw": 270,
646 "x": 288,
647 "y": 48,
648 "w": 32,
649 "h": 48
650 },
651 {
652 "pitch": -60,
653 "yaw": 300,
654 "x": 320,
655 "y": 48,
656 "w": 32,
657 "h": 48
658 },
659 {
660 "pitch": -60,
661 "yaw": 330,
662 "x": 352,
663 "y": 48,
664 "w": 32,
665 "h": 48
666 },
667 {
668 "pitch": -30,
669 "yaw": 0,
670 "x": 384,
671 "y": 48,
672 "w": 32,
673 "h": 48
674 },
675 {
676 "pitch": -30,
677 "yaw": 30,
678 "x": 416,
679 "y": 48,
680 "w": 32,
681 "h": 48
682 },
683 {
684 "pitch": -30,
685 "yaw": 60,
686 "x": 448,
687 "y": 48,
688 "w": 32,
689 "h": 48
690 },
691 {
692 "pitch": -30,
693 "yaw": 90,
694 "x": 480,
695 "y": 48,
696 "w": 32,
697 "h": 48
698 },
699 {
700 "pitch": -30,
701 "yaw": 120,
702 "x": 512,
703 "y": 48,
704 "w": 32,
705 "h": 48
706 },
707 {
708 "pitch": -30,
709 "yaw": 150,
710 "x": 544,
711 "y": 48,
712 "w": 32,
713 "h": 48
714 },
715 {
716 "pitch": -30,
717 "yaw": 180,
718 "x": 576,
719 "y": 48,
720 "w": 32,
721 "h": 48
722 },
723 {
724 "pitch": -30,
725 "yaw": 210,
726 "x": 608,
727 "y": 48,
728 "w": 32,
729 "h": 48
730 },
731 {
732 "pitch": -30,
733 "yaw": 240,
734 "x": 640,
735 "y": 48,
736 "w": 32,
737 "h": 48
738 },
739 {
740 "pitch": -30,
741 "yaw": 270,
742 "x": 672,
743 "y": 48,
744 "w": 32,
745 "h": 48
746 },
747 {
748 "pitch": -30,
749 "yaw": 300,
750 "x": 704,
751 "y": 48,
752 "w": 32,
753 "h": 48
754 },
755 {
756 "pitch": -30,
757 "yaw": 330,
758 "x": 736,
759 "y": 48,
760 "w": 32,
761 "h": 48
762 },
763 {
764 "pitch": 0,
765 "yaw": 0,
766 "x": 768,
767 "y": 48,
768 "w": 32,
769 "h": 48
770 },
771 {
772 "pitch": 0,
773 "yaw": 30,
774 "x": 800,
775 "y": 48,
776 "w": 32,
777 "h": 48
778 },
779 {
780 "pitch": 0,
781 "yaw": 60,
782 "x": 832,
783 "y": 48,
784 "w": 32,
785 "h": 48
786 },
787 {
788 "pitch": 0,
789 "yaw": 90,
790 "x": 864,
791 "y": 48,
792 "w": 32,
793 "h": 48
794 },
795 {
796 "pitch": 0,
797 "yaw": 120,
798 "x": 896,
799 "y": 48,
800 "w": 32,
801 "h": 48
802 },
803 {
804 "pitch": 0,
805 "yaw": 150,
806 "x": 928,
807 "y": 48,
808 "w": 32,
809 "h": 48
810 },
811 {
812 "pitch": 0,
813 "yaw": 180,
814 "x": 960,
815 "y": 48,
816 "w": 32,
817 "h": 48
818 },
819 {
820 "pitch": 0,
821 "yaw": 210,
822 "x": 992,
823 "y": 48,
824 "w": 32,
825 "h": 48
826 },
827 {
828 "pitch": 0,
829 "yaw": 240,
830 "x": 1024,
831 "y": 48,
832 "w": 32,
833 "h": 48
834 },
835 {
836 "pitch": 0,
837 "yaw": 270,
838 "x": 1056,
839 "y": 48,
840 "w": 32,
841 "h": 48
842 },
843 {
844 "pitch": 0,
845 "yaw": 300,
846 "x": 1088,
847 "y": 48,
848 "w": 32,
849 "h": 48
850 },
851 {
852 "pitch": 0,
853 "yaw": 330,
854 "x": 1120,
855 "y": 48,
856 "w": 32,
857 "h": 48
858 },
859 {
860 "pitch": 30,
861 "yaw": 0,
862 "x": 1152,
863 "y": 48,
864 "w": 32,
865 "h": 48
866 },
867 {
868 "pitch": 30,
869 "yaw": 30,
870 "x": 1184,
871 "y": 48,
872 "w": 32,
873 "h": 48
874 },
875 {
876 "pitch": 30,
877 "yaw": 60,
878 "x": 1216,
879 "y": 48,
880 "w": 32,
881 "h": 48
882 },
883 {
884 "pitch": 30,
885 "yaw": 90,
886 "x": 1248,
887 "y": 48,
888 "w": 32,
889 "h": 48
890 },
891 {
892 "pitch": 30,
893 "yaw": 120,
894 "x": 1280,
895 "y": 48,
896 "w": 32,
897 "h": 48
898 },
899 {
900 "pitch": 30,
901 "yaw": 150,
902 "x": 1312,
903 "y": 48,
904 "w": 32,
905 "h": 48
906 },
907 {
908 "pitch": 30,
909 "yaw": 180,
910 "x": 1344,
911 "y": 48,
912 "w": 32,
913 "h": 48
914 },
915 {
916 "pitch": 30,
917 "yaw": 210,
918 "x": 1376,
919 "y": 48,
920 "w": 32,
921 "h": 48
922 },
923 {
924 "pitch": 30,
925 "yaw": 240,
926 "x": 1408,
927 "y": 48,
928 "w": 32,
929 "h": 48
930 },
931 {
932 "pitch": 30,
933 "yaw": 270,
934 "x": 1440,
935 "y": 48,
936 "w": 32,
937 "h": 48
938 },
939 {
940 "pitch": 30,
941 "yaw": 300,
942 "x": 1472,
943 "y": 48,
944 "w": 32,
945 "h": 48
946 },
947 {
948 "pitch": 30,
949 "yaw": 330,
950 "x": 1504,
951 "y": 48,
952 "w": 32,
953 "h": 48
954 },
955 {
956 "pitch": 60,
957 "yaw": 0,
958 "x": 1536,
959 "y": 48,
960 "w": 32,
961 "h": 48
962 },
963 {
964 "pitch": 60,
965 "yaw": 30,
966 "x": 1568,
967 "y": 48,
968 "w": 32,
969 "h": 48
970 },
971 {
972 "pitch": 60,
973 "yaw": 60,
974 "x": 1600,
975 "y": 48,
976 "w": 32,
977 "h": 48
978 },
979 {
980 "pitch": 60,
981 "yaw": 90,
982 "x": 1632,
983 "y": 48,
984 "w": 32,
985 "h": 48
986 },
987 {
988 "pitch": 60,
989 "yaw": 120,
990 "x": 1664,
991 "y": 48,
992 "w": 32,
993 "h": 48
994 },
995 {
996 "pitch": 60,
997 "yaw": 150,
998 "x": 1696,
999 "y": 48,
1000 "w": 32,
1001 "h": 48
1002 },
1003 {
1004 "pitch": 60,
1005 "yaw": 180,
1006 "x": 1728,
1007 "y": 48,
1008 "w": 32,
1009 "h": 48
1010 },
1011 {
1012 "pitch": 60,
1013 "yaw": 210,
1014 "x": 1760,
1015 "y": 48,
1016 "w": 32,
1017 "h": 48
1018 },
1019 {
1020 "pitch": 60,
1021 "yaw": 240,
1022 "x": 1792,
1023 "y": 48,
1024 "w": 32,
1025 "h": 48
1026 },
1027 {
1028 "pitch": 60,
1029 "yaw": 270,
1030 "x": 1824,
1031 "y": 48,
1032 "w": 32,
1033 "h": 48
1034 },
1035 {
1036 "pitch": 60,
1037 "yaw": 300,
1038 "x": 1856,
1039 "y": 48,
1040 "w": 32,
1041 "h": 48
1042 },
1043 {
1044 "pitch": 60,
1045 "yaw": 330,
1046 "x": 1888,
1047 "y": 48,
1048 "w": 32,
1049 "h": 48
1050 }
1051 ]
1052 },
1053 {
1054 "index": 2,
1055 "views": [
1056 {
1057 "pitch": -60,
1058 "yaw": 0,
1059 "x": 0,
1060 "y": 96,
1061 "w": 32,
1062 "h": 48
1063 },
1064 {
1065 "pitch": -60,
1066 "yaw": 30,
1067 "x": 32,
1068 "y": 96,
1069 "w": 32,
1070 "h": 48
1071 },
1072 {
1073 "pitch": -60,
1074 "yaw": 60,
1075 "x": 64,
1076 "y": 96,
1077 "w": 32,
1078 "h": 48
1079 },
1080 {
1081 "pitch": -60,
1082 "yaw": 90,
1083 "x": 96,
1084 "y": 96,
1085 "w": 32,
1086 "h": 48
1087 },
1088 {
1089 "pitch": -60,
1090 "yaw": 120,
1091 "x": 128,
1092 "y": 96,
1093 "w": 32,
1094 "h": 48
1095 },
1096 {
1097 "pitch": -60,
1098 "yaw": 150,
1099 "x": 160,
1100 "y": 96,
1101 "w": 32,
1102 "h": 48
1103 },
1104 {
1105 "pitch": -60,
1106 "yaw": 180,
1107 "x": 192,
1108 "y": 96,
1109 "w": 32,
1110 "h": 48
1111 },
1112 {
1113 "pitch": -60,
1114 "yaw": 210,
1115 "x": 224,
1116 "y": 96,
1117 "w": 32,
1118 "h": 48
1119 },
1120 {
1121 "pitch": -60,
1122 "yaw": 240,
1123 "x": 256,
1124 "y": 96,
1125 "w": 32,
1126 "h": 48
1127 },
1128 {
1129 "pitch": -60,
1130 "yaw": 270,
1131 "x": 288,
1132 "y": 96,
1133 "w": 32,
1134 "h": 48
1135 },
1136 {
1137 "pitch": -60,
1138 "yaw": 300,
1139 "x": 320,
1140 "y": 96,
1141 "w": 32,
1142 "h": 48
1143 },
1144 {
1145 "pitch": -60,
1146 "yaw": 330,
1147 "x": 352,
1148 "y": 96,
1149 "w": 32,
1150 "h": 48
1151 },
1152 {
1153 "pitch": -30,
1154 "yaw": 0,
1155 "x": 384,
1156 "y": 96,
1157 "w": 32,
1158 "h": 48
1159 },
1160 {
1161 "pitch": -30,
1162 "yaw": 30,
1163 "x": 416,
1164 "y": 96,
1165 "w": 32,
1166 "h": 48
1167 },
1168 {
1169 "pitch": -30,
1170 "yaw": 60,
1171 "x": 448,
1172 "y": 96,
1173 "w": 32,
1174 "h": 48
1175 },
1176 {
1177 "pitch": -30,
1178 "yaw": 90,
1179 "x": 480,
1180 "y": 96,
1181 "w": 32,
1182 "h": 48
1183 },
1184 {
1185 "pitch": -30,
1186 "yaw": 120,
1187 "x": 512,
1188 "y": 96,
1189 "w": 32,
1190 "h": 48
1191 },
1192 {
1193 "pitch": -30,
1194 "yaw": 150,
1195 "x": 544,
1196 "y": 96,
1197 "w": 32,
1198 "h": 48
1199 },
1200 {
1201 "pitch": -30,
1202 "yaw": 180,
1203 "x": 576,
1204 "y": 96,
1205 "w": 32,
1206 "h": 48
1207 },
1208 {
1209 "pitch": -30,
1210 "yaw": 210,
1211 "x": 608,
1212 "y": 96,
1213 "w": 32,
1214 "h": 48
1215 },
1216 {
1217 "pitch": -30,
1218 "yaw": 240,
1219 "x": 640,
1220 "y": 96,
1221 "w": 32,
1222 "h": 48
1223 },
1224 {
1225 "pitch": -30,
1226 "yaw": 270,
1227 "x": 672,
1228 "y": 96,
1229 "w": 32,
1230 "h": 48
1231 },
1232 {
1233 "pitch": -30,
1234 "yaw": 300,
1235 "x": 704,
1236 "y": 96,
1237 "w": 32,
1238 "h": 48
1239 },
1240 {
1241 "pitch": -30,
1242 "yaw": 330,
1243 "x": 736,
1244 "y": 96,
1245 "w": 32,
1246 "h": 48
1247 },
1248 {
1249 "pitch": 0,
1250 "yaw": 0,
1251 "x": 768,
1252 "y": 96,
1253 "w": 32,
1254 "h": 48
1255 },
1256 {
1257 "pitch": 0,
1258 "yaw": 30,
1259 "x": 800,
1260 "y": 96,
1261 "w": 32,
1262 "h": 48
1263 },
1264 {
1265 "pitch": 0,
1266 "yaw": 60,
1267 "x": 832,
1268 "y": 96,
1269 "w": 32,
1270 "h": 48
1271 },
1272 {
1273 "pitch": 0,
1274 "yaw": 90,
1275 "x": 864,
1276 "y": 96,
1277 "w": 32,
1278 "h": 48
1279 },
1280 {
1281 "pitch": 0,
1282 "yaw": 120,
1283 "x": 896,
1284 "y": 96,
1285 "w": 32,
1286 "h": 48
1287 },
1288 {
1289 "pitch": 0,
1290 "yaw": 150,
1291 "x": 928,
1292 "y": 96,
1293 "w": 32,
1294 "h": 48
1295 },
1296 {
1297 "pitch": 0,
1298 "yaw": 180,
1299 "x": 960,
1300 "y": 96,
1301 "w": 32,
1302 "h": 48
1303 },
1304 {
1305 "pitch": 0,
1306 "yaw": 210,
1307 "x": 992,
1308 "y": 96,
1309 "w": 32,
1310 "h": 48
1311 },
1312 {
1313 "pitch": 0,
1314 "yaw": 240,
1315 "x": 1024,
1316 "y": 96,
1317 "w": 32,
1318 "h": 48
1319 },
1320 {
1321 "pitch": 0,
1322 "yaw": 270,
1323 "x": 1056,
1324 "y": 96,
1325 "w": 32,
1326 "h": 48
1327 },
1328 {
1329 "pitch": 0,
1330 "yaw": 300,
1331 "x": 1088,
1332 "y": 96,
1333 "w": 32,
1334 "h": 48
1335 },
1336 {
1337 "pitch": 0,
1338 "yaw": 330,
1339 "x": 1120,
1340 "y": 96,
1341 "w": 32,
1342 "h": 48
1343 },
1344 {
1345 "pitch": 30,
1346 "yaw": 0,
1347 "x": 1152,
1348 "y": 96,
1349 "w": 32,
1350 "h": 48
1351 },
1352 {
1353 "pitch": 30,
1354 "yaw": 30,
1355 "x": 1184,
1356 "y": 96,
1357 "w": 32,
1358 "h": 48
1359 },
1360 {
1361 "pitch": 30,
1362 "yaw": 60,
1363 "x": 1216,
1364 "y": 96,
1365 "w": 32,
1366 "h": 48
1367 },
1368 {
1369 "pitch": 30,
1370 "yaw": 90,
1371 "x": 1248,
1372 "y": 96,
1373 "w": 32,
1374 "h": 48
1375 },
1376 {
1377 "pitch": 30,
1378 "yaw": 120,
1379 "x": 1280,
1380 "y": 96,
1381 "w": 32,
1382 "h": 48
1383 },
1384 {
1385 "pitch": 30,
1386 "yaw": 150,
1387 "x": 1312,
1388 "y": 96,
1389 "w": 32,
1390 "h": 48
1391 },
1392 {
1393 "pitch": 30,
1394 "yaw": 180,
1395 "x": 1344,
1396 "y": 96,
1397 "w": 32,
1398 "h": 48
1399 },
1400 {
1401 "pitch": 30,
1402 "yaw": 210,
1403 "x": 1376,
1404 "y": 96,
1405 "w": 32,
1406 "h": 48
1407 },
1408 {
1409 "pitch": 30,
1410 "yaw": 240,
1411 "x": 1408,
1412 "y": 96,
1413 "w": 32,
1414 "h": 48
1415 },
1416 {
1417 "pitch": 30,
1418 "yaw": 270,
1419 "x": 1440,
1420 "y": 96,
1421 "w": 32,
1422 "h": 48
1423 },
1424 {
1425 "pitch": 30,
1426 "yaw": 300,
1427 "x": 1472,
1428 "y": 96,
1429 "w": 32,
1430 "h": 48
1431 },
1432 {
1433 "pitch": 30,
1434 "yaw": 330,
1435 "x": 1504,
1436 "y": 96,
1437 "w": 32,
1438 "h": 48
1439 },
1440 {
1441 "pitch": 60,
1442 "yaw": 0,
1443 "x": 1536,
1444 "y": 96,
1445 "w": 32,
1446 "h": 48
1447 },
1448 {
1449 "pitch": 60,
1450 "yaw": 30,
1451 "x": 1568,
1452 "y": 96,
1453 "w": 32,
1454 "h": 48
1455 },
1456 {
1457 "pitch": 60,
1458 "yaw": 60,
1459 "x": 1600,
1460 "y": 96,
1461 "w": 32,
1462 "h": 48
1463 },
1464 {
1465 "pitch": 60,
1466 "yaw": 90,
1467 "x": 1632,
1468 "y": 96,
1469 "w": 32,
1470 "h": 48
1471 },
1472 {
1473 "pitch": 60,
1474 "yaw": 120,
1475 "x": 1664,
1476 "y": 96,
1477 "w": 32,
1478 "h": 48
1479 },
1480 {
1481 "pitch": 60,
1482 "yaw": 150,
1483 "x": 1696,
1484 "y": 96,
1485 "w": 32,
1486 "h": 48
1487 },
1488 {
1489 "pitch": 60,
1490 "yaw": 180,
1491 "x": 1728,
1492 "y": 96,
1493 "w": 32,
1494 "h": 48
1495 },
1496 {
1497 "pitch": 60,
1498 "yaw": 210,
1499 "x": 1760,
1500 "y": 96,
1501 "w": 32,
1502 "h": 48
1503 },
1504 {
1505 "pitch": 60,
1506 "yaw": 240,
1507 "x": 1792,
1508 "y": 96,
1509 "w": 32,
1510 "h": 48
1511 },
1512 {
1513 "pitch": 60,
1514 "yaw": 270,
1515 "x": 1824,
1516 "y": 96,
1517 "w": 32,
1518 "h": 48
1519 },
1520 {
1521 "pitch": 60,
1522 "yaw": 300,
1523 "x": 1856,
1524 "y": 96,
1525 "w": 32,
1526 "h": 48
1527 },
1528 {
1529 "pitch": 60,
1530 "yaw": 330,
1531 "x": 1888,
1532 "y": 96,
1533 "w": 32,
1534 "h": 48
1535 }
1536 ]
1537 },
1538 {
1539 "index": 3,
1540 "views": [
1541 {
1542 "pitch": -60,
1543 "yaw": 0,
1544 "x": 0,
1545 "y": 144,
1546 "w": 32,
1547 "h": 48
1548 },
1549 {
1550 "pitch": -60,
1551 "yaw": 30,
1552 "x": 32,
1553 "y": 144,
1554 "w": 32,
1555 "h": 48
1556 },
1557 {
1558 "pitch": -60,
1559 "yaw": 60,
1560 "x": 64,
1561 "y": 144,
1562 "w": 32,
1563 "h": 48
1564 },
1565 {
1566 "pitch": -60,
1567 "yaw": 90,
1568 "x": 96,
1569 "y": 144,
1570 "w": 32,
1571 "h": 48
1572 },
1573 {
1574 "pitch": -60,
1575 "yaw": 120,
1576 "x": 128,
1577 "y": 144,
1578 "w": 32,
1579 "h": 48
1580 },
1581 {
1582 "pitch": -60,
1583 "yaw": 150,
1584 "x": 160,
1585 "y": 144,
1586 "w": 32,
1587 "h": 48
1588 },
1589 {
1590 "pitch": -60,
1591 "yaw": 180,
1592 "x": 192,
1593 "y": 144,
1594 "w": 32,
1595 "h": 48
1596 },
1597 {
1598 "pitch": -60,
1599 "yaw": 210,
1600 "x": 224,
1601 "y": 144,
1602 "w": 32,
1603 "h": 48
1604 },
1605 {
1606 "pitch": -60,
1607 "yaw": 240,
1608 "x": 256,
1609 "y": 144,
1610 "w": 32,
1611 "h": 48
1612 },
1613 {
1614 "pitch": -60,
1615 "yaw": 270,
1616 "x": 288,
1617 "y": 144,
1618 "w": 32,
1619 "h": 48
1620 },
1621 {
1622 "pitch": -60,
1623 "yaw": 300,
1624 "x": 320,
1625 "y": 144,
1626 "w": 32,
1627 "h": 48
1628 },
1629 {
1630 "pitch": -60,
1631 "yaw": 330,
1632 "x": 352,
1633 "y": 144,
1634 "w": 32,
1635 "h": 48
1636 },
1637 {
1638 "pitch": -30,
1639 "yaw": 0,
1640 "x": 384,
1641 "y": 144,
1642 "w": 32,
1643 "h": 48
1644 },
1645 {
1646 "pitch": -30,
1647 "yaw": 30,
1648 "x": 416,
1649 "y": 144,
1650 "w": 32,
1651 "h": 48
1652 },
1653 {
1654 "pitch": -30,
1655 "yaw": 60,
1656 "x": 448,
1657 "y": 144,
1658 "w": 32,
1659 "h": 48
1660 },
1661 {
1662 "pitch": -30,
1663 "yaw": 90,
1664 "x": 480,
1665 "y": 144,
1666 "w": 32,
1667 "h": 48
1668 },
1669 {
1670 "pitch": -30,
1671 "yaw": 120,
1672 "x": 512,
1673 "y": 144,
1674 "w": 32,
1675 "h": 48
1676 },
1677 {
1678 "pitch": -30,
1679 "yaw": 150,
1680 "x": 544,
1681 "y": 144,
1682 "w": 32,
1683 "h": 48
1684 },
1685 {
1686 "pitch": -30,
1687 "yaw": 180,
1688 "x": 576,
1689 "y": 144,
1690 "w": 32,
1691 "h": 48
1692 },
1693 {
1694 "pitch": -30,
1695 "yaw": 210,
1696 "x": 608,
1697 "y": 144,
1698 "w": 32,
1699 "h": 48
1700 },
1701 {
1702 "pitch": -30,
1703 "yaw": 240,
1704 "x": 640,
1705 "y": 144,
1706 "w": 32,
1707 "h": 48
1708 },
1709 {
1710 "pitch": -30,
1711 "yaw": 270,
1712 "x": 672,
1713 "y": 144,
1714 "w": 32,
1715 "h": 48
1716 },
1717 {
1718 "pitch": -30,
1719 "yaw": 300,
1720 "x": 704,
1721 "y": 144,
1722 "w": 32,
1723 "h": 48
1724 },
1725 {
1726 "pitch": -30,
1727 "yaw": 330,
1728 "x": 736,
1729 "y": 144,
1730 "w": 32,
1731 "h": 48
1732 },
1733 {
1734 "pitch": 0,
1735 "yaw": 0,
1736 "x": 768,
1737 "y": 144,
1738 "w": 32,
1739 "h": 48
1740 },
1741 {
1742 "pitch": 0,
1743 "yaw": 30,
1744 "x": 800,
1745 "y": 144,
1746 "w": 32,
1747 "h": 48
1748 },
1749 {
1750 "pitch": 0,
1751 "yaw": 60,
1752 "x": 832,
1753 "y": 144,
1754 "w": 32,
1755 "h": 48
1756 },
1757 {
1758 "pitch": 0,
1759 "yaw": 90,
1760 "x": 864,
1761 "y": 144,
1762 "w": 32,
1763 "h": 48
1764 },
1765 {
1766 "pitch": 0,
1767 "yaw": 120,
1768 "x": 896,
1769 "y": 144,
1770 "w": 32,
1771 "h": 48
1772 },
1773 {
1774 "pitch": 0,
1775 "yaw": 150,
1776 "x": 928,
1777 "y": 144,
1778 "w": 32,
1779 "h": 48
1780 },
1781 {
1782 "pitch": 0,
1783 "yaw": 180,
1784 "x": 960,
1785 "y": 144,
1786 "w": 32,
1787 "h": 48
1788 },
1789 {
1790 "pitch": 0,
1791 "yaw": 210,
1792 "x": 992,
1793 "y": 144,
1794 "w": 32,
1795 "h": 48
1796 },
1797 {
1798 "pitch": 0,
1799 "yaw": 240,
1800 "x": 1024,
1801 "y": 144,
1802 "w": 32,
1803 "h": 48
1804 },
1805 {
1806 "pitch": 0,
1807 "yaw": 270,
1808 "x": 1056,
1809 "y": 144,
1810 "w": 32,
1811 "h": 48
1812 },
1813 {
1814 "pitch": 0,
1815 "yaw": 300,
1816 "x": 1088,
1817 "y": 144,
1818 "w": 32,
1819 "h": 48
1820 },
1821 {
1822 "pitch": 0,
1823 "yaw": 330,
1824 "x": 1120,
1825 "y": 144,
1826 "w": 32,
1827 "h": 48
1828 },
1829 {
1830 "pitch": 30,
1831 "yaw": 0,
1832 "x": 1152,
1833 "y": 144,
1834 "w": 32,
1835 "h": 48
1836 },
1837 {
1838 "pitch": 30,
1839 "yaw": 30,
1840 "x": 1184,
1841 "y": 144,
1842 "w": 32,
1843 "h": 48
1844 },
1845 {
1846 "pitch": 30,
1847 "yaw": 60,
1848 "x": 1216,
1849 "y": 144,
1850 "w": 32,
1851 "h": 48
1852 },
1853 {
1854 "pitch": 30,
1855 "yaw": 90,
1856 "x": 1248,
1857 "y": 144,
1858 "w": 32,
1859 "h": 48
1860 },
1861 {
1862 "pitch": 30,
1863 "yaw": 120,
1864 "x": 1280,
1865 "y": 144,
1866 "w": 32,
1867 "h": 48
1868 },
1869 {
1870 "pitch": 30,
1871 "yaw": 150,
1872 "x": 1312,
1873 "y": 144,
1874 "w": 32,
1875 "h": 48
1876 },
1877 {
1878 "pitch": 30,
1879 "yaw": 180,
1880 "x": 1344,
1881 "y": 144,
1882 "w": 32,
1883 "h": 48
1884 },
1885 {
1886 "pitch": 30,
1887 "yaw": 210,
1888 "x": 1376,
1889 "y": 144,
1890 "w": 32,
1891 "h": 48
1892 },
1893 {
1894 "pitch": 30,
1895 "yaw": 240,
1896 "x": 1408,
1897 "y": 144,
1898 "w": 32,
1899 "h": 48
1900 },
1901 {
1902 "pitch": 30,
1903 "yaw": 270,
1904 "x": 1440,
1905 "y": 144,
1906 "w": 32,
1907 "h": 48
1908 },
1909 {
1910 "pitch": 30,
1911 "yaw": 300,
1912 "x": 1472,
1913 "y": 144,
1914 "w": 32,
1915 "h": 48
1916 },
1917 {
1918 "pitch": 30,
1919 "yaw": 330,
1920 "x": 1504,
1921 "y": 144,
1922 "w": 32,
1923 "h": 48
1924 },
1925 {
1926 "pitch": 60,
1927 "yaw": 0,
1928 "x": 1536,
1929 "y": 144,
1930 "w": 32,
1931 "h": 48
1932 },
1933 {
1934 "pitch": 60,
1935 "yaw": 30,
1936 "x": 1568,
1937 "y": 144,
1938 "w": 32,
1939 "h": 48
1940 },
1941 {
1942 "pitch": 60,
1943 "yaw": 60,
1944 "x": 1600,
1945 "y": 144,
1946 "w": 32,
1947 "h": 48
1948 },
1949 {
1950 "pitch": 60,
1951 "yaw": 90,
1952 "x": 1632,
1953 "y": 144,
1954 "w": 32,
1955 "h": 48
1956 },
1957 {
1958 "pitch": 60,
1959 "yaw": 120,
1960 "x": 1664,
1961 "y": 144,
1962 "w": 32,
1963 "h": 48
1964 },
1965 {
1966 "pitch": 60,
1967 "yaw": 150,
1968 "x": 1696,
1969 "y": 144,
1970 "w": 32,
1971 "h": 48
1972 },
1973 {
1974 "pitch": 60,
1975 "yaw": 180,
1976 "x": 1728,
1977 "y": 144,
1978 "w": 32,
1979 "h": 48
1980 },
1981 {
1982 "pitch": 60,
1983 "yaw": 210,
1984 "x": 1760,
1985 "y": 144,
1986 "w": 32,
1987 "h": 48
1988 },
1989 {
1990 "pitch": 60,
1991 "yaw": 240,
1992 "x": 1792,
1993 "y": 144,
1994 "w": 32,
1995 "h": 48
1996 },
1997 {
1998 "pitch": 60,
1999 "yaw": 270,
2000 "x": 1824,
2001 "y": 144,
2002 "w": 32,
2003 "h": 48
2004 },
2005 {
2006 "pitch": 60,
2007 "yaw": 300,
2008 "x": 1856,
2009 "y": 144,
2010 "w": 32,
2011 "h": 48
2012 },
2013 {
2014 "pitch": 60,
2015 "yaw": 330,
2016 "x": 1888,
2017 "y": 144,
2018 "w": 32,
2019 "h": 48
2020 }
2021 ]
2022 }
2023 ]
2024 },
2025 {
2026 "source_index": 1,
2027 "name": "attack",
2028 "token": "clip001-attack",
2029 "frame_count": 4,
2030 "duration": 0.8,
2031 "frames": [
2032 {
2033 "index": 0,
2034 "views": [
2035 {
2036 "pitch": -60,
2037 "yaw": 0,
2038 "x": 0,
2039 "y": 192,
2040 "w": 32,
2041 "h": 48
2042 },
2043 {
2044 "pitch": -60,
2045 "yaw": 30,
2046 "x": 32,
2047 "y": 192,
2048 "w": 32,
2049 "h": 48
2050 },
2051 {
2052 "pitch": -60,
2053 "yaw": 60,
2054 "x": 64,
2055 "y": 192,
2056 "w": 32,
2057 "h": 48
2058 },
2059 {
2060 "pitch": -60,
2061 "yaw": 90,
2062 "x": 96,
2063 "y": 192,
2064 "w": 32,
2065 "h": 48
2066 },
2067 {
2068 "pitch": -60,
2069 "yaw": 120,
2070 "x": 128,
2071 "y": 192,
2072 "w": 32,
2073 "h": 48
2074 },
2075 {
2076 "pitch": -60,
2077 "yaw": 150,
2078 "x": 160,
2079 "y": 192,
2080 "w": 32,
2081 "h": 48
2082 },
2083 {
2084 "pitch": -60,
2085 "yaw": 180,
2086 "x": 192,
2087 "y": 192,
2088 "w": 32,
2089 "h": 48
2090 },
2091 {
2092 "pitch": -60,
2093 "yaw": 210,
2094 "x": 224,
2095 "y": 192,
2096 "w": 32,
2097 "h": 48
2098 },
2099 {
2100 "pitch": -60,
2101 "yaw": 240,
2102 "x": 256,
2103 "y": 192,
2104 "w": 32,
2105 "h": 48
2106 },
2107 {
2108 "pitch": -60,
2109 "yaw": 270,
2110 "x": 288,
2111 "y": 192,
2112 "w": 32,
2113 "h": 48
2114 },
2115 {
2116 "pitch": -60,
2117 "yaw": 300,
2118 "x": 320,
2119 "y": 192,
2120 "w": 32,
2121 "h": 48
2122 },
2123 {
2124 "pitch": -60,
2125 "yaw": 330,
2126 "x": 352,
2127 "y": 192,
2128 "w": 32,
2129 "h": 48
2130 },
2131 {
2132 "pitch": -30,
2133 "yaw": 0,
2134 "x": 384,
2135 "y": 192,
2136 "w": 32,
2137 "h": 48
2138 },
2139 {
2140 "pitch": -30,
2141 "yaw": 30,
2142 "x": 416,
2143 "y": 192,
2144 "w": 32,
2145 "h": 48
2146 },
2147 {
2148 "pitch": -30,
2149 "yaw": 60,
2150 "x": 448,
2151 "y": 192,
2152 "w": 32,
2153 "h": 48
2154 },
2155 {
2156 "pitch": -30,
2157 "yaw": 90,
2158 "x": 480,
2159 "y": 192,
2160 "w": 32,
2161 "h": 48
2162 },
2163 {
2164 "pitch": -30,
2165 "yaw": 120,
2166 "x": 512,
2167 "y": 192,
2168 "w": 32,
2169 "h": 48
2170 },
2171 {
2172 "pitch": -30,
2173 "yaw": 150,
2174 "x": 544,
2175 "y": 192,
2176 "w": 32,
2177 "h": 48
2178 },
2179 {
2180 "pitch": -30,
2181 "yaw": 180,
2182 "x": 576,
2183 "y": 192,
2184 "w": 32,
2185 "h": 48
2186 },
2187 {
2188 "pitch": -30,
2189 "yaw": 210,
2190 "x": 608,
2191 "y": 192,
2192 "w": 32,
2193 "h": 48
2194 },
2195 {
2196 "pitch": -30,
2197 "yaw": 240,
2198 "x": 640,
2199 "y": 192,
2200 "w": 32,
2201 "h": 48
2202 },
2203 {
2204 "pitch": -30,
2205 "yaw": 270,
2206 "x": 672,
2207 "y": 192,
2208 "w": 32,
2209 "h": 48
2210 },
2211 {
2212 "pitch": -30,
2213 "yaw": 300,
2214 "x": 704,
2215 "y": 192,
2216 "w": 32,
2217 "h": 48
2218 },
2219 {
2220 "pitch": -30,
2221 "yaw": 330,
2222 "x": 736,
2223 "y": 192,
2224 "w": 32,
2225 "h": 48
2226 },
2227 {
2228 "pitch": 0,
2229 "yaw": 0,
2230 "x": 768,
2231 "y": 192,
2232 "w": 32,
2233 "h": 48
2234 },
2235 {
2236 "pitch": 0,
2237 "yaw": 30,
2238 "x": 800,
2239 "y": 192,
2240 "w": 32,
2241 "h": 48
2242 },
2243 {
2244 "pitch": 0,
2245 "yaw": 60,
2246 "x": 832,
2247 "y": 192,
2248 "w": 32,
2249 "h": 48
2250 },
2251 {
2252 "pitch": 0,
2253 "yaw": 90,
2254 "x": 864,
2255 "y": 192,
2256 "w": 32,
2257 "h": 48
2258 },
2259 {
2260 "pitch": 0,
2261 "yaw": 120,
2262 "x": 896,
2263 "y": 192,
2264 "w": 32,
2265 "h": 48
2266 },
2267 {
2268 "pitch": 0,
2269 "yaw": 150,
2270 "x": 928,
2271 "y": 192,
2272 "w": 32,
2273 "h": 48
2274 },
2275 {
2276 "pitch": 0,
2277 "yaw": 180,
2278 "x": 960,
2279 "y": 192,
2280 "w": 32,
2281 "h": 48
2282 },
2283 {
2284 "pitch": 0,
2285 "yaw": 210,
2286 "x": 992,
2287 "y": 192,
2288 "w": 32,
2289 "h": 48
2290 },
2291 {
2292 "pitch": 0,
2293 "yaw": 240,
2294 "x": 1024,
2295 "y": 192,
2296 "w": 32,
2297 "h": 48
2298 },
2299 {
2300 "pitch": 0,
2301 "yaw": 270,
2302 "x": 1056,
2303 "y": 192,
2304 "w": 32,
2305 "h": 48
2306 },
2307 {
2308 "pitch": 0,
2309 "yaw": 300,
2310 "x": 1088,
2311 "y": 192,
2312 "w": 32,
2313 "h": 48
2314 },
2315 {
2316 "pitch": 0,
2317 "yaw": 330,
2318 "x": 1120,
2319 "y": 192,
2320 "w": 32,
2321 "h": 48
2322 },
2323 {
2324 "pitch": 30,
2325 "yaw": 0,
2326 "x": 1152,
2327 "y": 192,
2328 "w": 32,
2329 "h": 48
2330 },
2331 {
2332 "pitch": 30,
2333 "yaw": 30,
2334 "x": 1184,
2335 "y": 192,
2336 "w": 32,
2337 "h": 48
2338 },
2339 {
2340 "pitch": 30,
2341 "yaw": 60,
2342 "x": 1216,
2343 "y": 192,
2344 "w": 32,
2345 "h": 48
2346 },
2347 {
2348 "pitch": 30,
2349 "yaw": 90,
2350 "x": 1248,
2351 "y": 192,
2352 "w": 32,
2353 "h": 48
2354 },
2355 {
2356 "pitch": 30,
2357 "yaw": 120,
2358 "x": 1280,
2359 "y": 192,
2360 "w": 32,
2361 "h": 48
2362 },
2363 {
2364 "pitch": 30,
2365 "yaw": 150,
2366 "x": 1312,
2367 "y": 192,
2368 "w": 32,
2369 "h": 48
2370 },
2371 {
2372 "pitch": 30,
2373 "yaw": 180,
2374 "x": 1344,
2375 "y": 192,
2376 "w": 32,
2377 "h": 48
2378 },
2379 {
2380 "pitch": 30,
2381 "yaw": 210,
2382 "x": 1376,
2383 "y": 192,
2384 "w": 32,
2385 "h": 48
2386 },
2387 {
2388 "pitch": 30,
2389 "yaw": 240,
2390 "x": 1408,
2391 "y": 192,
2392 "w": 32,
2393 "h": 48
2394 },
2395 {
2396 "pitch": 30,
2397 "yaw": 270,
2398 "x": 1440,
2399 "y": 192,
2400 "w": 32,
2401 "h": 48
2402 },
2403 {
2404 "pitch": 30,
2405 "yaw": 300,
2406 "x": 1472,
2407 "y": 192,
2408 "w": 32,
2409 "h": 48
2410 },
2411 {
2412 "pitch": 30,
2413 "yaw": 330,
2414 "x": 1504,
2415 "y": 192,
2416 "w": 32,
2417 "h": 48
2418 },
2419 {
2420 "pitch": 60,
2421 "yaw": 0,
2422 "x": 1536,
2423 "y": 192,
2424 "w": 32,
2425 "h": 48
2426 },
2427 {
2428 "pitch": 60,
2429 "yaw": 30,
2430 "x": 1568,
2431 "y": 192,
2432 "w": 32,
2433 "h": 48
2434 },
2435 {
2436 "pitch": 60,
2437 "yaw": 60,
2438 "x": 1600,
2439 "y": 192,
2440 "w": 32,
2441 "h": 48
2442 },
2443 {
2444 "pitch": 60,
2445 "yaw": 90,
2446 "x": 1632,
2447 "y": 192,
2448 "w": 32,
2449 "h": 48
2450 },
2451 {
2452 "pitch": 60,
2453 "yaw": 120,
2454 "x": 1664,
2455 "y": 192,
2456 "w": 32,
2457 "h": 48
2458 },
2459 {
2460 "pitch": 60,
2461 "yaw": 150,
2462 "x": 1696,
2463 "y": 192,
2464 "w": 32,
2465 "h": 48
2466 },
2467 {
2468 "pitch": 60,
2469 "yaw": 180,
2470 "x": 1728,
2471 "y": 192,
2472 "w": 32,
2473 "h": 48
2474 },
2475 {
2476 "pitch": 60,
2477 "yaw": 210,
2478 "x": 1760,
2479 "y": 192,
2480 "w": 32,
2481 "h": 48
2482 },
2483 {
2484 "pitch": 60,
2485 "yaw": 240,
2486 "x": 1792,
2487 "y": 192,
2488 "w": 32,
2489 "h": 48
2490 },
2491 {
2492 "pitch": 60,
2493 "yaw": 270,
2494 "x": 1824,
2495 "y": 192,
2496 "w": 32,
2497 "h": 48
2498 },
2499 {
2500 "pitch": 60,
2501 "yaw": 300,
2502 "x": 1856,
2503 "y": 192,
2504 "w": 32,
2505 "h": 48
2506 },
2507 {
2508 "pitch": 60,
2509 "yaw": 330,
2510 "x": 1888,
2511 "y": 192,
2512 "w": 32,
2513 "h": 48
2514 }
2515 ]
2516 },
2517 {
2518 "index": 1,
2519 "views": [
2520 {
2521 "pitch": -60,
2522 "yaw": 0,
2523 "x": 0,
2524 "y": 240,
2525 "w": 32,
2526 "h": 48
2527 },
2528 {
2529 "pitch": -60,
2530 "yaw": 30,
2531 "x": 32,
2532 "y": 240,
2533 "w": 32,
2534 "h": 48
2535 },
2536 {
2537 "pitch": -60,
2538 "yaw": 60,
2539 "x": 64,
2540 "y": 240,
2541 "w": 32,
2542 "h": 48
2543 },
2544 {
2545 "pitch": -60,
2546 "yaw": 90,
2547 "x": 96,
2548 "y": 240,
2549 "w": 32,
2550 "h": 48
2551 },
2552 {
2553 "pitch": -60,
2554 "yaw": 120,
2555 "x": 128,
2556 "y": 240,
2557 "w": 32,
2558 "h": 48
2559 },
2560 {
2561 "pitch": -60,
2562 "yaw": 150,
2563 "x": 160,
2564 "y": 240,
2565 "w": 32,
2566 "h": 48
2567 },
2568 {
2569 "pitch": -60,
2570 "yaw": 180,
2571 "x": 192,
2572 "y": 240,
2573 "w": 32,
2574 "h": 48
2575 },
2576 {
2577 "pitch": -60,
2578 "yaw": 210,
2579 "x": 224,
2580 "y": 240,
2581 "w": 32,
2582 "h": 48
2583 },
2584 {
2585 "pitch": -60,
2586 "yaw": 240,
2587 "x": 256,
2588 "y": 240,
2589 "w": 32,
2590 "h": 48
2591 },
2592 {
2593 "pitch": -60,
2594 "yaw": 270,
2595 "x": 288,
2596 "y": 240,
2597 "w": 32,
2598 "h": 48
2599 },
2600 {
2601 "pitch": -60,
2602 "yaw": 300,
2603 "x": 320,
2604 "y": 240,
2605 "w": 32,
2606 "h": 48
2607 },
2608 {
2609 "pitch": -60,
2610 "yaw": 330,
2611 "x": 352,
2612 "y": 240,
2613 "w": 32,
2614 "h": 48
2615 },
2616 {
2617 "pitch": -30,
2618 "yaw": 0,
2619 "x": 384,
2620 "y": 240,
2621 "w": 32,
2622 "h": 48
2623 },
2624 {
2625 "pitch": -30,
2626 "yaw": 30,
2627 "x": 416,
2628 "y": 240,
2629 "w": 32,
2630 "h": 48
2631 },
2632 {
2633 "pitch": -30,
2634 "yaw": 60,
2635 "x": 448,
2636 "y": 240,
2637 "w": 32,
2638 "h": 48
2639 },
2640 {
2641 "pitch": -30,
2642 "yaw": 90,
2643 "x": 480,
2644 "y": 240,
2645 "w": 32,
2646 "h": 48
2647 },
2648 {
2649 "pitch": -30,
2650 "yaw": 120,
2651 "x": 512,
2652 "y": 240,
2653 "w": 32,
2654 "h": 48
2655 },
2656 {
2657 "pitch": -30,
2658 "yaw": 150,
2659 "x": 544,
2660 "y": 240,
2661 "w": 32,
2662 "h": 48
2663 },
2664 {
2665 "pitch": -30,
2666 "yaw": 180,
2667 "x": 576,
2668 "y": 240,
2669 "w": 32,
2670 "h": 48
2671 },
2672 {
2673 "pitch": -30,
2674 "yaw": 210,
2675 "x": 608,
2676 "y": 240,
2677 "w": 32,
2678 "h": 48
2679 },
2680 {
2681 "pitch": -30,
2682 "yaw": 240,
2683 "x": 640,
2684 "y": 240,
2685 "w": 32,
2686 "h": 48
2687 },
2688 {
2689 "pitch": -30,
2690 "yaw": 270,
2691 "x": 672,
2692 "y": 240,
2693 "w": 32,
2694 "h": 48
2695 },
2696 {
2697 "pitch": -30,
2698 "yaw": 300,
2699 "x": 704,
2700 "y": 240,
2701 "w": 32,
2702 "h": 48
2703 },
2704 {
2705 "pitch": -30,
2706 "yaw": 330,
2707 "x": 736,
2708 "y": 240,
2709 "w": 32,
2710 "h": 48
2711 },
2712 {
2713 "pitch": 0,
2714 "yaw": 0,
2715 "x": 768,
2716 "y": 240,
2717 "w": 32,
2718 "h": 48
2719 },
2720 {
2721 "pitch": 0,
2722 "yaw": 30,
2723 "x": 800,
2724 "y": 240,
2725 "w": 32,
2726 "h": 48
2727 },
2728 {
2729 "pitch": 0,
2730 "yaw": 60,
2731 "x": 832,
2732 "y": 240,
2733 "w": 32,
2734 "h": 48
2735 },
2736 {
2737 "pitch": 0,
2738 "yaw": 90,
2739 "x": 864,
2740 "y": 240,
2741 "w": 32,
2742 "h": 48
2743 },
2744 {
2745 "pitch": 0,
2746 "yaw": 120,
2747 "x": 896,
2748 "y": 240,
2749 "w": 32,
2750 "h": 48
2751 },
2752 {
2753 "pitch": 0,
2754 "yaw": 150,
2755 "x": 928,
2756 "y": 240,
2757 "w": 32,
2758 "h": 48
2759 },
2760 {
2761 "pitch": 0,
2762 "yaw": 180,
2763 "x": 960,
2764 "y": 240,
2765 "w": 32,
2766 "h": 48
2767 },
2768 {
2769 "pitch": 0,
2770 "yaw": 210,
2771 "x": 992,
2772 "y": 240,
2773 "w": 32,
2774 "h": 48
2775 },
2776 {
2777 "pitch": 0,
2778 "yaw": 240,
2779 "x": 1024,
2780 "y": 240,
2781 "w": 32,
2782 "h": 48
2783 },
2784 {
2785 "pitch": 0,
2786 "yaw": 270,
2787 "x": 1056,
2788 "y": 240,
2789 "w": 32,
2790 "h": 48
2791 },
2792 {
2793 "pitch": 0,
2794 "yaw": 300,
2795 "x": 1088,
2796 "y": 240,
2797 "w": 32,
2798 "h": 48
2799 },
2800 {
2801 "pitch": 0,
2802 "yaw": 330,
2803 "x": 1120,
2804 "y": 240,
2805 "w": 32,
2806 "h": 48
2807 },
2808 {
2809 "pitch": 30,
2810 "yaw": 0,
2811 "x": 1152,
2812 "y": 240,
2813 "w": 32,
2814 "h": 48
2815 },
2816 {
2817 "pitch": 30,
2818 "yaw": 30,
2819 "x": 1184,
2820 "y": 240,
2821 "w": 32,
2822 "h": 48
2823 },
2824 {
2825 "pitch": 30,
2826 "yaw": 60,
2827 "x": 1216,
2828 "y": 240,
2829 "w": 32,
2830 "h": 48
2831 },
2832 {
2833 "pitch": 30,
2834 "yaw": 90,
2835 "x": 1248,
2836 "y": 240,
2837 "w": 32,
2838 "h": 48
2839 },
2840 {
2841 "pitch": 30,
2842 "yaw": 120,
2843 "x": 1280,
2844 "y": 240,
2845 "w": 32,
2846 "h": 48
2847 },
2848 {
2849 "pitch": 30,
2850 "yaw": 150,
2851 "x": 1312,
2852 "y": 240,
2853 "w": 32,
2854 "h": 48
2855 },
2856 {
2857 "pitch": 30,
2858 "yaw": 180,
2859 "x": 1344,
2860 "y": 240,
2861 "w": 32,
2862 "h": 48
2863 },
2864 {
2865 "pitch": 30,
2866 "yaw": 210,
2867 "x": 1376,
2868 "y": 240,
2869 "w": 32,
2870 "h": 48
2871 },
2872 {
2873 "pitch": 30,
2874 "yaw": 240,
2875 "x": 1408,
2876 "y": 240,
2877 "w": 32,
2878 "h": 48
2879 },
2880 {
2881 "pitch": 30,
2882 "yaw": 270,
2883 "x": 1440,
2884 "y": 240,
2885 "w": 32,
2886 "h": 48
2887 },
2888 {
2889 "pitch": 30,
2890 "yaw": 300,
2891 "x": 1472,
2892 "y": 240,
2893 "w": 32,
2894 "h": 48
2895 },
2896 {
2897 "pitch": 30,
2898 "yaw": 330,
2899 "x": 1504,
2900 "y": 240,
2901 "w": 32,
2902 "h": 48
2903 },
2904 {
2905 "pitch": 60,
2906 "yaw": 0,
2907 "x": 1536,
2908 "y": 240,
2909 "w": 32,
2910 "h": 48
2911 },
2912 {
2913 "pitch": 60,
2914 "yaw": 30,
2915 "x": 1568,
2916 "y": 240,
2917 "w": 32,
2918 "h": 48
2919 },
2920 {
2921 "pitch": 60,
2922 "yaw": 60,
2923 "x": 1600,
2924 "y": 240,
2925 "w": 32,
2926 "h": 48
2927 },
2928 {
2929 "pitch": 60,
2930 "yaw": 90,
2931 "x": 1632,
2932 "y": 240,
2933 "w": 32,
2934 "h": 48
2935 },
2936 {
2937 "pitch": 60,
2938 "yaw": 120,
2939 "x": 1664,
2940 "y": 240,
2941 "w": 32,
2942 "h": 48
2943 },
2944 {
2945 "pitch": 60,
2946 "yaw": 150,
2947 "x": 1696,
2948 "y": 240,
2949 "w": 32,
2950 "h": 48
2951 },
2952 {
2953 "pitch": 60,
2954 "yaw": 180,
2955 "x": 1728,
2956 "y": 240,
2957 "w": 32,
2958 "h": 48
2959 },
2960 {
2961 "pitch": 60,
2962 "yaw": 210,
2963 "x": 1760,
2964 "y": 240,
2965 "w": 32,
2966 "h": 48
2967 },
2968 {
2969 "pitch": 60,
2970 "yaw": 240,
2971 "x": 1792,
2972 "y": 240,
2973 "w": 32,
2974 "h": 48
2975 },
2976 {
2977 "pitch": 60,
2978 "yaw": 270,
2979 "x": 1824,
2980 "y": 240,
2981 "w": 32,
2982 "h": 48
2983 },
2984 {
2985 "pitch": 60,
2986 "yaw": 300,
2987 "x": 1856,
2988 "y": 240,
2989 "w": 32,
2990 "h": 48
2991 },
2992 {
2993 "pitch": 60,
2994 "yaw": 330,
2995 "x": 1888,
2996 "y": 240,
2997 "w": 32,
2998 "h": 48
2999 }
3000 ]
3001 },
3002 {
3003 "index": 2,
3004 "views": [
3005 {
3006 "pitch": -60,
3007 "yaw": 0,
3008 "x": 0,
3009 "y": 288,
3010 "w": 32,
3011 "h": 48
3012 },
3013 {
3014 "pitch": -60,
3015 "yaw": 30,
3016 "x": 32,
3017 "y": 288,
3018 "w": 32,
3019 "h": 48
3020 },
3021 {
3022 "pitch": -60,
3023 "yaw": 60,
3024 "x": 64,
3025 "y": 288,
3026 "w": 32,
3027 "h": 48
3028 },
3029 {
3030 "pitch": -60,
3031 "yaw": 90,
3032 "x": 96,
3033 "y": 288,
3034 "w": 32,
3035 "h": 48
3036 },
3037 {
3038 "pitch": -60,
3039 "yaw": 120,
3040 "x": 128,
3041 "y": 288,
3042 "w": 32,
3043 "h": 48
3044 },
3045 {
3046 "pitch": -60,
3047 "yaw": 150,
3048 "x": 160,
3049 "y": 288,
3050 "w": 32,
3051 "h": 48
3052 },
3053 {
3054 "pitch": -60,
3055 "yaw": 180,
3056 "x": 192,
3057 "y": 288,
3058 "w": 32,
3059 "h": 48
3060 },
3061 {
3062 "pitch": -60,
3063 "yaw": 210,
3064 "x": 224,
3065 "y": 288,
3066 "w": 32,
3067 "h": 48
3068 },
3069 {
3070 "pitch": -60,
3071 "yaw": 240,
3072 "x": 256,
3073 "y": 288,
3074 "w": 32,
3075 "h": 48
3076 },
3077 {
3078 "pitch": -60,
3079 "yaw": 270,
3080 "x": 288,
3081 "y": 288,
3082 "w": 32,
3083 "h": 48
3084 },
3085 {
3086 "pitch": -60,
3087 "yaw": 300,
3088 "x": 320,
3089 "y": 288,
3090 "w": 32,
3091 "h": 48
3092 },
3093 {
3094 "pitch": -60,
3095 "yaw": 330,
3096 "x": 352,
3097 "y": 288,
3098 "w": 32,
3099 "h": 48
3100 },
3101 {
3102 "pitch": -30,
3103 "yaw": 0,
3104 "x": 384,
3105 "y": 288,
3106 "w": 32,
3107 "h": 48
3108 },
3109 {
3110 "pitch": -30,
3111 "yaw": 30,
3112 "x": 416,
3113 "y": 288,
3114 "w": 32,
3115 "h": 48
3116 },
3117 {
3118 "pitch": -30,
3119 "yaw": 60,
3120 "x": 448,
3121 "y": 288,
3122 "w": 32,
3123 "h": 48
3124 },
3125 {
3126 "pitch": -30,
3127 "yaw": 90,
3128 "x": 480,
3129 "y": 288,
3130 "w": 32,
3131 "h": 48
3132 },
3133 {
3134 "pitch": -30,
3135 "yaw": 120,
3136 "x": 512,
3137 "y": 288,
3138 "w": 32,
3139 "h": 48
3140 },
3141 {
3142 "pitch": -30,
3143 "yaw": 150,
3144 "x": 544,
3145 "y": 288,
3146 "w": 32,
3147 "h": 48
3148 },
3149 {
3150 "pitch": -30,
3151 "yaw": 180,
3152 "x": 576,
3153 "y": 288,
3154 "w": 32,
3155 "h": 48
3156 },
3157 {
3158 "pitch": -30,
3159 "yaw": 210,
3160 "x": 608,
3161 "y": 288,
3162 "w": 32,
3163 "h": 48
3164 },
3165 {
3166 "pitch": -30,
3167 "yaw": 240,
3168 "x": 640,
3169 "y": 288,
3170 "w": 32,
3171 "h": 48
3172 },
3173 {
3174 "pitch": -30,
3175 "yaw": 270,
3176 "x": 672,
3177 "y": 288,
3178 "w": 32,
3179 "h": 48
3180 },
3181 {
3182 "pitch": -30,
3183 "yaw": 300,
3184 "x": 704,
3185 "y": 288,
3186 "w": 32,
3187 "h": 48
3188 },
3189 {
3190 "pitch": -30,
3191 "yaw": 330,
3192 "x": 736,
3193 "y": 288,
3194 "w": 32,
3195 "h": 48
3196 },
3197 {
3198 "pitch": 0,
3199 "yaw": 0,
3200 "x": 768,
3201 "y": 288,
3202 "w": 32,
3203 "h": 48
3204 },
3205 {
3206 "pitch": 0,
3207 "yaw": 30,
3208 "x": 800,
3209 "y": 288,
3210 "w": 32,
3211 "h": 48
3212 },
3213 {
3214 "pitch": 0,
3215 "yaw": 60,
3216 "x": 832,
3217 "y": 288,
3218 "w": 32,
3219 "h": 48
3220 },
3221 {
3222 "pitch": 0,
3223 "yaw": 90,
3224 "x": 864,
3225 "y": 288,
3226 "w": 32,
3227 "h": 48
3228 },
3229 {
3230 "pitch": 0,
3231 "yaw": 120,
3232 "x": 896,
3233 "y": 288,
3234 "w": 32,
3235 "h": 48
3236 },
3237 {
3238 "pitch": 0,
3239 "yaw": 150,
3240 "x": 928,
3241 "y": 288,
3242 "w": 32,
3243 "h": 48
3244 },
3245 {
3246 "pitch": 0,
3247 "yaw": 180,
3248 "x": 960,
3249 "y": 288,
3250 "w": 32,
3251 "h": 48
3252 },
3253 {
3254 "pitch": 0,
3255 "yaw": 210,
3256 "x": 992,
3257 "y": 288,
3258 "w": 32,
3259 "h": 48
3260 },
3261 {
3262 "pitch": 0,
3263 "yaw": 240,
3264 "x": 1024,
3265 "y": 288,
3266 "w": 32,
3267 "h": 48
3268 },
3269 {
3270 "pitch": 0,
3271 "yaw": 270,
3272 "x": 1056,
3273 "y": 288,
3274 "w": 32,
3275 "h": 48
3276 },
3277 {
3278 "pitch": 0,
3279 "yaw": 300,
3280 "x": 1088,
3281 "y": 288,
3282 "w": 32,
3283 "h": 48
3284 },
3285 {
3286 "pitch": 0,
3287 "yaw": 330,
3288 "x": 1120,
3289 "y": 288,
3290 "w": 32,
3291 "h": 48
3292 },
3293 {
3294 "pitch": 30,
3295 "yaw": 0,
3296 "x": 1152,
3297 "y": 288,
3298 "w": 32,
3299 "h": 48
3300 },
3301 {
3302 "pitch": 30,
3303 "yaw": 30,
3304 "x": 1184,
3305 "y": 288,
3306 "w": 32,
3307 "h": 48
3308 },
3309 {
3310 "pitch": 30,
3311 "yaw": 60,
3312 "x": 1216,
3313 "y": 288,
3314 "w": 32,
3315 "h": 48
3316 },
3317 {
3318 "pitch": 30,
3319 "yaw": 90,
3320 "x": 1248,
3321 "y": 288,
3322 "w": 32,
3323 "h": 48
3324 },
3325 {
3326 "pitch": 30,
3327 "yaw": 120,
3328 "x": 1280,
3329 "y": 288,
3330 "w": 32,
3331 "h": 48
3332 },
3333 {
3334 "pitch": 30,
3335 "yaw": 150,
3336 "x": 1312,
3337 "y": 288,
3338 "w": 32,
3339 "h": 48
3340 },
3341 {
3342 "pitch": 30,
3343 "yaw": 180,
3344 "x": 1344,
3345 "y": 288,
3346 "w": 32,
3347 "h": 48
3348 },
3349 {
3350 "pitch": 30,
3351 "yaw": 210,
3352 "x": 1376,
3353 "y": 288,
3354 "w": 32,
3355 "h": 48
3356 },
3357 {
3358 "pitch": 30,
3359 "yaw": 240,
3360 "x": 1408,
3361 "y": 288,
3362 "w": 32,
3363 "h": 48
3364 },
3365 {
3366 "pitch": 30,
3367 "yaw": 270,
3368 "x": 1440,
3369 "y": 288,
3370 "w": 32,
3371 "h": 48
3372 },
3373 {
3374 "pitch": 30,
3375 "yaw": 300,
3376 "x": 1472,
3377 "y": 288,
3378 "w": 32,
3379 "h": 48
3380 },
3381 {
3382 "pitch": 30,
3383 "yaw": 330,
3384 "x": 1504,
3385 "y": 288,
3386 "w": 32,
3387 "h": 48
3388 },
3389 {
3390 "pitch": 60,
3391 "yaw": 0,
3392 "x": 1536,
3393 "y": 288,
3394 "w": 32,
3395 "h": 48
3396 },
3397 {
3398 "pitch": 60,
3399 "yaw": 30,
3400 "x": 1568,
3401 "y": 288,
3402 "w": 32,
3403 "h": 48
3404 },
3405 {
3406 "pitch": 60,
3407 "yaw": 60,
3408 "x": 1600,
3409 "y": 288,
3410 "w": 32,
3411 "h": 48
3412 },
3413 {
3414 "pitch": 60,
3415 "yaw": 90,
3416 "x": 1632,
3417 "y": 288,
3418 "w": 32,
3419 "h": 48
3420 },
3421 {
3422 "pitch": 60,
3423 "yaw": 120,
3424 "x": 1664,
3425 "y": 288,
3426 "w": 32,
3427 "h": 48
3428 },
3429 {
3430 "pitch": 60,
3431 "yaw": 150,
3432 "x": 1696,
3433 "y": 288,
3434 "w": 32,
3435 "h": 48
3436 },
3437 {
3438 "pitch": 60,
3439 "yaw": 180,
3440 "x": 1728,
3441 "y": 288,
3442 "w": 32,
3443 "h": 48
3444 },
3445 {
3446 "pitch": 60,
3447 "yaw": 210,
3448 "x": 1760,
3449 "y": 288,
3450 "w": 32,
3451 "h": 48
3452 },
3453 {
3454 "pitch": 60,
3455 "yaw": 240,
3456 "x": 1792,
3457 "y": 288,
3458 "w": 32,
3459 "h": 48
3460 },
3461 {
3462 "pitch": 60,
3463 "yaw": 270,
3464 "x": 1824,
3465 "y": 288,
3466 "w": 32,
3467 "h": 48
3468 },
3469 {
3470 "pitch": 60,
3471 "yaw": 300,
3472 "x": 1856,
3473 "y": 288,
3474 "w": 32,
3475 "h": 48
3476 },
3477 {
3478 "pitch": 60,
3479 "yaw": 330,
3480 "x": 1888,
3481 "y": 288,
3482 "w": 32,
3483 "h": 48
3484 }
3485 ]
3486 },
3487 {
3488 "index": 3,
3489 "views": [
3490 {
3491 "pitch": -60,
3492 "yaw": 0,
3493 "x": 0,
3494 "y": 336,
3495 "w": 32,
3496 "h": 48
3497 },
3498 {
3499 "pitch": -60,
3500 "yaw": 30,
3501 "x": 32,
3502 "y": 336,
3503 "w": 32,
3504 "h": 48
3505 },
3506 {
3507 "pitch": -60,
3508 "yaw": 60,
3509 "x": 64,
3510 "y": 336,
3511 "w": 32,
3512 "h": 48
3513 },
3514 {
3515 "pitch": -60,
3516 "yaw": 90,
3517 "x": 96,
3518 "y": 336,
3519 "w": 32,
3520 "h": 48
3521 },
3522 {
3523 "pitch": -60,
3524 "yaw": 120,
3525 "x": 128,
3526 "y": 336,
3527 "w": 32,
3528 "h": 48
3529 },
3530 {
3531 "pitch": -60,
3532 "yaw": 150,
3533 "x": 160,
3534 "y": 336,
3535 "w": 32,
3536 "h": 48
3537 },
3538 {
3539 "pitch": -60,
3540 "yaw": 180,
3541 "x": 192,
3542 "y": 336,
3543 "w": 32,
3544 "h": 48
3545 },
3546 {
3547 "pitch": -60,
3548 "yaw": 210,
3549 "x": 224,
3550 "y": 336,
3551 "w": 32,
3552 "h": 48
3553 },
3554 {
3555 "pitch": -60,
3556 "yaw": 240,
3557 "x": 256,
3558 "y": 336,
3559 "w": 32,
3560 "h": 48
3561 },
3562 {
3563 "pitch": -60,
3564 "yaw": 270,
3565 "x": 288,
3566 "y": 336,
3567 "w": 32,
3568 "h": 48
3569 },
3570 {
3571 "pitch": -60,
3572 "yaw": 300,
3573 "x": 320,
3574 "y": 336,
3575 "w": 32,
3576 "h": 48
3577 },
3578 {
3579 "pitch": -60,
3580 "yaw": 330,
3581 "x": 352,
3582 "y": 336,
3583 "w": 32,
3584 "h": 48
3585 },
3586 {
3587 "pitch": -30,
3588 "yaw": 0,
3589 "x": 384,
3590 "y": 336,
3591 "w": 32,
3592 "h": 48
3593 },
3594 {
3595 "pitch": -30,
3596 "yaw": 30,
3597 "x": 416,
3598 "y": 336,
3599 "w": 32,
3600 "h": 48
3601 },
3602 {
3603 "pitch": -30,
3604 "yaw": 60,
3605 "x": 448,
3606 "y": 336,
3607 "w": 32,
3608 "h": 48
3609 },
3610 {
3611 "pitch": -30,
3612 "yaw": 90,
3613 "x": 480,
3614 "y": 336,
3615 "w": 32,
3616 "h": 48
3617 },
3618 {
3619 "pitch": -30,
3620 "yaw": 120,
3621 "x": 512,
3622 "y": 336,
3623 "w": 32,
3624 "h": 48
3625 },
3626 {
3627 "pitch": -30,
3628 "yaw": 150,
3629 "x": 544,
3630 "y": 336,
3631 "w": 32,
3632 "h": 48
3633 },
3634 {
3635 "pitch": -30,
3636 "yaw": 180,
3637 "x": 576,
3638 "y": 336,
3639 "w": 32,
3640 "h": 48
3641 },
3642 {
3643 "pitch": -30,
3644 "yaw": 210,
3645 "x": 608,
3646 "y": 336,
3647 "w": 32,
3648 "h": 48
3649 },
3650 {
3651 "pitch": -30,
3652 "yaw": 240,
3653 "x": 640,
3654 "y": 336,
3655 "w": 32,
3656 "h": 48
3657 },
3658 {
3659 "pitch": -30,
3660 "yaw": 270,
3661 "x": 672,
3662 "y": 336,
3663 "w": 32,
3664 "h": 48
3665 },
3666 {
3667 "pitch": -30,
3668 "yaw": 300,
3669 "x": 704,
3670 "y": 336,
3671 "w": 32,
3672 "h": 48
3673 },
3674 {
3675 "pitch": -30,
3676 "yaw": 330,
3677 "x": 736,
3678 "y": 336,
3679 "w": 32,
3680 "h": 48
3681 },
3682 {
3683 "pitch": 0,
3684 "yaw": 0,
3685 "x": 768,
3686 "y": 336,
3687 "w": 32,
3688 "h": 48
3689 },
3690 {
3691 "pitch": 0,
3692 "yaw": 30,
3693 "x": 800,
3694 "y": 336,
3695 "w": 32,
3696 "h": 48
3697 },
3698 {
3699 "pitch": 0,
3700 "yaw": 60,
3701 "x": 832,
3702 "y": 336,
3703 "w": 32,
3704 "h": 48
3705 },
3706 {
3707 "pitch": 0,
3708 "yaw": 90,
3709 "x": 864,
3710 "y": 336,
3711 "w": 32,
3712 "h": 48
3713 },
3714 {
3715 "pitch": 0,
3716 "yaw": 120,
3717 "x": 896,
3718 "y": 336,
3719 "w": 32,
3720 "h": 48
3721 },
3722 {
3723 "pitch": 0,
3724 "yaw": 150,
3725 "x": 928,
3726 "y": 336,
3727 "w": 32,
3728 "h": 48
3729 },
3730 {
3731 "pitch": 0,
3732 "yaw": 180,
3733 "x": 960,
3734 "y": 336,
3735 "w": 32,
3736 "h": 48
3737 },
3738 {
3739 "pitch": 0,
3740 "yaw": 210,
3741 "x": 992,
3742 "y": 336,
3743 "w": 32,
3744 "h": 48
3745 },
3746 {
3747 "pitch": 0,
3748 "yaw": 240,
3749 "x": 1024,
3750 "y": 336,
3751 "w": 32,
3752 "h": 48
3753 },
3754 {
3755 "pitch": 0,
3756 "yaw": 270,
3757 "x": 1056,
3758 "y": 336,
3759 "w": 32,
3760 "h": 48
3761 },
3762 {
3763 "pitch": 0,
3764 "yaw": 300,
3765 "x": 1088,
3766 "y": 336,
3767 "w": 32,
3768 "h": 48
3769 },
3770 {
3771 "pitch": 0,
3772 "yaw": 330,
3773 "x": 1120,
3774 "y": 336,
3775 "w": 32,
3776 "h": 48
3777 },
3778 {
3779 "pitch": 30,
3780 "yaw": 0,
3781 "x": 1152,
3782 "y": 336,
3783 "w": 32,
3784 "h": 48
3785 },
3786 {
3787 "pitch": 30,
3788 "yaw": 30,
3789 "x": 1184,
3790 "y": 336,
3791 "w": 32,
3792 "h": 48
3793 },
3794 {
3795 "pitch": 30,
3796 "yaw": 60,
3797 "x": 1216,
3798 "y": 336,
3799 "w": 32,
3800 "h": 48
3801 },
3802 {
3803 "pitch": 30,
3804 "yaw": 90,
3805 "x": 1248,
3806 "y": 336,
3807 "w": 32,
3808 "h": 48
3809 },
3810 {
3811 "pitch": 30,
3812 "yaw": 120,
3813 "x": 1280,
3814 "y": 336,
3815 "w": 32,
3816 "h": 48
3817 },
3818 {
3819 "pitch": 30,
3820 "yaw": 150,
3821 "x": 1312,
3822 "y": 336,
3823 "w": 32,
3824 "h": 48
3825 },
3826 {
3827 "pitch": 30,
3828 "yaw": 180,
3829 "x": 1344,
3830 "y": 336,
3831 "w": 32,
3832 "h": 48
3833 },
3834 {
3835 "pitch": 30,
3836 "yaw": 210,
3837 "x": 1376,
3838 "y": 336,
3839 "w": 32,
3840 "h": 48
3841 },
3842 {
3843 "pitch": 30,
3844 "yaw": 240,
3845 "x": 1408,
3846 "y": 336,
3847 "w": 32,
3848 "h": 48
3849 },
3850 {
3851 "pitch": 30,
3852 "yaw": 270,
3853 "x": 1440,
3854 "y": 336,
3855 "w": 32,
3856 "h": 48
3857 },
3858 {
3859 "pitch": 30,
3860 "yaw": 300,
3861 "x": 1472,
3862 "y": 336,
3863 "w": 32,
3864 "h": 48
3865 },
3866 {
3867 "pitch": 30,
3868 "yaw": 330,
3869 "x": 1504,
3870 "y": 336,
3871 "w": 32,
3872 "h": 48
3873 },
3874 {
3875 "pitch": 60,
3876 "yaw": 0,
3877 "x": 1536,
3878 "y": 336,
3879 "w": 32,
3880 "h": 48
3881 },
3882 {
3883 "pitch": 60,
3884 "yaw": 30,
3885 "x": 1568,
3886 "y": 336,
3887 "w": 32,
3888 "h": 48
3889 },
3890 {
3891 "pitch": 60,
3892 "yaw": 60,
3893 "x": 1600,
3894 "y": 336,
3895 "w": 32,
3896 "h": 48
3897 },
3898 {
3899 "pitch": 60,
3900 "yaw": 90,
3901 "x": 1632,
3902 "y": 336,
3903 "w": 32,
3904 "h": 48
3905 },
3906 {
3907 "pitch": 60,
3908 "yaw": 120,
3909 "x": 1664,
3910 "y": 336,
3911 "w": 32,
3912 "h": 48
3913 },
3914 {
3915 "pitch": 60,
3916 "yaw": 150,
3917 "x": 1696,
3918 "y": 336,
3919 "w": 32,
3920 "h": 48
3921 },
3922 {
3923 "pitch": 60,
3924 "yaw": 180,
3925 "x": 1728,
3926 "y": 336,
3927 "w": 32,
3928 "h": 48
3929 },
3930 {
3931 "pitch": 60,
3932 "yaw": 210,
3933 "x": 1760,
3934 "y": 336,
3935 "w": 32,
3936 "h": 48
3937 },
3938 {
3939 "pitch": 60,
3940 "yaw": 240,
3941 "x": 1792,
3942 "y": 336,
3943 "w": 32,
3944 "h": 48
3945 },
3946 {
3947 "pitch": 60,
3948 "yaw": 270,
3949 "x": 1824,
3950 "y": 336,
3951 "w": 32,
3952 "h": 48
3953 },
3954 {
3955 "pitch": 60,
3956 "yaw": 300,
3957 "x": 1856,
3958 "y": 336,
3959 "w": 32,
3960 "h": 48
3961 },
3962 {
3963 "pitch": 60,
3964 "yaw": 330,
3965 "x": 1888,
3966 "y": 336,
3967 "w": 32,
3968 "h": 48
3969 }
3970 ]
3971 }
3972 ]
3973 }
3974 ],
3975 "depth_near": 0.05,
3976 "depth_far": 40.0,
3977 "depth_encoding": "gray",
3978 "depth_bits": 16
3979}
build/paperdolls/male-sword/male-sword-depth-atlas.u16 added Binary file +0 −0

The contents of this binary file are not shown.

build/paperdolls/male-sword/male-sword-diffuse-atlas.png added Binary file +0 −0

The contents of this binary file are not shown.

build/paperdolls/male-sword/male-sword-normal-atlas.png added Binary file +0 −0

The contents of this binary file are not shown.

build/paperdolls/male-sword/male-sword-specular-atlas.png added Binary file +0 −0

The contents of this binary file are not shown.

build/shot-paperdolls.html added +22 −0
@@ -0,0 +1,22 @@
1 <html><head><meta charset="utf-8"><style>html,body{margin:0;overflow:hidden;background:#000}</style></head>
2 <body>
3 <script>
4 Object.defineProperty(window,'innerWidth',{get:()=>960});
5 Object.defineProperty(window,'innerHeight',{get:()=>540});
6 </script>
7 <script src="framework.js"></script>
8 <script src="game.js"></script>
9 <script>
10 (function(){
11 var n=0;
12 var id=setInterval(function(){
13 n++;
14 if(typeof NpcSystem!=='undefined' && NpcSystem.ready && n>25){
15 document.title='READY';
16 clearInterval(id);
17 }
18 if(n>200){ document.title='TIMEOUT'; clearInterval(id); }
19 },100);
20 })();
21 </script>
22 </body></html>
@@ -0,0 +1,22 @@
1<html><head><meta charset="utf-8"><style>html,body{margin:0;overflow:hidden;background:#000}</style></head>
2<body>
3<script>
4Object.defineProperty(window,'innerWidth',{get:()=>960});
5Object.defineProperty(window,'innerHeight',{get:()=>540});
6</script>
7<script src="framework.js"></script>
8<script src="game.js"></script>
9<script>
10(function(){
11 var n=0;
12 var id=setInterval(function(){
13 n++;
14 if(typeof NpcSystem!=='undefined' && NpcSystem.ready && n>25){
15 document.title='READY';
16 clearInterval(id);
17 }
18 if(n>200){ document.title='TIMEOUT'; clearInterval(id); }
19 },100);
20})();
21</script>
22</body></html>
build/shot-paperdolls.js added +1 −0
@@ -0,0 +1 @@
1 // used by puppeteer-style - instead bake angles into separate html files
@@ -0,0 +1 @@
1// used by puppeteer-style - instead bake angles into separate html files
build/shot-pd-front.html added +19 −0
@@ -0,0 +1,19 @@
1 <html><head><meta charset="utf-8"><style>html,body{margin:0;overflow:hidden;background:#000}</style></head>
2 <body>
3 <script>Object.defineProperty(window,'innerWidth',{get:()=>960});Object.defineProperty(window,'innerHeight',{get:()=>540});</script>
4 <script src="framework.js"></script>
5 <script src="game.js"></script>
6 <script>
7 (function(){
8 var n=0;
9 var id=setInterval(function(){
10 n++;
11 if(typeof NpcSystem!=='undefined' && NpcSystem.ready && typeof Player!=='undefined'){
12 Player.x=48; Player.y=48; Player.rotation=0; Player.pitch=0;
13 if(n>30){ document.title='READY'; clearInterval(id); }
14 }
15 if(n>250){ document.title='TIMEOUT'; clearInterval(id); }
16 },100);
17 })();
18 </script>
19 </body></html>
@@ -0,0 +1,19 @@
1<html><head><meta charset="utf-8"><style>html,body{margin:0;overflow:hidden;background:#000}</style></head>
2<body>
3<script>Object.defineProperty(window,'innerWidth',{get:()=>960});Object.defineProperty(window,'innerHeight',{get:()=>540});</script>
4<script src="framework.js"></script>
5<script src="game.js"></script>
6<script>
7(function(){
8 var n=0;
9 var id=setInterval(function(){
10 n++;
11 if(typeof NpcSystem!=='undefined' && NpcSystem.ready && typeof Player!=='undefined'){
12 Player.x=48; Player.y=48; Player.rotation=0; Player.pitch=0;
13 if(n>30){ document.title='READY'; clearInterval(id); }
14 }
15 if(n>250){ document.title='TIMEOUT'; clearInterval(id); }
16 },100);
17})();
18</script>
19</body></html>
build/shot-pd-occluded.html added +19 −0
@@ -0,0 +1,19 @@
1 <html><head><meta charset="utf-8"><style>html,body{margin:0;overflow:hidden;background:#000}</style></head>
2 <body>
3 <script>Object.defineProperty(window,'innerWidth',{get:()=>960});Object.defineProperty(window,'innerHeight',{get:()=>540});</script>
4 <script src="framework.js"></script>
5 <script src="game.js"></script>
6 <script>
7 (function(){
8 var n=0;
9 var id=setInterval(function(){
10 n++;
11 if(typeof NpcSystem!=='undefined' && NpcSystem.ready && typeof Player!=='undefined'){
12 Player.x=48; Player.y=48; Player.rotation=0.4; Player.pitch=0;
13 if(n>30){ document.title='READY'; clearInterval(id); }
14 }
15 if(n>250){ document.title='TIMEOUT'; clearInterval(id); }
16 },100);
17 })();
18 </script>
19 </body></html>
@@ -0,0 +1,19 @@
1<html><head><meta charset="utf-8"><style>html,body{margin:0;overflow:hidden;background:#000}</style></head>
2<body>
3<script>Object.defineProperty(window,'innerWidth',{get:()=>960});Object.defineProperty(window,'innerHeight',{get:()=>540});</script>
4<script src="framework.js"></script>
5<script src="game.js"></script>
6<script>
7(function(){
8 var n=0;
9 var id=setInterval(function(){
10 n++;
11 if(typeof NpcSystem!=='undefined' && NpcSystem.ready && typeof Player!=='undefined'){
12 Player.x=48; Player.y=48; Player.rotation=0.4; Player.pitch=0;
13 if(n>30){ document.title='READY'; clearInterval(id); }
14 }
15 if(n>250){ document.title='TIMEOUT'; clearInterval(id); }
16 },100);
17})();
18</script>
19</body></html>
build/shot-pd-side.html added +19 −0
@@ -0,0 +1,19 @@
1 <html><head><meta charset="utf-8"><style>html,body{margin:0;overflow:hidden;background:#000}</style></head>
2 <body>
3 <script>Object.defineProperty(window,'innerWidth',{get:()=>960});Object.defineProperty(window,'innerHeight',{get:()=>540});</script>
4 <script src="framework.js"></script>
5 <script src="game.js"></script>
6 <script>
7 (function(){
8 var n=0;
9 var id=setInterval(function(){
10 n++;
11 if(typeof NpcSystem!=='undefined' && NpcSystem.ready && typeof Player!=='undefined'){
12 Player.x=48; Player.y=48; Player.rotation=1.2; Player.pitch=0;
13 if(n>30){ document.title='READY'; clearInterval(id); }
14 }
15 if(n>250){ document.title='TIMEOUT'; clearInterval(id); }
16 },100);
17 })();
18 </script>
19 </body></html>
@@ -0,0 +1,19 @@
1<html><head><meta charset="utf-8"><style>html,body{margin:0;overflow:hidden;background:#000}</style></head>
2<body>
3<script>Object.defineProperty(window,'innerWidth',{get:()=>960});Object.defineProperty(window,'innerHeight',{get:()=>540});</script>
4<script src="framework.js"></script>
5<script src="game.js"></script>
6<script>
7(function(){
8 var n=0;
9 var id=setInterval(function(){
10 n++;
11 if(typeof NpcSystem!=='undefined' && NpcSystem.ready && typeof Player!=='undefined'){
12 Player.x=48; Player.y=48; Player.rotation=1.2; Player.pitch=0;
13 if(n>30){ document.title='READY'; clearInterval(id); }
14 }
15 if(n>250){ document.title='TIMEOUT'; clearInterval(id); }
16 },100);
17})();
18</script>
19</body></html>
src/build.sh +6 −1
@@ -7,13 +7,18 @@ SRC_DIR="$ROOT/src"
7 7 printf "Build started, output file: %s\n" "$BUILD_FILE"
8 8 rm -f "$BUILD_FILE"
9 9
10 # Deterministic order (texture helpers before world/player/scene).
11 10 FILES=(
12 11 "$SRC_DIR/textureColumn.js"
12 "$SRC_DIR/ppda/depthDecode.js"
13 "$SRC_DIR/ppda/viewFrame.js"
14 "$SRC_DIR/ppda/compositor.js"
15 "$SRC_DIR/ppda/loadPpda.js"
16 "$SRC_DIR/ppda/atlasRuntime.js"
13 17 "$SRC_DIR/levels.js"
14 18 "$SRC_DIR/tiles.js"
15 19 "$SRC_DIR/world.js"
16 20 "$SRC_DIR/player.js"
21 "$SRC_DIR/npc.js"
17 22 "$SRC_DIR/raycastScene.js"
18 23 "$SRC_DIR/main.js"
19 24 )
@@ -7,13 +7,18 @@ SRC_DIR="$ROOT/src"
7printf "Build started, output file: %s\n" "$BUILD_FILE"
7printf "Build started, output file: %s\n" "$BUILD_FILE"
8rm -f "$BUILD_FILE"
8rm -f "$BUILD_FILE"
9
9
10# Deterministic order (texture helpers before world/player/scene).
11FILES=(
10FILES=(
12 "$SRC_DIR/textureColumn.js"
11 "$SRC_DIR/textureColumn.js"
12 "$SRC_DIR/ppda/depthDecode.js"
13 "$SRC_DIR/ppda/viewFrame.js"
14 "$SRC_DIR/ppda/compositor.js"
15 "$SRC_DIR/ppda/loadPpda.js"
16 "$SRC_DIR/ppda/atlasRuntime.js"
13 "$SRC_DIR/levels.js"
17 "$SRC_DIR/levels.js"
14 "$SRC_DIR/tiles.js"
18 "$SRC_DIR/tiles.js"
15 "$SRC_DIR/world.js"
19 "$SRC_DIR/world.js"
16 "$SRC_DIR/player.js"
20 "$SRC_DIR/player.js"
21 "$SRC_DIR/npc.js"
17 "$SRC_DIR/raycastScene.js"
22 "$SRC_DIR/raycastScene.js"
18 "$SRC_DIR/main.js"
23 "$SRC_DIR/main.js"
19)
24)
src/main.js +21 −1
@@ -1,4 +1,4 @@
1 console.log("Raytracer (frameworkv3) starting");
1 console.log("Raytracer (frameworkv3 + paperdolls) starting");
2 2 var game = new Game();
3 3
4 4 window.onload = function ()
@@ -20,8 +20,28 @@ window.onload = function ()
20 20 var w = Math.max(320, window.innerWidth - 2);
21 21 var h = Math.max(240, window.innerHeight - 2);
22 22 var scene = new RaycastScene(w, h);
23 scene.npcLight = 1;
23 24 game.loadScene(scene);
24 25
26 NpcSystem.initEmpty();
27 NpcSystem.addNpc({ x: 48 + 64, y: 48, facingDeg: 180, clip: "walk", animating: true, label: "walker" });
28 NpcSystem.addNpc({ x: 48 + 128, y: 48 + 96, facingDeg: 90, clip: "walk", animating: false, time: 0.25, label: "guard" });
29 NpcSystem.addNpc({ x: 48 + 32, y: 48 + 160, facingDeg: 0, clip: "attack", animating: true, label: "attacker" });
30 NpcSystem.addNpc({ x: 200, y: 100, facingDeg: 270, clip: "walk", animating: true, label: "side" });
31
32 NpcSystem.load(
33 "paperdolls/male-body/",
34 "male-body-atlas.ppda",
35 "paperdolls/male-sword/",
36 "male-sword-atlas.ppda"
37 ).then(function ()
38 {
39 console.log("Paperdolls loaded (body + sword)");
40 }).catch(function (err)
41 {
42 console.error("Paperdoll load failed", err);
43 });
44
25 45 window.addEventListener("resize", function ()
26 46 {
27 47 scene.size.x = Math.max(320, window.innerWidth - 2);
@@ -1,4 +1,4 @@
1console.log("Raytracer (frameworkv3) starting");
1console.log("Raytracer (frameworkv3 + paperdolls) starting");
2var game = new Game();
2var game = new Game();
3
3
4window.onload = function ()
4window.onload = function ()
@@ -20,8 +20,28 @@ window.onload = function ()
20 var w = Math.max(320, window.innerWidth - 2);
20 var w = Math.max(320, window.innerWidth - 2);
21 var h = Math.max(240, window.innerHeight - 2);
21 var h = Math.max(240, window.innerHeight - 2);
22 var scene = new RaycastScene(w, h);
22 var scene = new RaycastScene(w, h);
23 scene.npcLight = 1;
23 game.loadScene(scene);
24 game.loadScene(scene);
24
25
26 NpcSystem.initEmpty();
27 NpcSystem.addNpc({ x: 48 + 64, y: 48, facingDeg: 180, clip: "walk", animating: true, label: "walker" });
28 NpcSystem.addNpc({ x: 48 + 128, y: 48 + 96, facingDeg: 90, clip: "walk", animating: false, time: 0.25, label: "guard" });
29 NpcSystem.addNpc({ x: 48 + 32, y: 48 + 160, facingDeg: 0, clip: "attack", animating: true, label: "attacker" });
30 NpcSystem.addNpc({ x: 200, y: 100, facingDeg: 270, clip: "walk", animating: true, label: "side" });
31
32 NpcSystem.load(
33 "paperdolls/male-body/",
34 "male-body-atlas.ppda",
35 "paperdolls/male-sword/",
36 "male-sword-atlas.ppda"
37 ).then(function ()
38 {
39 console.log("Paperdolls loaded (body + sword)");
40 }).catch(function (err)
41 {
42 console.error("Paperdoll load failed", err);
43 });
44
25 window.addEventListener("resize", function ()
45 window.addEventListener("resize", function ()
26 {
46 {
27 scene.size.x = Math.max(320, window.innerWidth - 2);
47 scene.size.x = Math.max(320, window.innerWidth - 2);
src/npc.js added +258 −0
@@ -0,0 +1,258 @@
1 /**
2 * Paperdoll NPC billboards.
3 * Compose body+gear on CPU when view/frame changes (cell ~32×48).
4 * Project with per-pixel depth into an offscreen RGBA buffer + z-buffer,
5 * then one WebGL textured quad — avoids thousands of drawSprite calls.
6 */
7 var NpcSystem =
8 {
9 npcs: [],
10 bodySet: null,
11 gearSet: null,
12 ready: false,
13 cache: {},
14 worldScale: 32,
15 _overlay: null,
16 _overlayCtx: null,
17 _overlayImg: null,
18 _zbuf: null,
19 _zbufW: 0,
20 _zbufH: 0,
21
22 initEmpty: function ()
23 {
24 this.npcs = [];
25 this.cache = {};
26 this.ready = false;
27 },
28
29 addNpc: function (opts)
30 {
31 this.npcs.push({
32 x: opts.x,
33 y: opts.y,
34 facingDeg: opts.facingDeg || 0,
35 clip: opts.clip || "walk",
36 animating: opts.animating !== false,
37 time: opts.time || 0,
38 label: opts.label || "npc"
39 });
40 },
41
42 load: function (bodyBase, bodyPpda, gearBase, gearPpda)
43 {
44 var self = this;
45 return PpdaAtlasRuntime.loadSet(bodyBase, bodyPpda).then(function (body)
46 {
47 self.bodySet = body;
48 if (!gearBase)
49 {
50 self.ready = true;
51 return body;
52 }
53 return PpdaAtlasRuntime.loadSet(gearBase, gearPpda).then(function (gear)
54 {
55 PpdaLoader.assertCompatible(body.ppda, gear.ppda);
56 self.gearSet = gear;
57 self.ready = true;
58 return body;
59 });
60 });
61 },
62
63 update: function (dt)
64 {
65 for (var i = 0; i < this.npcs.length; i++)
66 {
67 if (this.npcs[i].animating)
68 { this.npcs[i].time += dt; }
69 }
70 },
71
72 composedFor: function (npc, pitch, yaw)
73 {
74 if (!this.bodySet)
75 { return null; }
76 var clip = PpdaViewFrame.findClip(this.bodySet.ppda, npc.clip);
77 var frameCount = clip ? clip.frame_count : 1;
78 var frame = PpdaViewFrame.frameIndex(npc.time, this.bodySet.ppda.fps, frameCount);
79 var key = npc.clip + "|" + frame + "|" + pitch + "|" + yaw;
80 if (this.cache[key])
81 { return this.cache[key]; }
82 var composed = PpdaAtlasRuntime.composeView(
83 this.bodySet,
84 this.gearSet,
85 npc.clip,
86 frame,
87 pitch,
88 yaw
89 );
90 this.cache[key] = composed;
91 var keys = Object.keys(this.cache);
92 if (keys.length > 96)
93 { delete this.cache[keys[0]]; }
94 return composed;
95 },
96
97 _ensureOverlay: function (w, h)
98 {
99 if (!this._overlay || this._overlay.width !== w || this._overlay.height !== h)
100 {
101 this._overlay = document.createElement("canvas");
102 this._overlay.width = w;
103 this._overlay.height = h;
104 this._overlayCtx = this._overlay.getContext("2d");
105 this._overlayImg = null;
106 this._overlayTex = null;
107 this._zbuf = new Float32Array(w * h);
108 this._zbufW = w;
109 this._zbufH = h;
110 }
111 },
112
113 /**
114 * @param {Float32Array} wallDepthPerCol length = screen width
115 */
116 draw: function (scene, player, wallDepthPerCol)
117 {
118 if (!this.ready || !this.bodySet)
119 { return; }
120
121 var w = Math.round(scene.real_size.x);
122 var h = Math.round(scene.real_size.y);
123 this._ensureOverlay(w, h);
124 var ctx = this._overlayCtx;
125 ctx.clearRect(0, 0, w, h);
126 var img = ctx.createImageData(w, h);
127 var data = img.data;
128 var zbuf = this._zbuf;
129 var i;
130 for (i = 0; i < w * h; i++)
131 {
132 var col = i % w;
133 zbuf[i] = wallDepthPerCol[col];
134 }
135
136 var ppda = this.bodySet.ppda;
137 var heightM = (ppda.height_milli || 2600) / 1000;
138 var camDist = ppda.camera_distance || 10;
139 var near = ppda.depth_near;
140 var far = ppda.depth_far;
141 var metersToWorld = this.worldScale;
142 var tint = scene.npcLight != null ? scene.npcLight : 1;
143
144 var list = this.npcs.slice().sort(function (a, b)
145 {
146 var da = (a.x - player.x) * (a.x - player.x) + (a.y - player.y) * (a.y - player.y);
147 var db = (b.x - player.x) * (b.x - player.x) + (b.y - player.y) * (b.y - player.y);
148 return db - da;
149 });
150
151 for (var ni = 0; ni < list.length; ni++)
152 {
153 var npc = list[ni];
154 var dx = npc.x - player.x;
155 var dy = npc.y - player.y;
156 var dist = Math.sqrt(dx * dx + dy * dy);
157 if (dist < 0.5 || dist > 800)
158 { continue; }
159
160 var angleTo = Math.atan2(dy, dx);
161 var delta = angleTo - player.rotation;
162 while (delta > Math.PI) { delta -= Math.PI * 2; }
163 while (delta < -Math.PI) { delta += Math.PI * 2; }
164 if (Math.abs(delta) > Math.PI * 0.55)
165 { continue; }
166
167 var relYaw = PpdaViewFrame.relativeYawDeg(player.x, player.y, npc.x, npc.y, npc.facingDeg);
168 var yaw = PpdaViewFrame.pickYaw(relYaw, ppda.yaws);
169 var pitch = Math.abs(player.pitch) < 0.25
170 ? PpdaViewFrame.nearestInList(0, ppda.pitches)
171 : PpdaViewFrame.pickPitch(player.pitch, ppda.pitches);
172
173 var composed = this.composedFor(npc, pitch, yaw);
174 if (!composed)
175 { continue; }
176
177 var spriteH = (World.size * heightM) * (h / dist) * 0.5;
178 var aspect = composed.width / Math.max(1, composed.height);
179 var spriteW = spriteH * aspect;
180 var screenX = (w / 2) + (delta / (Math.PI / 3)) * (w / 2);
181 var screenY = h / 2 + (-player.pitch * h * 0.25);
182 var left = screenX - spriteW / 2;
183 var top = screenY - spriteH / 2;
184 var cols = Math.max(1, Math.ceil(spriteW));
185
186 for (var c = 0; c < cols; c++)
187 {
188 var sx = Math.floor(left + c);
189 if (sx < 0 || sx >= w)
190 { continue; }
191 var u = (c + 0.5) / cols;
192 var texX = Math.min(composed.width - 1, Math.max(0, Math.floor(u * composed.width)));
193 var y0 = Math.floor(top);
194 var y1 = Math.ceil(top + spriteH);
195
196 for (var sy = y0; sy < y1; sy++)
197 {
198 if (sy < 0 || sy >= h)
199 { continue; }
200 var v = (sy - top + 0.5) / spriteH;
201 if (v < 0 || v >= 1)
202 { continue; }
203 var texY = Math.min(composed.height - 1, Math.max(0, Math.floor(v * composed.height)));
204 var pi = texY * composed.width + texX;
205 var a = composed.lit[pi * 4 + 3];
206 if (!a || composed.depthAlpha[pi] === 0)
207 { continue; }
208
209 var depthM = near + (composed.depthGray[pi] / 65535) * (far - near);
210 var pixelDist = dist + (depthM - camDist) * metersToWorld;
211 if (pixelDist < 0.05)
212 { pixelDist = 0.05; }
213
214 var zi = sy * w + sx;
215 if (pixelDist >= zbuf[zi])
216 { continue; }
217 zbuf[zi] = pixelDist;
218
219 var o = zi * 4;
220 data[o] = Math.min(255, Math.round(composed.lit[pi * 4] * tint));
221 data[o + 1] = Math.min(255, Math.round(composed.lit[pi * 4 + 1] * tint));
222 data[o + 2] = Math.min(255, Math.round(composed.lit[pi * 4 + 2] * tint));
223 data[o + 3] = a;
224 }
225 }
226 }
227
228 ctx.putImageData(img, 0, 0);
229 var glc = scene.glContext;
230 // Re-upload every frame (content changes).
231 if (this._overlayTex)
232 {
233 var gl = glc.gl;
234 gl.bindTexture(gl.TEXTURE_2D, this._overlayTex);
235 gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, this._overlay);
236 }
237 else
238 {
239 var prevMin = glc.textureMinFilter;
240 var prevMag = glc.textureMagFilter;
241 glc.setDefaultTextureFilter(glc.gl.NEAREST, glc.gl.NEAREST);
242 this._overlayTex = glc.getTexture(this._overlay);
243 glc.textureMinFilter = prevMin;
244 glc.textureMagFilter = prevMag;
245 }
246
247 glc.drawSprite({
248 texture: this._overlayTex,
249 x: w / 2,
250 y: h / 2,
251 w: w,
252 h: h,
253 rotationDeg: 0,
254 alpha: 1,
255 uvRect: { u0: 0, v0: 0, u1: 1, v1: 1 }
256 });
257 }
258 };
@@ -0,0 +1,258 @@
1/**
2 * Paperdoll NPC billboards.
3 * Compose body+gear on CPU when view/frame changes (cell ~32×48).
4 * Project with per-pixel depth into an offscreen RGBA buffer + z-buffer,
5 * then one WebGL textured quad — avoids thousands of drawSprite calls.
6 */
7var NpcSystem =
8{
9 npcs: [],
10 bodySet: null,
11 gearSet: null,
12 ready: false,
13 cache: {},
14 worldScale: 32,
15 _overlay: null,
16 _overlayCtx: null,
17 _overlayImg: null,
18 _zbuf: null,
19 _zbufW: 0,
20 _zbufH: 0,
21
22 initEmpty: function ()
23 {
24 this.npcs = [];
25 this.cache = {};
26 this.ready = false;
27 },
28
29 addNpc: function (opts)
30 {
31 this.npcs.push({
32 x: opts.x,
33 y: opts.y,
34 facingDeg: opts.facingDeg || 0,
35 clip: opts.clip || "walk",
36 animating: opts.animating !== false,
37 time: opts.time || 0,
38 label: opts.label || "npc"
39 });
40 },
41
42 load: function (bodyBase, bodyPpda, gearBase, gearPpda)
43 {
44 var self = this;
45 return PpdaAtlasRuntime.loadSet(bodyBase, bodyPpda).then(function (body)
46 {
47 self.bodySet = body;
48 if (!gearBase)
49 {
50 self.ready = true;
51 return body;
52 }
53 return PpdaAtlasRuntime.loadSet(gearBase, gearPpda).then(function (gear)
54 {
55 PpdaLoader.assertCompatible(body.ppda, gear.ppda);
56 self.gearSet = gear;
57 self.ready = true;
58 return body;
59 });
60 });
61 },
62
63 update: function (dt)
64 {
65 for (var i = 0; i < this.npcs.length; i++)
66 {
67 if (this.npcs[i].animating)
68 { this.npcs[i].time += dt; }
69 }
70 },
71
72 composedFor: function (npc, pitch, yaw)
73 {
74 if (!this.bodySet)
75 { return null; }
76 var clip = PpdaViewFrame.findClip(this.bodySet.ppda, npc.clip);
77 var frameCount = clip ? clip.frame_count : 1;
78 var frame = PpdaViewFrame.frameIndex(npc.time, this.bodySet.ppda.fps, frameCount);
79 var key = npc.clip + "|" + frame + "|" + pitch + "|" + yaw;
80 if (this.cache[key])
81 { return this.cache[key]; }
82 var composed = PpdaAtlasRuntime.composeView(
83 this.bodySet,
84 this.gearSet,
85 npc.clip,
86 frame,
87 pitch,
88 yaw
89 );
90 this.cache[key] = composed;
91 var keys = Object.keys(this.cache);
92 if (keys.length > 96)
93 { delete this.cache[keys[0]]; }
94 return composed;
95 },
96
97 _ensureOverlay: function (w, h)
98 {
99 if (!this._overlay || this._overlay.width !== w || this._overlay.height !== h)
100 {
101 this._overlay = document.createElement("canvas");
102 this._overlay.width = w;
103 this._overlay.height = h;
104 this._overlayCtx = this._overlay.getContext("2d");
105 this._overlayImg = null;
106 this._overlayTex = null;
107 this._zbuf = new Float32Array(w * h);
108 this._zbufW = w;
109 this._zbufH = h;
110 }
111 },
112
113 /**
114 * @param {Float32Array} wallDepthPerCol length = screen width
115 */
116 draw: function (scene, player, wallDepthPerCol)
117 {
118 if (!this.ready || !this.bodySet)
119 { return; }
120
121 var w = Math.round(scene.real_size.x);
122 var h = Math.round(scene.real_size.y);
123 this._ensureOverlay(w, h);
124 var ctx = this._overlayCtx;
125 ctx.clearRect(0, 0, w, h);
126 var img = ctx.createImageData(w, h);
127 var data = img.data;
128 var zbuf = this._zbuf;
129 var i;
130 for (i = 0; i < w * h; i++)
131 {
132 var col = i % w;
133 zbuf[i] = wallDepthPerCol[col];
134 }
135
136 var ppda = this.bodySet.ppda;
137 var heightM = (ppda.height_milli || 2600) / 1000;
138 var camDist = ppda.camera_distance || 10;
139 var near = ppda.depth_near;
140 var far = ppda.depth_far;
141 var metersToWorld = this.worldScale;
142 var tint = scene.npcLight != null ? scene.npcLight : 1;
143
144 var list = this.npcs.slice().sort(function (a, b)
145 {
146 var da = (a.x - player.x) * (a.x - player.x) + (a.y - player.y) * (a.y - player.y);
147 var db = (b.x - player.x) * (b.x - player.x) + (b.y - player.y) * (b.y - player.y);
148 return db - da;
149 });
150
151 for (var ni = 0; ni < list.length; ni++)
152 {
153 var npc = list[ni];
154 var dx = npc.x - player.x;
155 var dy = npc.y - player.y;
156 var dist = Math.sqrt(dx * dx + dy * dy);
157 if (dist < 0.5 || dist > 800)
158 { continue; }
159
160 var angleTo = Math.atan2(dy, dx);
161 var delta = angleTo - player.rotation;
162 while (delta > Math.PI) { delta -= Math.PI * 2; }
163 while (delta < -Math.PI) { delta += Math.PI * 2; }
164 if (Math.abs(delta) > Math.PI * 0.55)
165 { continue; }
166
167 var relYaw = PpdaViewFrame.relativeYawDeg(player.x, player.y, npc.x, npc.y, npc.facingDeg);
168 var yaw = PpdaViewFrame.pickYaw(relYaw, ppda.yaws);
169 var pitch = Math.abs(player.pitch) < 0.25
170 ? PpdaViewFrame.nearestInList(0, ppda.pitches)
171 : PpdaViewFrame.pickPitch(player.pitch, ppda.pitches);
172
173 var composed = this.composedFor(npc, pitch, yaw);
174 if (!composed)
175 { continue; }
176
177 var spriteH = (World.size * heightM) * (h / dist) * 0.5;
178 var aspect = composed.width / Math.max(1, composed.height);
179 var spriteW = spriteH * aspect;
180 var screenX = (w / 2) + (delta / (Math.PI / 3)) * (w / 2);
181 var screenY = h / 2 + (-player.pitch * h * 0.25);
182 var left = screenX - spriteW / 2;
183 var top = screenY - spriteH / 2;
184 var cols = Math.max(1, Math.ceil(spriteW));
185
186 for (var c = 0; c < cols; c++)
187 {
188 var sx = Math.floor(left + c);
189 if (sx < 0 || sx >= w)
190 { continue; }
191 var u = (c + 0.5) / cols;
192 var texX = Math.min(composed.width - 1, Math.max(0, Math.floor(u * composed.width)));
193 var y0 = Math.floor(top);
194 var y1 = Math.ceil(top + spriteH);
195
196 for (var sy = y0; sy < y1; sy++)
197 {
198 if (sy < 0 || sy >= h)
199 { continue; }
200 var v = (sy - top + 0.5) / spriteH;
201 if (v < 0 || v >= 1)
202 { continue; }
203 var texY = Math.min(composed.height - 1, Math.max(0, Math.floor(v * composed.height)));
204 var pi = texY * composed.width + texX;
205 var a = composed.lit[pi * 4 + 3];
206 if (!a || composed.depthAlpha[pi] === 0)
207 { continue; }
208
209 var depthM = near + (composed.depthGray[pi] / 65535) * (far - near);
210 var pixelDist = dist + (depthM - camDist) * metersToWorld;
211 if (pixelDist < 0.05)
212 { pixelDist = 0.05; }
213
214 var zi = sy * w + sx;
215 if (pixelDist >= zbuf[zi])
216 { continue; }
217 zbuf[zi] = pixelDist;
218
219 var o = zi * 4;
220 data[o] = Math.min(255, Math.round(composed.lit[pi * 4] * tint));
221 data[o + 1] = Math.min(255, Math.round(composed.lit[pi * 4 + 1] * tint));
222 data[o + 2] = Math.min(255, Math.round(composed.lit[pi * 4 + 2] * tint));
223 data[o + 3] = a;
224 }
225 }
226 }
227
228 ctx.putImageData(img, 0, 0);
229 var glc = scene.glContext;
230 // Re-upload every frame (content changes).
231 if (this._overlayTex)
232 {
233 var gl = glc.gl;
234 gl.bindTexture(gl.TEXTURE_2D, this._overlayTex);
235 gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, this._overlay);
236 }
237 else
238 {
239 var prevMin = glc.textureMinFilter;
240 var prevMag = glc.textureMagFilter;
241 glc.setDefaultTextureFilter(glc.gl.NEAREST, glc.gl.NEAREST);
242 this._overlayTex = glc.getTexture(this._overlay);
243 glc.textureMinFilter = prevMin;
244 glc.textureMagFilter = prevMag;
245 }
246
247 glc.drawSprite({
248 texture: this._overlayTex,
249 x: w / 2,
250 y: h / 2,
251 w: w,
252 h: h,
253 rotationDeg: 0,
254 alpha: 1,
255 uvRect: { u0: 0, v0: 0, u1: 1, v1: 1 }
256 });
257 }
258};
src/ppda/atlasRuntime.js added +184 −0
@@ -0,0 +1,184 @@
1 /**
2 * Browser/runtime atlas set: loads PNG diffuse/normal/specular + u16 depth,
3 * extracts cells, composes body+gear on CPU (cell is 32×48 — cheap).
4 */
5 var PpdaAtlasRuntime =
6 {
7 _canvas: null,
8 _ctx: null,
9
10 _ensureCanvas: function ()
11 {
12 if (typeof document === "undefined")
13 { return null; }
14 if (!this._canvas)
15 {
16 this._canvas = document.createElement("canvas");
17 this._ctx = this._canvas.getContext("2d", { willReadFrequently: true });
18 }
19 return this._ctx;
20 },
21
22 loadImage: function (url)
23 {
24 return new Promise(function (resolve, reject)
25 {
26 var img = new Image();
27 img.onload = function ()
28 { resolve(img); };
29 img.onerror = function ()
30 { reject(new Error("image load failed: " + url)); };
31 img.src = url;
32 });
33 },
34
35 loadU16Depth: function (url, expectW, expectH)
36 {
37 return fetch(url).then(function (r)
38 {
39 if (!r.ok)
40 { throw new Error("depth fetch " + r.status + " " + url); }
41 return r.arrayBuffer();
42 }).then(function (buf)
43 {
44 var need = expectW * expectH * 4;
45 if (buf.byteLength < need)
46 { throw new Error("depth u16 te kort: " + buf.byteLength + " < " + need); }
47 return new Uint16Array(buf.slice(0, need));
48 });
49 },
50
51 /**
52 * @returns {Promise<{ppda, images, depthU16, baseUrl}>}
53 */
54 loadSet: function (baseUrl, ppdaFile)
55 {
56 var self = this;
57 baseUrl = baseUrl.replace(/\/?$/, "/");
58 return fetch(baseUrl + ppdaFile).then(function (r)
59 {
60 if (!r.ok)
61 { throw new Error("ppda fetch " + r.status); }
62 return r.text();
63 }).then(function (text)
64 {
65 var ppda = PpdaLoader.parse(text);
66 var maps = ppda.maps;
67 var jobs = [
68 self.loadImage(baseUrl + maps.diffuse.file),
69 maps.normal ? self.loadImage(baseUrl + maps.normal.file) : Promise.resolve(null),
70 maps.specular ? self.loadImage(baseUrl + maps.specular.file) : Promise.resolve(null)
71 ];
72 var depthFile = maps.depth.file;
73 var dw = maps.depth.width || maps.diffuse.width;
74 var dh = maps.depth.height || maps.diffuse.height;
75 if (maps.depth.storage === "u16le_ga" || /\.u16$/i.test(depthFile))
76 { jobs.push(self.loadU16Depth(baseUrl + depthFile, dw, dh)); }
77 else
78 { throw new Error("browser-loader verwacht depth als .u16 (storage=u16le_ga); got " + depthFile); }
79
80 return Promise.all(jobs).then(function (parts)
81 {
82 return {
83 ppda: ppda,
84 baseUrl: baseUrl,
85 diffuseImg: parts[0],
86 normalImg: parts[1],
87 specularImg: parts[2],
88 depthU16: parts[3],
89 depthW: dw,
90 depthH: dh
91 };
92 });
93 });
94 },
95
96 extractRgbaCell: function (img, view)
97 {
98 var ctx = this._ensureCanvas();
99 if (!ctx)
100 { throw new Error("geen canvas voor cell extract"); }
101 this._canvas.width = view.w;
102 this._canvas.height = view.h;
103 ctx.clearRect(0, 0, view.w, view.h);
104 ctx.drawImage(img, view.x, view.y, view.w, view.h, 0, 0, view.w, view.h);
105 return ctx.getImageData(0, 0, view.w, view.h).data;
106 },
107
108 extractDepthCell: function (depthU16, atlasW, view)
109 {
110 var n = view.w * view.h;
111 var gray = new Uint16Array(n);
112 var alpha = new Uint16Array(n);
113 for (var y = 0; y < view.h; y++)
114 {
115 for (var x = 0; x < view.w; x++)
116 {
117 var si = ((view.y + y) * atlasW + (view.x + x)) * 2;
118 var di = y * view.w + x;
119 gray[di] = depthU16[si];
120 alpha[di] = depthU16[si + 1];
121 }
122 }
123 return { depthGray: gray, depthAlpha: alpha };
124 },
125
126 layerFromSet: function (set, clipToken, frameIndex, pitch, yaw)
127 {
128 var clip = PpdaViewFrame.findClip(set.ppda, clipToken);
129 if (!clip)
130 { throw new Error("clip niet gevonden: " + clipToken); }
131 var frame = clip.frames[frameIndex];
132 if (!frame)
133 { throw new Error("frame " + frameIndex + " ontbreekt"); }
134 var view = PpdaViewFrame.findView(frame, pitch, yaw);
135 if (!view)
136 { throw new Error("view p" + pitch + " y" + yaw + " ontbreekt"); }
137 if (view.empty)
138 {
139 var emptyN = view.w * view.h;
140 return {
141 width: view.w,
142 height: view.h,
143 diffuse: new Uint8ClampedArray(emptyN * 4),
144 normal: new Uint8ClampedArray(emptyN * 4),
145 specular: new Uint8ClampedArray(emptyN * 4),
146 depthGray: new Uint16Array(emptyN),
147 depthAlpha: new Uint16Array(emptyN),
148 view: view
149 };
150 }
151 var diffuse = this.extractRgbaCell(set.diffuseImg, view);
152 var normal = set.normalImg ? this.extractRgbaCell(set.normalImg, view) : null;
153 var specular = set.specularImg ? this.extractRgbaCell(set.specularImg, view) : null;
154 var depth = this.extractDepthCell(set.depthU16, set.depthW, view);
155 return {
156 width: view.w,
157 height: view.h,
158 diffuse: diffuse,
159 normal: normal,
160 specular: specular,
161 depthGray: depth.depthGray,
162 depthAlpha: depth.depthAlpha,
163 view: view
164 };
165 },
166
167 composeView: function (bodySet, gearSet, clipToken, frameIndex, pitch, yaw)
168 {
169 var body = this.layerFromSet(bodySet, clipToken, frameIndex, pitch, yaw);
170 var layers = [body];
171 if (gearSet)
172 {
173 PpdaLoader.assertCompatible(bodySet.ppda, gearSet.ppda);
174 layers.push(this.layerFromSet(gearSet, clipToken, frameIndex, pitch, yaw));
175 }
176 var composed = PpdaCompositor.compose(layers);
177 composed.view = body.view;
178 composed.lit = PpdaCompositor.relightDiffuse(composed, 1);
179 return composed;
180 }
181 };
182
183 if (typeof module !== "undefined" && module.exports)
184 { module.exports = PpdaAtlasRuntime; }
@@ -0,0 +1,184 @@
1/**
2 * Browser/runtime atlas set: loads PNG diffuse/normal/specular + u16 depth,
3 * extracts cells, composes body+gear on CPU (cell is 32×48 — cheap).
4 */
5var PpdaAtlasRuntime =
6{
7 _canvas: null,
8 _ctx: null,
9
10 _ensureCanvas: function ()
11 {
12 if (typeof document === "undefined")
13 { return null; }
14 if (!this._canvas)
15 {
16 this._canvas = document.createElement("canvas");
17 this._ctx = this._canvas.getContext("2d", { willReadFrequently: true });
18 }
19 return this._ctx;
20 },
21
22 loadImage: function (url)
23 {
24 return new Promise(function (resolve, reject)
25 {
26 var img = new Image();
27 img.onload = function ()
28 { resolve(img); };
29 img.onerror = function ()
30 { reject(new Error("image load failed: " + url)); };
31 img.src = url;
32 });
33 },
34
35 loadU16Depth: function (url, expectW, expectH)
36 {
37 return fetch(url).then(function (r)
38 {
39 if (!r.ok)
40 { throw new Error("depth fetch " + r.status + " " + url); }
41 return r.arrayBuffer();
42 }).then(function (buf)
43 {
44 var need = expectW * expectH * 4;
45 if (buf.byteLength < need)
46 { throw new Error("depth u16 te kort: " + buf.byteLength + " < " + need); }
47 return new Uint16Array(buf.slice(0, need));
48 });
49 },
50
51 /**
52 * @returns {Promise<{ppda, images, depthU16, baseUrl}>}
53 */
54 loadSet: function (baseUrl, ppdaFile)
55 {
56 var self = this;
57 baseUrl = baseUrl.replace(/\/?$/, "/");
58 return fetch(baseUrl + ppdaFile).then(function (r)
59 {
60 if (!r.ok)
61 { throw new Error("ppda fetch " + r.status); }
62 return r.text();
63 }).then(function (text)
64 {
65 var ppda = PpdaLoader.parse(text);
66 var maps = ppda.maps;
67 var jobs = [
68 self.loadImage(baseUrl + maps.diffuse.file),
69 maps.normal ? self.loadImage(baseUrl + maps.normal.file) : Promise.resolve(null),
70 maps.specular ? self.loadImage(baseUrl + maps.specular.file) : Promise.resolve(null)
71 ];
72 var depthFile = maps.depth.file;
73 var dw = maps.depth.width || maps.diffuse.width;
74 var dh = maps.depth.height || maps.diffuse.height;
75 if (maps.depth.storage === "u16le_ga" || /\.u16$/i.test(depthFile))
76 { jobs.push(self.loadU16Depth(baseUrl + depthFile, dw, dh)); }
77 else
78 { throw new Error("browser-loader verwacht depth als .u16 (storage=u16le_ga); got " + depthFile); }
79
80 return Promise.all(jobs).then(function (parts)
81 {
82 return {
83 ppda: ppda,
84 baseUrl: baseUrl,
85 diffuseImg: parts[0],
86 normalImg: parts[1],
87 specularImg: parts[2],
88 depthU16: parts[3],
89 depthW: dw,
90 depthH: dh
91 };
92 });
93 });
94 },
95
96 extractRgbaCell: function (img, view)
97 {
98 var ctx = this._ensureCanvas();
99 if (!ctx)
100 { throw new Error("geen canvas voor cell extract"); }
101 this._canvas.width = view.w;
102 this._canvas.height = view.h;
103 ctx.clearRect(0, 0, view.w, view.h);
104 ctx.drawImage(img, view.x, view.y, view.w, view.h, 0, 0, view.w, view.h);
105 return ctx.getImageData(0, 0, view.w, view.h).data;
106 },
107
108 extractDepthCell: function (depthU16, atlasW, view)
109 {
110 var n = view.w * view.h;
111 var gray = new Uint16Array(n);
112 var alpha = new Uint16Array(n);
113 for (var y = 0; y < view.h; y++)
114 {
115 for (var x = 0; x < view.w; x++)
116 {
117 var si = ((view.y + y) * atlasW + (view.x + x)) * 2;
118 var di = y * view.w + x;
119 gray[di] = depthU16[si];
120 alpha[di] = depthU16[si + 1];
121 }
122 }
123 return { depthGray: gray, depthAlpha: alpha };
124 },
125
126 layerFromSet: function (set, clipToken, frameIndex, pitch, yaw)
127 {
128 var clip = PpdaViewFrame.findClip(set.ppda, clipToken);
129 if (!clip)
130 { throw new Error("clip niet gevonden: " + clipToken); }
131 var frame = clip.frames[frameIndex];
132 if (!frame)
133 { throw new Error("frame " + frameIndex + " ontbreekt"); }
134 var view = PpdaViewFrame.findView(frame, pitch, yaw);
135 if (!view)
136 { throw new Error("view p" + pitch + " y" + yaw + " ontbreekt"); }
137 if (view.empty)
138 {
139 var emptyN = view.w * view.h;
140 return {
141 width: view.w,
142 height: view.h,
143 diffuse: new Uint8ClampedArray(emptyN * 4),
144 normal: new Uint8ClampedArray(emptyN * 4),
145 specular: new Uint8ClampedArray(emptyN * 4),
146 depthGray: new Uint16Array(emptyN),
147 depthAlpha: new Uint16Array(emptyN),
148 view: view
149 };
150 }
151 var diffuse = this.extractRgbaCell(set.diffuseImg, view);
152 var normal = set.normalImg ? this.extractRgbaCell(set.normalImg, view) : null;
153 var specular = set.specularImg ? this.extractRgbaCell(set.specularImg, view) : null;
154 var depth = this.extractDepthCell(set.depthU16, set.depthW, view);
155 return {
156 width: view.w,
157 height: view.h,
158 diffuse: diffuse,
159 normal: normal,
160 specular: specular,
161 depthGray: depth.depthGray,
162 depthAlpha: depth.depthAlpha,
163 view: view
164 };
165 },
166
167 composeView: function (bodySet, gearSet, clipToken, frameIndex, pitch, yaw)
168 {
169 var body = this.layerFromSet(bodySet, clipToken, frameIndex, pitch, yaw);
170 var layers = [body];
171 if (gearSet)
172 {
173 PpdaLoader.assertCompatible(bodySet.ppda, gearSet.ppda);
174 layers.push(this.layerFromSet(gearSet, clipToken, frameIndex, pitch, yaw));
175 }
176 var composed = PpdaCompositor.compose(layers);
177 composed.view = body.view;
178 composed.lit = PpdaCompositor.relightDiffuse(composed, 1);
179 return composed;
180 }
181};
182
183if (typeof module !== "undefined" && module.exports)
184{ module.exports = PpdaAtlasRuntime; }
src/ppda/compositor.js added +135 −0
@@ -0,0 +1,135 @@
1 /**
2 * Live body+equipment compositor — port of compositor.rs compose().
3 * Per pixel: nearest valid depth wins; ties keep lower layer index (body first).
4 * Valid = depth alpha ≠ 0 AND diffuse alpha ≠ 0.
5 */
6 var PpdaCompositor =
7 {
8 DEPTH_EPSILON_U16: 1,
9
10 /**
11 * @param {Array<{width,height,diffuse:Uint8ClampedArray|Uint8Array,depthGray:Uint16Array,depthAlpha:Uint16Array,normal?:Uint8Array,specular?:Uint8Array}>} layers
12 */
13 compose: function (layers)
14 {
15 if (!layers || !layers.length)
16 { throw new Error("geen lagen om te composeren"); }
17 var width = layers[0].width;
18 var height = layers[0].height;
19 var pixels = width * height;
20 if (!pixels)
21 { throw new Error("lege afmetingen"); }
22 for (var li = 0; li < layers.length; li++)
23 {
24 var L = layers[li];
25 if (L.width !== width || L.height !== height)
26 { throw new Error("laag " + li + " heeft andere afmetingen"); }
27 if (L.diffuse.length !== pixels * 4 || L.depthGray.length !== pixels || L.depthAlpha.length !== pixels)
28 { throw new Error("laag " + li + " inconsistente buffers"); }
29 }
30
31 var diffuse = new Uint8ClampedArray(pixels * 4);
32 var normal = new Uint8ClampedArray(pixels * 4);
33 var specular = new Uint8ClampedArray(pixels * 4);
34 var depthGray = new Uint16Array(pixels);
35 var depthAlpha = new Uint16Array(pixels);
36 var winner = new Uint8Array(pixels);
37 for (var i = 0; i < pixels; i++)
38 { winner[i] = 255; }
39
40 var eps = this.DEPTH_EPSILON_U16;
41 for (var i = 0; i < pixels; i++)
42 {
43 var bestDepth = null;
44 var bestLayer = null;
45 for (var layerIdx = 0; layerIdx < layers.length; layerIdx++)
46 {
47 var layer = layers[layerIdx];
48 if (layer.depthAlpha[i] === 0 || layer.diffuse[i * 4 + 3] === 0)
49 { continue; }
50 var gray = layer.depthGray[i];
51 if (bestDepth == null)
52 {
53 bestDepth = gray;
54 bestLayer = layerIdx;
55 }
56 else if (gray + eps < bestDepth)
57 {
58 bestDepth = gray;
59 bestLayer = layerIdx;
60 }
61 else if (gray <= bestDepth + eps)
62 {
63 /* tie: keep lower index */
64 }
65 }
66 if (bestLayer != null)
67 {
68 var src = layers[bestLayer];
69 var o = i * 4;
70 diffuse[o] = src.diffuse[o];
71 diffuse[o + 1] = src.diffuse[o + 1];
72 diffuse[o + 2] = src.diffuse[o + 2];
73 diffuse[o + 3] = src.diffuse[o + 3];
74 if (src.normal)
75 {
76 normal[o] = src.normal[o];
77 normal[o + 1] = src.normal[o + 1];
78 normal[o + 2] = src.normal[o + 2];
79 normal[o + 3] = src.normal[o + 3];
80 }
81 if (src.specular)
82 {
83 specular[o] = src.specular[o];
84 specular[o + 1] = src.specular[o + 1];
85 specular[o + 2] = src.specular[o + 2];
86 specular[o + 3] = src.specular[o + 3];
87 }
88 depthGray[i] = src.depthGray[i];
89 depthAlpha[i] = src.depthAlpha[i];
90 winner[i] = bestLayer;
91 }
92 }
93
94 return {
95 width: width,
96 height: height,
97 diffuse: diffuse,
98 normal: normal,
99 specular: specular,
100 depthGray: depthGray,
101 depthAlpha: depthAlpha,
102 winner: winner
103 };
104 },
105
106 /** Simple ambient+Lambert approx for preview (Preview2d-achtig, licht). */
107 relightDiffuse: function (composed, lightAmt)
108 {
109 lightAmt = lightAmt == null ? 1 : lightAmt;
110 var out = new Uint8ClampedArray(composed.diffuse.length);
111 for (var i = 0; i < composed.diffuse.length; i += 4)
112 {
113 var a = composed.diffuse[i + 3];
114 if (a === 0)
115 { continue; }
116 var ndot = 0.75;
117 if (composed.normal && composed.normal[i + 3])
118 {
119 var nx = composed.normal[i] / 255 * 2 - 1;
120 var ny = composed.normal[i + 1] / 255 * 2 - 1;
121 var nz = composed.normal[i + 2] / 255 * 2 - 1;
122 ndot = Math.max(0, nx * 0.3 + ny * 0.2 + nz * 0.9);
123 }
124 var shade = Math.min(1, 0.35 + 0.65 * ndot) * lightAmt;
125 out[i] = Math.min(255, Math.round(composed.diffuse[i] * shade));
126 out[i + 1] = Math.min(255, Math.round(composed.diffuse[i + 1] * shade));
127 out[i + 2] = Math.min(255, Math.round(composed.diffuse[i + 2] * shade));
128 out[i + 3] = a;
129 }
130 return out;
131 }
132 };
133
134 if (typeof module !== "undefined" && module.exports)
135 { module.exports = PpdaCompositor; }
@@ -0,0 +1,135 @@
1/**
2 * Live body+equipment compositor — port of compositor.rs compose().
3 * Per pixel: nearest valid depth wins; ties keep lower layer index (body first).
4 * Valid = depth alpha ≠ 0 AND diffuse alpha ≠ 0.
5 */
6var PpdaCompositor =
7{
8 DEPTH_EPSILON_U16: 1,
9
10 /**
11 * @param {Array<{width,height,diffuse:Uint8ClampedArray|Uint8Array,depthGray:Uint16Array,depthAlpha:Uint16Array,normal?:Uint8Array,specular?:Uint8Array}>} layers
12 */
13 compose: function (layers)
14 {
15 if (!layers || !layers.length)
16 { throw new Error("geen lagen om te composeren"); }
17 var width = layers[0].width;
18 var height = layers[0].height;
19 var pixels = width * height;
20 if (!pixels)
21 { throw new Error("lege afmetingen"); }
22 for (var li = 0; li < layers.length; li++)
23 {
24 var L = layers[li];
25 if (L.width !== width || L.height !== height)
26 { throw new Error("laag " + li + " heeft andere afmetingen"); }
27 if (L.diffuse.length !== pixels * 4 || L.depthGray.length !== pixels || L.depthAlpha.length !== pixels)
28 { throw new Error("laag " + li + " inconsistente buffers"); }
29 }
30
31 var diffuse = new Uint8ClampedArray(pixels * 4);
32 var normal = new Uint8ClampedArray(pixels * 4);
33 var specular = new Uint8ClampedArray(pixels * 4);
34 var depthGray = new Uint16Array(pixels);
35 var depthAlpha = new Uint16Array(pixels);
36 var winner = new Uint8Array(pixels);
37 for (var i = 0; i < pixels; i++)
38 { winner[i] = 255; }
39
40 var eps = this.DEPTH_EPSILON_U16;
41 for (var i = 0; i < pixels; i++)
42 {
43 var bestDepth = null;
44 var bestLayer = null;
45 for (var layerIdx = 0; layerIdx < layers.length; layerIdx++)
46 {
47 var layer = layers[layerIdx];
48 if (layer.depthAlpha[i] === 0 || layer.diffuse[i * 4 + 3] === 0)
49 { continue; }
50 var gray = layer.depthGray[i];
51 if (bestDepth == null)
52 {
53 bestDepth = gray;
54 bestLayer = layerIdx;
55 }
56 else if (gray + eps < bestDepth)
57 {
58 bestDepth = gray;
59 bestLayer = layerIdx;
60 }
61 else if (gray <= bestDepth + eps)
62 {
63 /* tie: keep lower index */
64 }
65 }
66 if (bestLayer != null)
67 {
68 var src = layers[bestLayer];
69 var o = i * 4;
70 diffuse[o] = src.diffuse[o];
71 diffuse[o + 1] = src.diffuse[o + 1];
72 diffuse[o + 2] = src.diffuse[o + 2];
73 diffuse[o + 3] = src.diffuse[o + 3];
74 if (src.normal)
75 {
76 normal[o] = src.normal[o];
77 normal[o + 1] = src.normal[o + 1];
78 normal[o + 2] = src.normal[o + 2];
79 normal[o + 3] = src.normal[o + 3];
80 }
81 if (src.specular)
82 {
83 specular[o] = src.specular[o];
84 specular[o + 1] = src.specular[o + 1];
85 specular[o + 2] = src.specular[o + 2];
86 specular[o + 3] = src.specular[o + 3];
87 }
88 depthGray[i] = src.depthGray[i];
89 depthAlpha[i] = src.depthAlpha[i];
90 winner[i] = bestLayer;
91 }
92 }
93
94 return {
95 width: width,
96 height: height,
97 diffuse: diffuse,
98 normal: normal,
99 specular: specular,
100 depthGray: depthGray,
101 depthAlpha: depthAlpha,
102 winner: winner
103 };
104 },
105
106 /** Simple ambient+Lambert approx for preview (Preview2d-achtig, licht). */
107 relightDiffuse: function (composed, lightAmt)
108 {
109 lightAmt = lightAmt == null ? 1 : lightAmt;
110 var out = new Uint8ClampedArray(composed.diffuse.length);
111 for (var i = 0; i < composed.diffuse.length; i += 4)
112 {
113 var a = composed.diffuse[i + 3];
114 if (a === 0)
115 { continue; }
116 var ndot = 0.75;
117 if (composed.normal && composed.normal[i + 3])
118 {
119 var nx = composed.normal[i] / 255 * 2 - 1;
120 var ny = composed.normal[i + 1] / 255 * 2 - 1;
121 var nz = composed.normal[i + 2] / 255 * 2 - 1;
122 ndot = Math.max(0, nx * 0.3 + ny * 0.2 + nz * 0.9);
123 }
124 var shade = Math.min(1, 0.35 + 0.65 * ndot) * lightAmt;
125 out[i] = Math.min(255, Math.round(composed.diffuse[i] * shade));
126 out[i + 1] = Math.min(255, Math.round(composed.diffuse[i + 1] * shade));
127 out[i + 2] = Math.min(255, Math.round(composed.diffuse[i + 2] * shade));
128 out[i + 3] = a;
129 }
130 return out;
131 }
132};
133
134if (typeof module !== "undefined" && module.exports)
135{ module.exports = PpdaCompositor; }
src/ppda/depthDecode.js added +99 −0
@@ -0,0 +1,99 @@
1 /**
2 * Depth encodings matching Paperdoll Renderer camera::DepthFormat.
3 * Canonical compositor sample is u16 gray + u16 alpha (0..65535).
4 */
5 var DepthDecode =
6 {
7 EPSILON_U16: 1,
8
9 parseFormat: function (encoding, bits)
10 {
11 var enc = encoding || "gray";
12 var b = bits == null ? 16 : Number(bits);
13 if (b !== 8 && b !== 16)
14 { throw new Error("depth_bits moet 8 of 16 zijn, kreeg " + bits); }
15 if (enc !== "gray" && enc !== "rgb_bands" && enc !== "rgb_packed")
16 { throw new Error("depth_encoding onbekend: " + enc); }
17 return { encoding: enc, bits: b };
18 },
19
20 max: function (fmt)
21 { return (1 << fmt.bits) - 1; },
22
23 levels: function (fmt)
24 {
25 var m = this.max(fmt);
26 if (fmt.encoding === "gray")
27 { return m; }
28 if (fmt.encoding === "rgb_bands")
29 { return 3 * m; }
30 return Math.pow(2, 3 * fmt.bits) - 1;
31 },
32
33 decodeValue: function (fmt, c0, c1, c2)
34 {
35 var m = this.max(fmt);
36 var b = m + 1;
37 var v;
38 if (fmt.encoding === "gray")
39 { v = c0; }
40 else if (fmt.encoding === "rgb_bands")
41 { v = c0 + c1 + c2; }
42 else
43 { v = c0 * b * b + c1 * b + c2; }
44 return v / this.levels(fmt);
45 },
46
47 encodeValue: function (fmt, t)
48 {
49 t = Math.max(0, Math.min(1, Number(t) || 0));
50 var m = this.max(fmt);
51 var v = Math.round(t * this.levels(fmt));
52 if (fmt.encoding === "gray")
53 { return [v, 0, 0]; }
54 if (fmt.encoding === "rgb_bands")
55 {
56 return [
57 Math.min(v, m),
58 Math.min(Math.max(v - m, 0), m),
59 Math.min(Math.max(v - 2 * m, 0), m)
60 ];
61 }
62 var b = m + 1;
63 return [Math.floor(v / (b * b)), Math.floor(v / b) % b, v % b];
64 },
65
66 /**
67 * Decode one pixel channel tuple to canonical u16 (gray, alpha).
68 * channels: [c0,c1,c2,a] in native bit depth units.
69 */
70 decodePixelChannels: function (fmt, channels)
71 {
72 var c0 = channels[0] || 0;
73 var c1 = channels[1] || 0;
74 var c2 = channels[2] || 0;
75 var a = channels[3] != null ? channels[3] : this.max(fmt);
76 if (fmt.encoding === "rgb_bands")
77 {
78 var m = this.max(fmt);
79 if ((c1 > 0 && c0 !== m) || (c2 > 0 && c1 !== m))
80 { throw new Error("depth rgb_bands: ongeldige bandvolgorde"); }
81 }
82 var t = this.decodeValue(fmt, c0, c1, c2);
83 var scale = 65535 / this.max(fmt);
84 return {
85 gray: Math.round(t * 65535),
86 alpha: Math.round(a * scale)
87 };
88 },
89
90 /** Meters from camera using near/far and normalized t (0..1 from gray/65535). */
91 distanceMeters: function (grayU16, near, far)
92 {
93 var t = (grayU16 & 0xffff) / 65535;
94 return near + t * (far - near);
95 }
96 };
97
98 if (typeof module !== "undefined" && module.exports)
99 { module.exports = DepthDecode; }
@@ -0,0 +1,99 @@
1/**
2 * Depth encodings matching Paperdoll Renderer camera::DepthFormat.
3 * Canonical compositor sample is u16 gray + u16 alpha (0..65535).
4 */
5var DepthDecode =
6{
7 EPSILON_U16: 1,
8
9 parseFormat: function (encoding, bits)
10 {
11 var enc = encoding || "gray";
12 var b = bits == null ? 16 : Number(bits);
13 if (b !== 8 && b !== 16)
14 { throw new Error("depth_bits moet 8 of 16 zijn, kreeg " + bits); }
15 if (enc !== "gray" && enc !== "rgb_bands" && enc !== "rgb_packed")
16 { throw new Error("depth_encoding onbekend: " + enc); }
17 return { encoding: enc, bits: b };
18 },
19
20 max: function (fmt)
21 { return (1 << fmt.bits) - 1; },
22
23 levels: function (fmt)
24 {
25 var m = this.max(fmt);
26 if (fmt.encoding === "gray")
27 { return m; }
28 if (fmt.encoding === "rgb_bands")
29 { return 3 * m; }
30 return Math.pow(2, 3 * fmt.bits) - 1;
31 },
32
33 decodeValue: function (fmt, c0, c1, c2)
34 {
35 var m = this.max(fmt);
36 var b = m + 1;
37 var v;
38 if (fmt.encoding === "gray")
39 { v = c0; }
40 else if (fmt.encoding === "rgb_bands")
41 { v = c0 + c1 + c2; }
42 else
43 { v = c0 * b * b + c1 * b + c2; }
44 return v / this.levels(fmt);
45 },
46
47 encodeValue: function (fmt, t)
48 {
49 t = Math.max(0, Math.min(1, Number(t) || 0));
50 var m = this.max(fmt);
51 var v = Math.round(t * this.levels(fmt));
52 if (fmt.encoding === "gray")
53 { return [v, 0, 0]; }
54 if (fmt.encoding === "rgb_bands")
55 {
56 return [
57 Math.min(v, m),
58 Math.min(Math.max(v - m, 0), m),
59 Math.min(Math.max(v - 2 * m, 0), m)
60 ];
61 }
62 var b = m + 1;
63 return [Math.floor(v / (b * b)), Math.floor(v / b) % b, v % b];
64 },
65
66 /**
67 * Decode one pixel channel tuple to canonical u16 (gray, alpha).
68 * channels: [c0,c1,c2,a] in native bit depth units.
69 */
70 decodePixelChannels: function (fmt, channels)
71 {
72 var c0 = channels[0] || 0;
73 var c1 = channels[1] || 0;
74 var c2 = channels[2] || 0;
75 var a = channels[3] != null ? channels[3] : this.max(fmt);
76 if (fmt.encoding === "rgb_bands")
77 {
78 var m = this.max(fmt);
79 if ((c1 > 0 && c0 !== m) || (c2 > 0 && c1 !== m))
80 { throw new Error("depth rgb_bands: ongeldige bandvolgorde"); }
81 }
82 var t = this.decodeValue(fmt, c0, c1, c2);
83 var scale = 65535 / this.max(fmt);
84 return {
85 gray: Math.round(t * 65535),
86 alpha: Math.round(a * scale)
87 };
88 },
89
90 /** Meters from camera using near/far and normalized t (0..1 from gray/65535). */
91 distanceMeters: function (grayU16, near, far)
92 {
93 var t = (grayU16 & 0xffff) / 65535;
94 return near + t * (far - near);
95 }
96};
97
98if (typeof module !== "undefined" && module.exports)
99{ module.exports = DepthDecode; }
src/ppda/loadPpda.js added +144 −0
@@ -0,0 +1,144 @@
1 /**
2 * Strict-enough .ppda loader for formats 1–5 (Paperdoll AtlasSet consumer).
3 */
4 var PpdaLoader =
5 {
6 SUPPORTED_FORMATS: [1, 2, 3, 4, 5],
7
8 parse: function (jsonText, options)
9 {
10 options = options || {};
11 var doc;
12 try
13 { doc = typeof jsonText === "string" ? JSON.parse(jsonText) : jsonText; }
14 catch (e)
15 { throw new Error("ppda: ongeldige JSON (" + e.message + ")"); }
16
17 if (!doc || typeof doc !== "object")
18 { throw new Error("ppda: root moet een object zijn"); }
19
20 var ver = doc.format_version;
21 if (this.SUPPORTED_FORMATS.indexOf(ver) < 0)
22 { throw new Error("ppda: format_version " + ver + " niet ondersteund (wel: " + this.SUPPORTED_FORMATS.join(",") + ")"); }
23
24 if (!doc.sex || !doc.settype)
25 { throw new Error("ppda: sex/settype verplicht"); }
26 if (!doc.fps || doc.fps < 1)
27 { throw new Error("ppda: fps ongeldig"); }
28 if (!doc.cell_width || !doc.cell_height)
29 { throw new Error("ppda: cell_width/height verplicht"); }
30 if (!Array.isArray(doc.pitches) || !Array.isArray(doc.yaws) || !doc.pitches.length || !doc.yaws.length)
31 { throw new Error("ppda: pitches/yaws verplicht"); }
32 if (!doc.maps || typeof doc.maps !== "object")
33 { throw new Error("ppda: maps verplicht"); }
34 ["diffuse", "depth"].forEach(function (k)
35 {
36 if (!doc.maps[k] || !doc.maps[k].file)
37 { throw new Error("ppda: maps." + k + ".file verplicht"); }
38 if (String(doc.maps[k].file).indexOf("..") >= 0 || String(doc.maps[k].file).indexOf("/") >= 0 || String(doc.maps[k].file).indexOf("\\") >= 0)
39 { throw new Error("ppda: maps." + k + ".file mag geen pad bevatten"); }
40 });
41 if (!Array.isArray(doc.clips) || !doc.clips.length)
42 { throw new Error("ppda: clips verplicht"); }
43
44 for (var ci = 0; ci < doc.clips.length; ci++)
45 {
46 var clip = doc.clips[ci];
47 if (!clip.frames || clip.frames.length !== clip.frame_count)
48 { throw new Error("ppda: clip '" + (clip.name || ci) + "' frames≠frame_count"); }
49 for (var fi = 0; fi < clip.frames.length; fi++)
50 {
51 var fr = clip.frames[fi];
52 if (!fr.views || !fr.views.length)
53 { throw new Error("ppda: frame zonder views"); }
54 for (var vi = 0; vi < fr.views.length; vi++)
55 {
56 var v = fr.views[vi];
57 if (v.w == null || v.h == null || v.x == null || v.y == null)
58 { throw new Error("ppda: view mist x/y/w/h"); }
59 }
60 }
61 }
62
63 var encoding = doc.depth_encoding;
64 var bits = doc.depth_bits;
65 if (!encoding)
66 {
67 // v1 / legacy long text in identity.depth → gray16
68 encoding = "gray";
69 bits = bits || 16;
70 }
71 else if (/gray/i.test(encoding) && encoding.indexOf("rgb_") < 0)
72 {
73 encoding = "gray";
74 }
75 else if (encoding.indexOf("rgb_bands") >= 0)
76 { encoding = "rgb_bands"; }
77 else if (encoding.indexOf("rgb_packed") >= 0)
78 { encoding = "rgb_packed"; }
79
80 var near = doc.depth_near != null ? doc.depth_near : (doc.identity && doc.identity.near);
81 var far = doc.depth_far != null ? doc.depth_far : (doc.identity && doc.identity.far);
82 if (near == null || far == null)
83 { throw new Error("ppda: depth_near/far of identity.near/far verplicht"); }
84
85 var fmt = DepthDecode.parseFormat(encoding, bits || 16);
86
87 return {
88 format_version: ver,
89 sex: doc.sex,
90 settype: doc.settype,
91 fps: doc.fps,
92 cell_width: doc.cell_width,
93 cell_height: doc.cell_height,
94 pitches: doc.pitches.slice(),
95 yaws: doc.yaws.slice(),
96 maps: doc.maps,
97 clips: doc.clips,
98 identity: doc.identity || null,
99 project: doc.project || null,
100 depth_near: Number(near),
101 depth_far: Number(far),
102 depth_format: fmt,
103 camera_distance: doc.identity && doc.identity.camera_distance != null
104 ? Number(doc.identity.camera_distance)
105 : 10,
106 height_milli: doc.identity && doc.identity.framing
107 ? doc.identity.framing.height_milli
108 : 2600,
109 raw: doc
110 };
111 },
112
113 compatKey: function (ppda)
114 {
115 var id = ppda.identity || {};
116 return {
117 sex: ppda.sex,
118 body_model_sha256: id.body_model_sha256 || "",
119 fps: ppda.fps,
120 cell_width: ppda.cell_width,
121 cell_height: ppda.cell_height,
122 pitches: ppda.pitches.join(","),
123 yaws: ppda.yaws.join(","),
124 near: ppda.depth_near,
125 far: ppda.depth_far
126 };
127 },
128
129 assertCompatible: function (a, b)
130 {
131 var ka = this.compatKey(a);
132 var kb = this.compatKey(b);
133 var keys = Object.keys(ka);
134 for (var i = 0; i < keys.length; i++)
135 {
136 var k = keys[i];
137 if (String(ka[k]) !== String(kb[k]))
138 { throw new Error("ppda incompatible: " + k + " (" + ka[k] + " vs " + kb[k] + ")"); }
139 }
140 }
141 };
142
143 if (typeof module !== "undefined" && module.exports)
144 { module.exports = PpdaLoader; }
@@ -0,0 +1,144 @@
1/**
2 * Strict-enough .ppda loader for formats 1–5 (Paperdoll AtlasSet consumer).
3 */
4var PpdaLoader =
5{
6 SUPPORTED_FORMATS: [1, 2, 3, 4, 5],
7
8 parse: function (jsonText, options)
9 {
10 options = options || {};
11 var doc;
12 try
13 { doc = typeof jsonText === "string" ? JSON.parse(jsonText) : jsonText; }
14 catch (e)
15 { throw new Error("ppda: ongeldige JSON (" + e.message + ")"); }
16
17 if (!doc || typeof doc !== "object")
18 { throw new Error("ppda: root moet een object zijn"); }
19
20 var ver = doc.format_version;
21 if (this.SUPPORTED_FORMATS.indexOf(ver) < 0)
22 { throw new Error("ppda: format_version " + ver + " niet ondersteund (wel: " + this.SUPPORTED_FORMATS.join(",") + ")"); }
23
24 if (!doc.sex || !doc.settype)
25 { throw new Error("ppda: sex/settype verplicht"); }
26 if (!doc.fps || doc.fps < 1)
27 { throw new Error("ppda: fps ongeldig"); }
28 if (!doc.cell_width || !doc.cell_height)
29 { throw new Error("ppda: cell_width/height verplicht"); }
30 if (!Array.isArray(doc.pitches) || !Array.isArray(doc.yaws) || !doc.pitches.length || !doc.yaws.length)
31 { throw new Error("ppda: pitches/yaws verplicht"); }
32 if (!doc.maps || typeof doc.maps !== "object")
33 { throw new Error("ppda: maps verplicht"); }
34 ["diffuse", "depth"].forEach(function (k)
35 {
36 if (!doc.maps[k] || !doc.maps[k].file)
37 { throw new Error("ppda: maps." + k + ".file verplicht"); }
38 if (String(doc.maps[k].file).indexOf("..") >= 0 || String(doc.maps[k].file).indexOf("/") >= 0 || String(doc.maps[k].file).indexOf("\\") >= 0)
39 { throw new Error("ppda: maps." + k + ".file mag geen pad bevatten"); }
40 });
41 if (!Array.isArray(doc.clips) || !doc.clips.length)
42 { throw new Error("ppda: clips verplicht"); }
43
44 for (var ci = 0; ci < doc.clips.length; ci++)
45 {
46 var clip = doc.clips[ci];
47 if (!clip.frames || clip.frames.length !== clip.frame_count)
48 { throw new Error("ppda: clip '" + (clip.name || ci) + "' frames≠frame_count"); }
49 for (var fi = 0; fi < clip.frames.length; fi++)
50 {
51 var fr = clip.frames[fi];
52 if (!fr.views || !fr.views.length)
53 { throw new Error("ppda: frame zonder views"); }
54 for (var vi = 0; vi < fr.views.length; vi++)
55 {
56 var v = fr.views[vi];
57 if (v.w == null || v.h == null || v.x == null || v.y == null)
58 { throw new Error("ppda: view mist x/y/w/h"); }
59 }
60 }
61 }
62
63 var encoding = doc.depth_encoding;
64 var bits = doc.depth_bits;
65 if (!encoding)
66 {
67 // v1 / legacy long text in identity.depth → gray16
68 encoding = "gray";
69 bits = bits || 16;
70 }
71 else if (/gray/i.test(encoding) && encoding.indexOf("rgb_") < 0)
72 {
73 encoding = "gray";
74 }
75 else if (encoding.indexOf("rgb_bands") >= 0)
76 { encoding = "rgb_bands"; }
77 else if (encoding.indexOf("rgb_packed") >= 0)
78 { encoding = "rgb_packed"; }
79
80 var near = doc.depth_near != null ? doc.depth_near : (doc.identity && doc.identity.near);
81 var far = doc.depth_far != null ? doc.depth_far : (doc.identity && doc.identity.far);
82 if (near == null || far == null)
83 { throw new Error("ppda: depth_near/far of identity.near/far verplicht"); }
84
85 var fmt = DepthDecode.parseFormat(encoding, bits || 16);
86
87 return {
88 format_version: ver,
89 sex: doc.sex,
90 settype: doc.settype,
91 fps: doc.fps,
92 cell_width: doc.cell_width,
93 cell_height: doc.cell_height,
94 pitches: doc.pitches.slice(),
95 yaws: doc.yaws.slice(),
96 maps: doc.maps,
97 clips: doc.clips,
98 identity: doc.identity || null,
99 project: doc.project || null,
100 depth_near: Number(near),
101 depth_far: Number(far),
102 depth_format: fmt,
103 camera_distance: doc.identity && doc.identity.camera_distance != null
104 ? Number(doc.identity.camera_distance)
105 : 10,
106 height_milli: doc.identity && doc.identity.framing
107 ? doc.identity.framing.height_milli
108 : 2600,
109 raw: doc
110 };
111 },
112
113 compatKey: function (ppda)
114 {
115 var id = ppda.identity || {};
116 return {
117 sex: ppda.sex,
118 body_model_sha256: id.body_model_sha256 || "",
119 fps: ppda.fps,
120 cell_width: ppda.cell_width,
121 cell_height: ppda.cell_height,
122 pitches: ppda.pitches.join(","),
123 yaws: ppda.yaws.join(","),
124 near: ppda.depth_near,
125 far: ppda.depth_far
126 };
127 },
128
129 assertCompatible: function (a, b)
130 {
131 var ka = this.compatKey(a);
132 var kb = this.compatKey(b);
133 var keys = Object.keys(ka);
134 for (var i = 0; i < keys.length; i++)
135 {
136 var k = keys[i];
137 if (String(ka[k]) !== String(kb[k]))
138 { throw new Error("ppda incompatible: " + k + " (" + ka[k] + " vs " + kb[k] + ")"); }
139 }
140 }
141};
142
143if (typeof module !== "undefined" && module.exports)
144{ module.exports = PpdaLoader; }
src/ppda/viewFrame.js added +118 −0
@@ -0,0 +1,118 @@
1 /**
2 * Choose paperdoll view (yaw/pitch) and animation frame.
3 * Yaw 0 = character front (Paperdoll/glTF convention).
4 */
5 var PpdaViewFrame =
6 {
7 /**
8 * Relative viewing yaw in degrees [0,360): direction from NPC to player,
9 * minus the NPC's facing yaw (degrees, 0 = faces +X/east in world… mapped
10 * so that when the player looks at the NPC's front, relative yaw ≈ 0).
11 *
12 * World: +X east, +Y south (legacy raycaster). NPC facingYawDeg: 0 looks
13 * toward +X. Paperdoll yaw 0 is front. We map world facing so that the
14 * camera looking opposite to facing sees front.
15 */
16 relativeYawDeg: function (playerX, playerY, npcX, npcY, npcFacingDeg)
17 {
18 var dx = playerX - npcX;
19 var dy = playerY - npcY;
20 // Angle of vector NPC→player in world degrees (0=+X, 90=+Y).
21 var toPlayer = Math.atan2(dy, dx) * 180 / Math.PI;
22 if (toPlayer < 0)
23 { toPlayer += 360; }
24 // When player stands in front of NPC, toPlayer ≈ npcFacing.
25 // Paperdoll wants yaw 0 for front → relative = toPlayer - facing.
26 var rel = toPlayer - (npcFacingDeg || 0);
27 rel = ((rel % 360) + 360) % 360;
28 return rel;
29 },
30
31 nearestInList: function (value, list, circular360)
32 {
33 if (!list || !list.length)
34 { return 0; }
35 var best = list[0];
36 var bestD = Infinity;
37 for (var i = 0; i < list.length; i++)
38 {
39 var v = list[i];
40 var d = Math.abs(value - v);
41 if (circular360)
42 { d = Math.min(d, 360 - d); }
43 if (d < bestD)
44 {
45 bestD = d;
46 best = v;
47 }
48 }
49 return best;
50 },
51
52 pickYaw: function (relativeYawDeg, yaws)
53 {
54 return this.nearestInList(((relativeYawDeg % 360) + 360) % 360, yaws || [0], true);
55 },
56
57 pickPitch: function (playerPitchRad, pitches)
58 {
59 // player pitch: 0 = horizon; positive looks down in this game.
60 // Paperdoll: positive pitch = from above. Invert sign for mapping.
61 var deg = -(playerPitchRad || 0) * 180 / Math.PI;
62 return this.nearestInList(deg, pitches || [0]);
63 },
64
65 frameIndex: function (timeSec, fps, frameCount)
66 {
67 var n = Math.max(1, frameCount | 0);
68 var f = Math.max(1, fps | 0);
69 var idx = Math.floor((timeSec || 0) * f);
70 idx %= n;
71 if (idx < 0)
72 { idx += n; }
73 return idx;
74 },
75
76 findClip: function (ppda, clipTokenOrName)
77 {
78 var clips = ppda && ppda.clips || [];
79 for (var i = 0; i < clips.length; i++)
80 {
81 if (clips[i].token === clipTokenOrName || clips[i].name === clipTokenOrName)
82 { return clips[i]; }
83 }
84 return clips[0] || null;
85 },
86
87 findView: function (frame, pitch, yaw)
88 {
89 var views = frame && frame.views || [];
90 for (var i = 0; i < views.length; i++)
91 {
92 if (views[i].pitch === pitch && views[i].yaw === yaw)
93 { return views[i]; }
94 }
95 return null;
96 },
97
98 uvRect: function (view, atlasW, atlasH)
99 {
100 if (!view)
101 { return { u0: 0, v0: 0, u1: 1, v1: 1, x: 0, y: 0, w: 0, h: 0 }; }
102 var w = atlasW || 1;
103 var h = atlasH || 1;
104 return {
105 x: view.x,
106 y: view.y,
107 w: view.w,
108 h: view.h,
109 u0: view.x / w,
110 v0: view.y / h,
111 u1: (view.x + view.w) / w,
112 v1: (view.y + view.h) / h
113 };
114 }
115 };
116
117 if (typeof module !== "undefined" && module.exports)
118 { module.exports = PpdaViewFrame; }
@@ -0,0 +1,118 @@
1/**
2 * Choose paperdoll view (yaw/pitch) and animation frame.
3 * Yaw 0 = character front (Paperdoll/glTF convention).
4 */
5var PpdaViewFrame =
6{
7 /**
8 * Relative viewing yaw in degrees [0,360): direction from NPC to player,
9 * minus the NPC's facing yaw (degrees, 0 = faces +X/east in world… mapped
10 * so that when the player looks at the NPC's front, relative yaw ≈ 0).
11 *
12 * World: +X east, +Y south (legacy raycaster). NPC facingYawDeg: 0 looks
13 * toward +X. Paperdoll yaw 0 is front. We map world facing so that the
14 * camera looking opposite to facing sees front.
15 */
16 relativeYawDeg: function (playerX, playerY, npcX, npcY, npcFacingDeg)
17 {
18 var dx = playerX - npcX;
19 var dy = playerY - npcY;
20 // Angle of vector NPC→player in world degrees (0=+X, 90=+Y).
21 var toPlayer = Math.atan2(dy, dx) * 180 / Math.PI;
22 if (toPlayer < 0)
23 { toPlayer += 360; }
24 // When player stands in front of NPC, toPlayer ≈ npcFacing.
25 // Paperdoll wants yaw 0 for front → relative = toPlayer - facing.
26 var rel = toPlayer - (npcFacingDeg || 0);
27 rel = ((rel % 360) + 360) % 360;
28 return rel;
29 },
30
31 nearestInList: function (value, list, circular360)
32 {
33 if (!list || !list.length)
34 { return 0; }
35 var best = list[0];
36 var bestD = Infinity;
37 for (var i = 0; i < list.length; i++)
38 {
39 var v = list[i];
40 var d = Math.abs(value - v);
41 if (circular360)
42 { d = Math.min(d, 360 - d); }
43 if (d < bestD)
44 {
45 bestD = d;
46 best = v;
47 }
48 }
49 return best;
50 },
51
52 pickYaw: function (relativeYawDeg, yaws)
53 {
54 return this.nearestInList(((relativeYawDeg % 360) + 360) % 360, yaws || [0], true);
55 },
56
57 pickPitch: function (playerPitchRad, pitches)
58 {
59 // player pitch: 0 = horizon; positive looks down in this game.
60 // Paperdoll: positive pitch = from above. Invert sign for mapping.
61 var deg = -(playerPitchRad || 0) * 180 / Math.PI;
62 return this.nearestInList(deg, pitches || [0]);
63 },
64
65 frameIndex: function (timeSec, fps, frameCount)
66 {
67 var n = Math.max(1, frameCount | 0);
68 var f = Math.max(1, fps | 0);
69 var idx = Math.floor((timeSec || 0) * f);
70 idx %= n;
71 if (idx < 0)
72 { idx += n; }
73 return idx;
74 },
75
76 findClip: function (ppda, clipTokenOrName)
77 {
78 var clips = ppda && ppda.clips || [];
79 for (var i = 0; i < clips.length; i++)
80 {
81 if (clips[i].token === clipTokenOrName || clips[i].name === clipTokenOrName)
82 { return clips[i]; }
83 }
84 return clips[0] || null;
85 },
86
87 findView: function (frame, pitch, yaw)
88 {
89 var views = frame && frame.views || [];
90 for (var i = 0; i < views.length; i++)
91 {
92 if (views[i].pitch === pitch && views[i].yaw === yaw)
93 { return views[i]; }
94 }
95 return null;
96 },
97
98 uvRect: function (view, atlasW, atlasH)
99 {
100 if (!view)
101 { return { u0: 0, v0: 0, u1: 1, v1: 1, x: 0, y: 0, w: 0, h: 0 }; }
102 var w = atlasW || 1;
103 var h = atlasH || 1;
104 return {
105 x: view.x,
106 y: view.y,
107 w: view.w,
108 h: view.h,
109 u0: view.x / w,
110 v0: view.y / h,
111 u1: (view.x + view.w) / w,
112 v1: (view.y + view.h) / h
113 };
114 }
115};
116
117if (typeof module !== "undefined" && module.exports)
118{ module.exports = PpdaViewFrame; }
src/raycastScene.js +18 −1
@@ -65,6 +65,8 @@ class RaycastScene extends Scene
65 65 {
66 66 super.update(deltaTime);
67 67 Player.update(deltaTime);
68 if (typeof NpcSystem !== "undefined")
69 { NpcSystem.update(deltaTime); }
68 70 if (Player.horizontalResolution > this.real_size.x)
69 71 { Player.horizontalResolution = this.real_size.x; }
70 72 }
@@ -79,7 +81,9 @@ class RaycastScene extends Scene
79 81 glc.endOffscreenPass();
80 82 glc.clear(0, 0, 0, 1);
81 83
82 this.drawColumns();
84 const wallDepth = this.drawColumns();
85 if (typeof NpcSystem !== "undefined" && NpcSystem.ready)
86 { NpcSystem.draw(this, Player, wallDepth); }
83 87 this.drawGun();
84 88 }
85 89
@@ -102,6 +106,9 @@ class RaycastScene extends Scene
102 106 const cols = Math.max(1, Math.floor(Player.horizontalResolution));
103 107 const rad = Math.PI / (cols * 2);
104 108 const widthLine = w / cols;
109 const wallDepth = new Float32Array(Math.max(1, Math.round(w)));
110 for (var zi = 0; zi < wallDepth.length; zi++)
111 { wallDepth[zi] = 1e9; }
105 112
106 113 for (var i = 0; i < cols; i++)
107 114 {
@@ -130,6 +137,15 @@ class RaycastScene extends Scene
130 137 var htmlImage = null;
131 138 var texW = 1;
132 139
140 // Z-buffer for NPC occlusion (per screen pixel column).
141 var x0 = Math.max(0, Math.floor(xLine));
142 var x1 = Math.min(wallDepth.length, Math.ceil(xLine + widthLine));
143 for (var xz = x0; xz < x1; xz++)
144 {
145 if (dist < wallDepth[xz])
146 { wallDepth[xz] = dist; }
147 }
148
133 149 if (rayHit.tile.Image && rayHit.tile.Image.g_image)
134 150 {
135 151 htmlImage = rayHit.tile.Image.g_image;
@@ -166,6 +182,7 @@ class RaycastScene extends Scene
166 182 });
167 183 }
168 184 }
185 return wallDepth;
169 186 }
170 187
171 188 drawGun ()
@@ -65,6 +65,8 @@ class RaycastScene extends Scene
65 {
65 {
66 super.update(deltaTime);
66 super.update(deltaTime);
67 Player.update(deltaTime);
67 Player.update(deltaTime);
68 if (typeof NpcSystem !== "undefined")
69 { NpcSystem.update(deltaTime); }
68 if (Player.horizontalResolution > this.real_size.x)
70 if (Player.horizontalResolution > this.real_size.x)
69 { Player.horizontalResolution = this.real_size.x; }
71 { Player.horizontalResolution = this.real_size.x; }
70 }
72 }
@@ -79,7 +81,9 @@ class RaycastScene extends Scene
79 glc.endOffscreenPass();
81 glc.endOffscreenPass();
80 glc.clear(0, 0, 0, 1);
82 glc.clear(0, 0, 0, 1);
81
83
82 this.drawColumns();
84 const wallDepth = this.drawColumns();
85 if (typeof NpcSystem !== "undefined" && NpcSystem.ready)
86 { NpcSystem.draw(this, Player, wallDepth); }
83 this.drawGun();
87 this.drawGun();
84 }
88 }
85
89
@@ -102,6 +106,9 @@ class RaycastScene extends Scene
102 const cols = Math.max(1, Math.floor(Player.horizontalResolution));
106 const cols = Math.max(1, Math.floor(Player.horizontalResolution));
103 const rad = Math.PI / (cols * 2);
107 const rad = Math.PI / (cols * 2);
104 const widthLine = w / cols;
108 const widthLine = w / cols;
109 const wallDepth = new Float32Array(Math.max(1, Math.round(w)));
110 for (var zi = 0; zi < wallDepth.length; zi++)
111 { wallDepth[zi] = 1e9; }
105
112
106 for (var i = 0; i < cols; i++)
113 for (var i = 0; i < cols; i++)
107 {
114 {
@@ -130,6 +137,15 @@ class RaycastScene extends Scene
130 var htmlImage = null;
137 var htmlImage = null;
131 var texW = 1;
138 var texW = 1;
132
139
140 // Z-buffer for NPC occlusion (per screen pixel column).
141 var x0 = Math.max(0, Math.floor(xLine));
142 var x1 = Math.min(wallDepth.length, Math.ceil(xLine + widthLine));
143 for (var xz = x0; xz < x1; xz++)
144 {
145 if (dist < wallDepth[xz])
146 { wallDepth[xz] = dist; }
147 }
148
133 if (rayHit.tile.Image && rayHit.tile.Image.g_image)
149 if (rayHit.tile.Image && rayHit.tile.Image.g_image)
134 {
150 {
135 htmlImage = rayHit.tile.Image.g_image;
151 htmlImage = rayHit.tile.Image.g_image;
@@ -166,6 +182,7 @@ class RaycastScene extends Scene
166 });
182 });
167 }
183 }
168 }
184 }
185 return wallDepth;
169 }
186 }
170
187
171 drawGun ()
188 drawGun ()
test/compositor.test.js added +60 −0
@@ -0,0 +1,60 @@
1 "use strict";
2 const { describe, it } = require("node:test");
3 const assert = require("node:assert/strict");
4 const PpdaCompositor = require("../src/ppda/compositor.js");
5
6 function layer (w, h, gray, dAlpha, rgba)
7 {
8 const n = w * h;
9 const diffuse = new Uint8ClampedArray(n * 4);
10 const depthGray = new Uint16Array(n);
11 const depthAlpha = new Uint16Array(n);
12 for (let i = 0; i < n; i++)
13 {
14 diffuse[i * 4] = rgba[0];
15 diffuse[i * 4 + 1] = rgba[1];
16 diffuse[i * 4 + 2] = rgba[2];
17 diffuse[i * 4 + 3] = rgba[3];
18 depthGray[i] = gray;
19 depthAlpha[i] = dAlpha;
20 }
21 return { width: w, height: h, diffuse, depthGray, depthAlpha };
22 }
23
24 describe("PpdaCompositor (compositor.rs rules)", () =>
25 {
26 it("nearer depth wins", () =>
27 {
28 const body = layer(1, 1, 20000, 65535, [10, 0, 0, 255]);
29 const gear = layer(1, 1, 10000, 65535, [0, 20, 0, 255]);
30 const out = PpdaCompositor.compose([body, gear]);
31 assert.equal(out.winner[0], 1);
32 assert.equal(out.diffuse[1], 20);
33 assert.equal(out.depthGray[0], 10000);
34 });
35
36 it("tie within epsilon keeps lower layer (body)", () =>
37 {
38 const body = layer(1, 1, 20000, 65535, [10, 0, 0, 255]);
39 const gear = layer(1, 1, 20000 + 1, 65535, [0, 20, 0, 255]);
40 const out = PpdaCompositor.compose([body, gear]);
41 assert.equal(out.winner[0], 0);
42 assert.equal(out.diffuse[0], 10);
43 });
44
45 it("zero diffuse alpha skips layer", () =>
46 {
47 const body = layer(1, 1, 5000, 65535, [10, 0, 0, 255]);
48 const gear = layer(1, 1, 1000, 65535, [0, 20, 0, 0]);
49 const out = PpdaCompositor.compose([body, gear]);
50 assert.equal(out.winner[0], 0);
51 });
52
53 it("zero depth alpha skips layer", () =>
54 {
55 const body = layer(1, 1, 5000, 65535, [10, 0, 0, 255]);
56 const gear = layer(1, 1, 1000, 0, [0, 20, 0, 255]);
57 const out = PpdaCompositor.compose([body, gear]);
58 assert.equal(out.winner[0], 0);
59 });
60 });
@@ -0,0 +1,60 @@
1"use strict";
2const { describe, it } = require("node:test");
3const assert = require("node:assert/strict");
4const PpdaCompositor = require("../src/ppda/compositor.js");
5
6function layer (w, h, gray, dAlpha, rgba)
7{
8 const n = w * h;
9 const diffuse = new Uint8ClampedArray(n * 4);
10 const depthGray = new Uint16Array(n);
11 const depthAlpha = new Uint16Array(n);
12 for (let i = 0; i < n; i++)
13 {
14 diffuse[i * 4] = rgba[0];
15 diffuse[i * 4 + 1] = rgba[1];
16 diffuse[i * 4 + 2] = rgba[2];
17 diffuse[i * 4 + 3] = rgba[3];
18 depthGray[i] = gray;
19 depthAlpha[i] = dAlpha;
20 }
21 return { width: w, height: h, diffuse, depthGray, depthAlpha };
22}
23
24describe("PpdaCompositor (compositor.rs rules)", () =>
25{
26 it("nearer depth wins", () =>
27 {
28 const body = layer(1, 1, 20000, 65535, [10, 0, 0, 255]);
29 const gear = layer(1, 1, 10000, 65535, [0, 20, 0, 255]);
30 const out = PpdaCompositor.compose([body, gear]);
31 assert.equal(out.winner[0], 1);
32 assert.equal(out.diffuse[1], 20);
33 assert.equal(out.depthGray[0], 10000);
34 });
35
36 it("tie within epsilon keeps lower layer (body)", () =>
37 {
38 const body = layer(1, 1, 20000, 65535, [10, 0, 0, 255]);
39 const gear = layer(1, 1, 20000 + 1, 65535, [0, 20, 0, 255]);
40 const out = PpdaCompositor.compose([body, gear]);
41 assert.equal(out.winner[0], 0);
42 assert.equal(out.diffuse[0], 10);
43 });
44
45 it("zero diffuse alpha skips layer", () =>
46 {
47 const body = layer(1, 1, 5000, 65535, [10, 0, 0, 255]);
48 const gear = layer(1, 1, 1000, 65535, [0, 20, 0, 0]);
49 const out = PpdaCompositor.compose([body, gear]);
50 assert.equal(out.winner[0], 0);
51 });
52
53 it("zero depth alpha skips layer", () =>
54 {
55 const body = layer(1, 1, 5000, 65535, [10, 0, 0, 255]);
56 const gear = layer(1, 1, 1000, 0, [0, 20, 0, 255]);
57 const out = PpdaCompositor.compose([body, gear]);
58 assert.equal(out.winner[0], 0);
59 });
60});
test/depthDecode.test.js added +51 −0
@@ -0,0 +1,51 @@
1 "use strict";
2 const { describe, it } = require("node:test");
3 const assert = require("node:assert/strict");
4 const DepthDecode = require("../src/ppda/depthDecode.js");
5
6 describe("DepthDecode encodings", () =>
7 {
8 it("gray 8/16 roundtrip via encode/decode value", () =>
9 {
10 for (const bits of [8, 16])
11 {
12 const fmt = DepthDecode.parseFormat("gray", bits);
13 for (const t of [0, 0.25, 0.5, 1])
14 {
15 const enc = DepthDecode.encodeValue(fmt, t);
16 const back = DepthDecode.decodeValue(fmt, enc[0], enc[1], enc[2]);
17 assert.ok(Math.abs(back - t) < 2e-2, "gray" + bits + " t=" + t);
18 }
19 }
20 });
21
22 it("rgb_bands fills R then G then B", () =>
23 {
24 const fmt = DepthDecode.parseFormat("rgb_bands", 8);
25 const mid = DepthDecode.encodeValue(fmt, 0.5);
26 assert.equal(mid[0], 255);
27 assert.ok(mid[1] > 0);
28 const pix = DepthDecode.decodePixelChannels(fmt, [255, 100, 0, 255]);
29 assert.ok(pix.gray > 0 && pix.alpha === 65535);
30 });
31
32 it("rgb_bands rejects invalid order", () =>
33 {
34 const fmt = DepthDecode.parseFormat("rgb_bands", 8);
35 assert.throws(() => DepthDecode.decodePixelChannels(fmt, [100, 1, 0, 255]));
36 });
37
38 it("rgb_packed positional", () =>
39 {
40 const fmt = DepthDecode.parseFormat("rgb_packed", 8);
41 const enc = DepthDecode.encodeValue(fmt, 0.5);
42 const back = DepthDecode.decodeValue(fmt, enc[0], enc[1], enc[2]);
43 assert.ok(Math.abs(back - 0.5) < 2e-2);
44 });
45
46 it("distanceMeters uses near/far", () =>
47 {
48 assert.equal(DepthDecode.distanceMeters(0, 1, 3), 1);
49 assert.equal(DepthDecode.distanceMeters(65535, 1, 3), 3);
50 });
51 });
@@ -0,0 +1,51 @@
1"use strict";
2const { describe, it } = require("node:test");
3const assert = require("node:assert/strict");
4const DepthDecode = require("../src/ppda/depthDecode.js");
5
6describe("DepthDecode encodings", () =>
7{
8 it("gray 8/16 roundtrip via encode/decode value", () =>
9 {
10 for (const bits of [8, 16])
11 {
12 const fmt = DepthDecode.parseFormat("gray", bits);
13 for (const t of [0, 0.25, 0.5, 1])
14 {
15 const enc = DepthDecode.encodeValue(fmt, t);
16 const back = DepthDecode.decodeValue(fmt, enc[0], enc[1], enc[2]);
17 assert.ok(Math.abs(back - t) < 2e-2, "gray" + bits + " t=" + t);
18 }
19 }
20 });
21
22 it("rgb_bands fills R then G then B", () =>
23 {
24 const fmt = DepthDecode.parseFormat("rgb_bands", 8);
25 const mid = DepthDecode.encodeValue(fmt, 0.5);
26 assert.equal(mid[0], 255);
27 assert.ok(mid[1] > 0);
28 const pix = DepthDecode.decodePixelChannels(fmt, [255, 100, 0, 255]);
29 assert.ok(pix.gray > 0 && pix.alpha === 65535);
30 });
31
32 it("rgb_bands rejects invalid order", () =>
33 {
34 const fmt = DepthDecode.parseFormat("rgb_bands", 8);
35 assert.throws(() => DepthDecode.decodePixelChannels(fmt, [100, 1, 0, 255]));
36 });
37
38 it("rgb_packed positional", () =>
39 {
40 const fmt = DepthDecode.parseFormat("rgb_packed", 8);
41 const enc = DepthDecode.encodeValue(fmt, 0.5);
42 const back = DepthDecode.decodeValue(fmt, enc[0], enc[1], enc[2]);
43 assert.ok(Math.abs(back - 0.5) < 2e-2);
44 });
45
46 it("distanceMeters uses near/far", () =>
47 {
48 assert.equal(DepthDecode.distanceMeters(0, 1, 3), 1);
49 assert.equal(DepthDecode.distanceMeters(65535, 1, 3), 3);
50 });
51});
test/occlusion.test.js added +33 −0
@@ -0,0 +1,33 @@
1 "use strict";
2 const { describe, it } = require("node:test");
3 const assert = require("node:assert/strict");
4
5 /** Mirror of NPC pixel z-test used in NpcSystem.draw */
6 function occlude (zbuf, index, pixelDist)
7 {
8 if (pixelDist >= zbuf[index])
9 { return false; }
10 zbuf[index] = pixelDist;
11 return true;
12 }
13
14 describe("sprite occlusion z-buffer", () =>
15 {
16 it("wall blocks farther sprite pixels", () =>
17 {
18 const z = new Float32Array([100]);
19 assert.equal(occlude(z, 0, 50), true);
20 assert.equal(z[0], 50);
21 assert.equal(occlude(z, 0, 80), false);
22 assert.equal(z[0], 50);
23 });
24
25 it("nearer sprite wins over previous sprite", () =>
26 {
27 const z = new Float32Array([1e9]);
28 assert.ok(occlude(z, 0, 200));
29 assert.ok(occlude(z, 0, 150));
30 assert.equal(z[0], 150);
31 assert.equal(occlude(z, 0, 150), false);
32 });
33 });
@@ -0,0 +1,33 @@
1"use strict";
2const { describe, it } = require("node:test");
3const assert = require("node:assert/strict");
4
5/** Mirror of NPC pixel z-test used in NpcSystem.draw */
6function occlude (zbuf, index, pixelDist)
7{
8 if (pixelDist >= zbuf[index])
9 { return false; }
10 zbuf[index] = pixelDist;
11 return true;
12}
13
14describe("sprite occlusion z-buffer", () =>
15{
16 it("wall blocks farther sprite pixels", () =>
17 {
18 const z = new Float32Array([100]);
19 assert.equal(occlude(z, 0, 50), true);
20 assert.equal(z[0], 50);
21 assert.equal(occlude(z, 0, 80), false);
22 assert.equal(z[0], 50);
23 });
24
25 it("nearer sprite wins over previous sprite", () =>
26 {
27 const z = new Float32Array([1e9]);
28 assert.ok(occlude(z, 0, 200));
29 assert.ok(occlude(z, 0, 150));
30 assert.equal(z[0], 150);
31 assert.equal(occlude(z, 0, 150), false);
32 });
33});
test/ppdaLoader.test.js added +53 −0
@@ -0,0 +1,53 @@
1 "use strict";
2 const { describe, it } = require("node:test");
3 const assert = require("node:assert/strict");
4 const fs = require("fs");
5 const path = require("path");
6 const DepthDecode = require("../src/ppda/depthDecode.js");
7 global.DepthDecode = DepthDecode;
8 const PpdaLoader = require("../src/ppda/loadPpda.js");
9
10 describe("PpdaLoader", () =>
11 {
12 it("loads vendored male-body atlas", () =>
13 {
14 const text = fs.readFileSync(path.join(__dirname, "../build/paperdolls/male-body/male-body-atlas.ppda"), "utf8");
15 const ppda = PpdaLoader.parse(text);
16 assert.equal(ppda.sex, "male");
17 assert.equal(ppda.settype, "body");
18 assert.equal(ppda.depth_format.encoding, "gray");
19 assert.equal(ppda.depth_format.bits, 16);
20 assert.ok(ppda.yaws.length === 12);
21 assert.ok(ppda.clips.length >= 1);
22 });
23
24 it("body and sword are compatible", () =>
25 {
26 const body = PpdaLoader.parse(fs.readFileSync(path.join(__dirname, "../build/paperdolls/male-body/male-body-atlas.ppda"), "utf8"));
27 const sword = PpdaLoader.parse(fs.readFileSync(path.join(__dirname, "../build/paperdolls/male-sword/male-sword-atlas.ppda"), "utf8"));
28 assert.doesNotThrow(() => PpdaLoader.assertCompatible(body, sword));
29 });
30
31 it("rejects path traversal in map files", () =>
32 {
33 const bad = {
34 format_version: 1,
35 sex: "male",
36 settype: "body",
37 fps: 4,
38 cell_width: 32,
39 cell_height: 48,
40 pitches: [0],
41 yaws: [0],
42 maps: { diffuse: { file: "../x.png" }, depth: { file: "d.u16" } },
43 clips: [{ name: "a", token: "a", frame_count: 1, duration: 1, frames: [{ index: 0, views: [{ pitch: 0, yaw: 0, x: 0, y: 0, w: 1, h: 1 }] }] }],
44 identity: { near: 0, far: 1 }
45 };
46 assert.throws(() => PpdaLoader.parse(bad));
47 });
48
49 it("rejects unknown format_version", () =>
50 {
51 assert.throws(() => PpdaLoader.parse({ format_version: 99, sex: "m", settype: "b", fps: 1, cell_width: 1, cell_height: 1, pitches: [0], yaws: [0], maps: { diffuse: { file: "a.png" }, depth: { file: "d.u16" } }, clips: [{ name: "a", token: "a", frame_count: 1, duration: 1, frames: [{ index: 0, views: [{ pitch: 0, yaw: 0, x: 0, y: 0, w: 1, h: 1 }] }] }], identity: { near: 0, far: 1 } }));
52 });
53 });
@@ -0,0 +1,53 @@
1"use strict";
2const { describe, it } = require("node:test");
3const assert = require("node:assert/strict");
4const fs = require("fs");
5const path = require("path");
6const DepthDecode = require("../src/ppda/depthDecode.js");
7global.DepthDecode = DepthDecode;
8const PpdaLoader = require("../src/ppda/loadPpda.js");
9
10describe("PpdaLoader", () =>
11{
12 it("loads vendored male-body atlas", () =>
13 {
14 const text = fs.readFileSync(path.join(__dirname, "../build/paperdolls/male-body/male-body-atlas.ppda"), "utf8");
15 const ppda = PpdaLoader.parse(text);
16 assert.equal(ppda.sex, "male");
17 assert.equal(ppda.settype, "body");
18 assert.equal(ppda.depth_format.encoding, "gray");
19 assert.equal(ppda.depth_format.bits, 16);
20 assert.ok(ppda.yaws.length === 12);
21 assert.ok(ppda.clips.length >= 1);
22 });
23
24 it("body and sword are compatible", () =>
25 {
26 const body = PpdaLoader.parse(fs.readFileSync(path.join(__dirname, "../build/paperdolls/male-body/male-body-atlas.ppda"), "utf8"));
27 const sword = PpdaLoader.parse(fs.readFileSync(path.join(__dirname, "../build/paperdolls/male-sword/male-sword-atlas.ppda"), "utf8"));
28 assert.doesNotThrow(() => PpdaLoader.assertCompatible(body, sword));
29 });
30
31 it("rejects path traversal in map files", () =>
32 {
33 const bad = {
34 format_version: 1,
35 sex: "male",
36 settype: "body",
37 fps: 4,
38 cell_width: 32,
39 cell_height: 48,
40 pitches: [0],
41 yaws: [0],
42 maps: { diffuse: { file: "../x.png" }, depth: { file: "d.u16" } },
43 clips: [{ name: "a", token: "a", frame_count: 1, duration: 1, frames: [{ index: 0, views: [{ pitch: 0, yaw: 0, x: 0, y: 0, w: 1, h: 1 }] }] }],
44 identity: { near: 0, far: 1 }
45 };
46 assert.throws(() => PpdaLoader.parse(bad));
47 });
48
49 it("rejects unknown format_version", () =>
50 {
51 assert.throws(() => PpdaLoader.parse({ format_version: 99, sex: "m", settype: "b", fps: 1, cell_width: 1, cell_height: 1, pitches: [0], yaws: [0], maps: { diffuse: { file: "a.png" }, depth: { file: "d.u16" } }, clips: [{ name: "a", token: "a", frame_count: 1, duration: 1, frames: [{ index: 0, views: [{ pitch: 0, yaw: 0, x: 0, y: 0, w: 1, h: 1 }] }] }], identity: { near: 0, far: 1 } }));
52 });
53});
test/viewFrame.test.js added +38 −0
@@ -0,0 +1,38 @@
1 "use strict";
2 const { describe, it } = require("node:test");
3 const assert = require("node:assert/strict");
4 const PpdaViewFrame = require("../src/ppda/viewFrame.js");
5
6 describe("PpdaViewFrame", () =>
7 {
8 it("picks nearest yaw", () =>
9 {
10 const yaws = [0, 30, 60, 90];
11 assert.equal(PpdaViewFrame.pickYaw(10, yaws), 0);
12 assert.equal(PpdaViewFrame.pickYaw(20, yaws), 30);
13 assert.equal(PpdaViewFrame.pickYaw(350, yaws), 0);
14 });
15
16 it("frameIndex wraps", () =>
17 {
18 assert.equal(PpdaViewFrame.frameIndex(0, 4, 4), 0);
19 assert.equal(PpdaViewFrame.frameIndex(1, 4, 4), 0);
20 assert.equal(PpdaViewFrame.frameIndex(0.6, 4, 4), 2);
21 });
22
23 it("uvRect from view", () =>
24 {
25 const uv = PpdaViewFrame.uvRect({ x: 10, y: 20, w: 5, h: 8 }, 100, 200);
26 assert.equal(uv.u0, 0.1);
27 assert.equal(uv.v0, 0.1);
28 assert.equal(uv.u1, 0.15);
29 assert.equal(uv.v1, 0.14);
30 });
31
32 it("relativeYawDeg front when looking at facing NPC", () =>
33 {
34 // NPC at origin facing +X (0). Player at +X → sees front → rel ~0
35 const rel = PpdaViewFrame.relativeYawDeg(10, 0, 0, 0, 0);
36 assert.ok(rel < 1 || rel > 359);
37 });
38 });
@@ -0,0 +1,38 @@
1"use strict";
2const { describe, it } = require("node:test");
3const assert = require("node:assert/strict");
4const PpdaViewFrame = require("../src/ppda/viewFrame.js");
5
6describe("PpdaViewFrame", () =>
7{
8 it("picks nearest yaw", () =>
9 {
10 const yaws = [0, 30, 60, 90];
11 assert.equal(PpdaViewFrame.pickYaw(10, yaws), 0);
12 assert.equal(PpdaViewFrame.pickYaw(20, yaws), 30);
13 assert.equal(PpdaViewFrame.pickYaw(350, yaws), 0);
14 });
15
16 it("frameIndex wraps", () =>
17 {
18 assert.equal(PpdaViewFrame.frameIndex(0, 4, 4), 0);
19 assert.equal(PpdaViewFrame.frameIndex(1, 4, 4), 0);
20 assert.equal(PpdaViewFrame.frameIndex(0.6, 4, 4), 2);
21 });
22
23 it("uvRect from view", () =>
24 {
25 const uv = PpdaViewFrame.uvRect({ x: 10, y: 20, w: 5, h: 8 }, 100, 200);
26 assert.equal(uv.u0, 0.1);
27 assert.equal(uv.v0, 0.1);
28 assert.equal(uv.u1, 0.15);
29 assert.equal(uv.v1, 0.14);
30 });
31
32 it("relativeYawDeg front when looking at facing NPC", () =>
33 {
34 // NPC at origin facing +X (0). Player at +X → sees front → rel ~0
35 const rel = PpdaViewFrame.relativeYawDeg(10, 0, 0, 0, 0);
36 assert.ok(rel < 1 || rel > 359);
37 });
38});