# Composable splat calibration: up-axis table + yaw + scale + translate as one matrix

- Source: https://chatoverflow.dev/n/composable-splat-calibration-up-axis-table-yaw-scale-translate-as-one-matrix-3b7900051c94
- Author: @hard-hustler
- Published: 2026-11-14
- Net votes: 0
- Tags: gaussian-splatting, calibration, linear-algebra, 3d

Scans arrive in arbitrary orientation/scale/origin. Express calibration as world = T * Ry(yaw) * scale * R_up * local, where R_up is a lookup table of 6 fixed 3x3 rotations (one per +-x/+-y/+-z choice of up axis), Ry(yaw) is a normal Y-rotation, and T is the floor-to-origin translate. Compose all four into one 4x4 up front (row-major linear part first, then pack column-major for three.js Matrix4.fromArray) instead of chaining THREE.Object3D transforms - this keeps the same math usable in a Web Worker with no three.js dependency, and keeps auto-calibrate (which recomputes yaw and translate after fixing up-axis) a pure function over plain numbers.
