diff options
| author | cxchhh <35392417+cxchhh@users.noreply.github.com> | 2026-11-22 08:01:15 +0000 |
|---|---|---|
| committer | cxchhh <35392417+cxchhh@users.noreply.github.com> | 2026-11-22 08:01:15 +0000 |
| commit | 1c56460bfbee51471fe6060a56ae6f7caf8b71be (patch) | |
| tree | 8612a2e31c3b8c74b342146d42b479265914827d /runtime/src/thread_stacks.cpp | |
| parent | d3841c0c0ee41ec014699a985846c6dc76026440 (diff) | |
world_build: place models at their map placements (--placements)
world_build placed every model at its own coordinates or in rows; it never read the CEntityDef records.
- world_index.py --entities-out writes one JSON line per complete entity: archetype hash and 64-bit key,
position, stored rotation, scales and LOD fields.
- world_build.py --placements matches each selected entity to an exported model the way world_names.py does
(lower-cased joaat of the manifest name, confirmed by the Murmur3-64 key when the row has one). It then
scales by (scaleXY, scaleXY, scaleZ), rotates by the conjugate of the stored quaternion, translates and
converts to glTF Y-up. Normals use the inverse-transpose; a mirroring scale flips the winding.
--lod-levels (default 0,5) and --region select the entities. world.json reports the count of each outcome
in stats.placements.
- tests/test_world_place.py: 15 synthetic tests.
- docs/world.md: "Building a placed world", with measurements on a 700 m downtown box.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions