Catching Millimetre-to-Metre Scale Bugs Before AR Quick Look & WebXR Launch
Why Khronos Mandates Metres and How DCC Exporters Break It
Section 3.4 of the Khronos glTF 2.0 specification establishes one unambiguous rule: all linear distances in glTF node transforms and POSITION vertex accessors are defined in real-world metres. Despite this rule, CAD packages model in millimetres (1,000× larger) while Maya and Unreal scenes commonly work in centimetres (100× larger). If an exporter writes raw scene numbers into POSITION buffers without baking a 0.001 or 0.01 root scale factor, a 1-metre tabletop product spawns as a 1-kilometre monolith in ARCore, Scene Viewer, or Three.js.
Auto-framing viewers often hide this defect because the camera zooms out automatically to fit whatever bounding sphere exists. Our scale checker computes the accumulated 4×4 world matrix of every mesh-bearing node, transforms accessor bounding corners into true metre extents, divides by your expected reference dimension (1.0 m by default), and overlays a cyan reference cube on the WebGL2 floor grid.
- Multiplies local POSITION min/max bounds through full parent-chain world matrices so root 0.001 scale nodes are honored.
- Triggers SCALE_RATIO_MISMATCH warnings whenever assets exceed 100× or fall below 0.01× of target size.
- Allows live editing of the reference metre target for miniature jewelry (0.02 m) or architectural buildings (25 m).
Diagnosing the 1000× Ratio on scale-texture.glb
On scale-texture.glb, vertex coordinates run from -500 to +500 with an identity node matrix, producing a 1,000 m cube and an exact 1,000× ratio—immediately signaling an unscaled millimetre CAD export.