# Demo model assets

These models are served from the demo's own origin so startup does not depend on
GitHub's asset server. The original GLBs retain their geometry, materials and animation.

- `robot-expressive.glb`: [RobotExpressive from three.js](https://github.com/mrdoob/three.js/tree/dev/examples/models/gltf/RobotExpressive).
  Model by Tomás Laulhé, facial morphs and glTF conversion by Don McCurdy, CC0 1.0.
  See [upstream credits](robot-CREDITS.md).
- `flight-helmet.glb`: [Flight Helmet from Khronos glTF Sample Assets](https://github.com/KhronosGroup/glTF-Sample-Assets/tree/main/Models/FlightHelmet),
  CC0 1.0 Universal (© 2018, Public; conversion from Maya credited to Gary Hsu). Credit is a courtesy; CC0 does not
  require it. Derived from `khronos/FlightHelmet/` (glTF + PNG, see `khronos/README.md` in the repository): all
  94,722 triangles, 1024-pixel JPEG maps, quantized normals/tangents/UVs (`KHR_mesh_quantization`).
- `flight-helmet-mobile.glb`: the same helmet with 512-pixel JPEG maps and 20,734 triangles, simplified earlier with
  meshoptimizer (normal/UV-aware, error bound 0.005) and kept as committed, except the lens base colour, encoded again
  from the source PNG in 2026-11 (`scripts/optimize-demo-assets.js`). Also CC0.
- Both helmets keep each map's colour as authored and drop its alpha, which glTF ignores in OPAQUE mode. An earlier
  encode composited the lens base colour over black, about 30 times too dark in linear light, and the lenses drew
  near black (`tests/demo-helmet-textures.test.js`).

- `boulder-robot.glb`: original work for Margo Engine (Apache-2.0), the Boulder demo climber (a Light Keeper robot with legs),
  built from `source/skinning_ik/build_robot.py` in Blender and `scripts/build-boulder-assets.mjs`. No third-party files.
  See [its license note](boulder-robot-LICENSE.md).

Regenerate the desktop helmet GLB with `node scripts/optimize-demo-assets.js`. This uses
the image tools already installed in this workspace and validates the GLB
(Khronos glTF-Validator: 0 errors, 0 warnings). The phone GLB is not regenerated.

## Tests and benchmarks

- `autorig/makehuman-base.obj`: the base mesh of [MakeHuman](https://github.com/makehumancommunity/makehuman) (`makehuman/data/3dobjs/base.obj`, master), CC0 1.0, unchanged. The automatic rig's real unrigged mesh; its `joint-` helper groups mark where its authors put the joints.
- `scifi-helmet.glb`: [SciFiHelmet from Khronos glTF Sample Assets](https://github.com/KhronosGroup/glTF-Sample-Assets/tree/main/Models/SciFiHelmet).
  Model by Michael Pavlovic, glTF conversion by Norbert Nopper, CC0 1.0. Packed from `khronos/SciFiHelmet/` with
  1024-pixel JPEG maps by `node scripts/build-scifi-helmet.mjs`. See [its credits](scifi-helmet-CREDITS.md).
