mesh files use game space (right-handed, y up): obj/gltf import and export no longer mirror models, per-mesh handedness keeps meshes of old projects as they were, python tools follow (--export-space for the old files)

This commit is contained in:
MineTec committed 2026-11-07 12:48:43 +01:00
1 parent c4fa500198
commit 4a58910fba
26 files changed
+525 -96

No files matched your search

+4
View File
@@ -164,6 +164,10 @@ Ctrl inverts `enabled` while dragging.
* Rotate gizmo: the edge-on fallback uses the screen angle with the mirrored sign.
* Standard views: **top** = x to the right, game z (grid rows) downwards (cell (0,0) top left, as the
MAP/region grid is laid out; yaw π); **front** looks along game −z (x right); **side** looks along −x.
* Files (Import mesh, OBJ and glTF export, the Python geom tools) are right-handed y-up **game
space** (= export space with z negated and the winding reversed), so they look the same in
Blender as in the editor and the game (2026-11-07; before, they were export space and appeared
mirrored – see editor-tools-geometry.md "Handedness").
* Spaces: render/export space = (x, y, −z_game); model and inspector values (strats, waypoints,
zones, lights, collision) are game space, tiles store export floats. LGHT point lights/directions
are stored in game space (engine negates z on load). Strat yaw: `rotateY(−ry·2π/4096)` in export