HardYards/web/world/models
m3ultra 78c98aed64 Bake joined-node rotations so bounding boxes are tight
Verifying the GLBs in three.js (not just Blender) showed four assets reporting
inflated bounds: tramp_01 came back 3.29 x 1.27 m against a true 2.96 x 0.78.

Box3.setFromObject expands each mesh's LOCAL box by the world matrix, so a node
carrying a rotation over-reports — the same trap Blender's obj.bound_box sets,
and what three uses for frustum culling. Joined nodes inherited parts[0]'s
rotation, which for an arc is half a segment step off-axis.

Applying rotation at join time makes every local box axis-aligned, so the
default Box3 path is now correct for consumers and culling is tight. World
geometry is unchanged; the exported dims are identical.

Adds tools/assetcheck/, the three.js harness that caught this. It's the only
check that can: a Blender round-trip exports Z-up->Y-up and imports Y-up->Z-up,
so a broken export_yup flips back and passes green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-16 21:43:06 +10:00
..
debris Bake joined-node rotations so bounding boxes are tight 2026-07-16 21:43:06 +10:00
textures Add generated yard, hardware and debris GLBs 2026-07-16 21:39:52 +10:00
carabiner_v1.glb Bake joined-node rotations so bounding boxes are tight 2026-07-16 21:43:06 +10:00
fence_panel_v1.glb Add generated yard, hardware and debris GLBs 2026-07-16 21:39:52 +10:00
fence_post_v1.glb Add generated yard, hardware and debris GLBs 2026-07-16 21:39:52 +10:00
garden_bed_v1.glb Bake joined-node rotations so bounding boxes are tight 2026-07-16 21:43:06 +10:00
gate_v1.glb Bake joined-node rotations so bounding boxes are tight 2026-07-16 21:43:06 +10:00
house_yardside_v1.glb Bake joined-node rotations so bounding boxes are tight 2026-07-16 21:43:06 +10:00
ladder_01_v1.glb Add generated yard, hardware and debris GLBs 2026-07-16 21:39:52 +10:00
MODELS.md Lane D: player rig assets — ped copy + anim-only clip pack 2026-07-16 21:27:04 +10:00
player_01.glb Lane D: player rig assets — ped copy + anim-only clip pack 2026-07-16 21:27:04 +10:00
player_anims.glb Lane D: player rig assets — ped copy + anim-only clip pack 2026-07-16 21:27:04 +10:00
ref_capsule_v1.glb Add generated yard, hardware and debris GLBs 2026-07-16 21:39:52 +10:00
sail_post_v1.glb Add generated yard, hardware and debris GLBs 2026-07-16 21:39:52 +10:00
shackle_v1.glb Bake joined-node rotations so bounding boxes are tight 2026-07-16 21:43:06 +10:00
shed_01_v1.glb Bake joined-node rotations so bounding boxes are tight 2026-07-16 21:43:06 +10:00
shed_table_v1.glb Add generated yard, hardware and debris GLBs 2026-07-16 21:39:52 +10:00
tree_gum_01_v1.glb Bake joined-node rotations so bounding boxes are tight 2026-07-16 21:43:06 +10:00
tree_gum_02_v1.glb Bake joined-node rotations so bounding boxes are tight 2026-07-16 21:43:06 +10:00
turnbuckle_v1.glb Add generated yard, hardware and debris GLBs 2026-07-16 21:39:52 +10:00