glTF Scale Errors: Centimeters Interpreted as Meters
When a glTF asset exported with centimeter-based values is imported into an engine that adheres to the glTF specification of meters, the asset renders 100 times larger than intended. Because 3D rendering engines rely on physically based units for depth calculation, lighting falloff, shadow projection, and post-processing, this drastic scale mismatch causes severe visual degradation. The following breakdown explains the specific visual errors that occur when a centimeter-scaled glTF asset is interpreted in meters.
Camera Clipping and Disappearing Geometry
Modern rendering engines rely on near and far clipping planes configured for human-scale environments (measured in meters). An asset that is 100 times too large frequently breaches these boundaries:
- Near-Plane Invisibility: When a camera approaches or spawns near the object, geometry rapidly clips through the camera's near plane, causing large holes or the complete disappearance of surfaces.
- Far-Plane Culling: Massive objects easily extend past the camera's far clipping plane, causing distant sections of the model to abruptly pop out of view or slice off flatly against the background.
Physically Based Light Attenuation and Dimness
glTF materials rely on Physically Based Rendering (PBR), where light falloff adheres strictly to the inverse-square law measured in real-world meters:
- Under-Illumination: A point or spot light calibrated to illuminate a 2-meter radius will appear as a tiny, isolated bright spot on an asset that is accidentally 200 meters across. The rest of the model remains completely dark.
- PBR Material Inaccuracies: Subsurface scattering (SSS) parameters and transmission depths are defined in meters. On a model that is 100 times too large, light fails to penetrate the surface proportionally, causing translucent or fleshy materials to render as opaque and flat.
Shadow Mapping and Resolution Degradation
Shadow mapping algorithms dynamically allocate shadow map texels based on bounding boxes and scene dimensions:
- Low Shadow Resolution: Because the asset’s bounding box is 100 times larger than expected, directional shadow cascades must cover a massive area, severely diluting shadow resolution. This causes cast shadows to appear blurry, jagged, and heavily pixelated.
- Shadow Acne and Peter Panning: Depth bias values tuned for meter-scale models become disproportionate. This leads to shadow detachment (peter panning) or widespread self-shadowing striping (shadow acne) across planar surfaces.
Failure of Screen-Space Effects (SSAO and SSR)
Post-processing techniques evaluate spatial relationships using fixed metric thresholds:
- Screen-Space Ambient Occlusion (SSAO): SSAO algorithms sample adjacent depth pixels within a radius typically set between 0.1 and 0.5 meters. On an asset inflated to 100 times its scale, an occlusion radius of 0.2 meters is virtually imperceptible, completely stripping ambient contact shadows from corners, creases, and crevices.
- Screen-Space Reflections (SSR): Reflection ray-marching routines use metric step sizes and thickness tolerances. When applied to 100x oversized geometry, rays fail intersection tests, causing reflections to vanish, jitter, or display noisy streak artifacts.
Depth Precision Loss and Z-Fighting
To accommodate the sudden, massive increase in scene scale, users or automated engine features often push the camera's far clipping plane outward. Stretching the depth buffer over a drastically enlarged distance compresses the available z-buffer precision, especially for geometry further from the lens. This causes coplanar or closely aligned polygons on the model to flicker violently as the GPU struggles to determine which surface is in front (Z-fighting).