Eliminating Broken External Texture URIs in Self-Contained GLB Deliveries
How External URIs Sneak Into Supposedly Self-Contained GLB Containers
A binary .glb container is expected to pack all geometry buffers and PBR textures inside its internal BIN chunk so downstream applications can load a single file cleanly. In practice, Blender, Maya, Substance, and custom Python pipelines frequently leave an unpacked relative filename—such as "rough.png" or "../textures/normal.jpg"—inside the JSON images array when a shader node links to a missing disk file or an unsupported network drive.
According to the Khronos glTF 2.0 specification, referencing external URIs from inside a GLB container triggers the URI_GLB conformance issue and causes strict web viewers or Content-Security-Policy sandboxes to fail texture loading. Worse, naive online viewers automatically try to GET those relative URLs against their own web servers, leaking internal project directory names and asset identifiers in server access logs.
- Traces every gltf.images[i] entry through gltf.textures[] to the exact material name and PBR channel.
- Rewrites unresolved URIs in memory with an inert 1×1 data URI before WebGL2 parsing so zero HTTP 404 leaks occur.
- Supports dropping companion PNG, JPEG, WebP, or KTX2 files together when validating unpacked .gltf sets.
Pinpointing Affected Material Channels for Rapid Artist Fixes
Rather than reporting only a cryptic JSON pointer like /images/1/uri, the audit maps image index 1 directly to AuditPbrMaterial.metallicRoughnessTexture. Technical artists immediately know which shader socket in their DCC material graph must be repacked or disconnected.