glTF
GL Transmission Format · model/gltf+json · .gltf .glb
Overview
glTF is the Khronos standard for transmitting 3D scenes to WebGL and game engines. It preserves scene graphs, PBR materials, textures, and animations in a compact package designed for fast loading.
Why a copied .gltf file can lose its triangle
Suppose scene.gltf describes one triangle. Its position data contains three vertices, each with three 32-bit floats: 3 × 3 × 4 = 36 bytes. If the buffer entry is {"byteLength":36,"uri":"mesh/triangle.bin"}, the JSON describes where to find the coordinates. The coordinates are in a separate file.
After copying only the JSON to a new folder, the reader looks for mesh/triangle.bin relative to the new location. Copy that folder too, or update the URI to match the new relative path. Check that the file contains the expected 36 position bytes. A successful JSON parse or matching length alone cannot verify the coordinates or prove the model will render.
Before sharing a larger model, check the URI entries in both buffers and images. A data URI carries its bytes inside the JSON. A GLB can store the first buffer in a binary chunk and can still reference external resources. Inspect the actual entries when deciding which files to send. Khronos glTF 2.0 specification
Typical use cases
- Web 3D
- Real-time rendering
- AR/VR assets
- Game asset exchange
Advantages
- Designed for web 3d
- None storage
- Open standard specification
- Browser support: Rendered natively by many WebGL tools and platforms
Disadvantages
- External buffers and textures must travel with the asset
- A GLB can still refer to external resources
- Not a CAD exchange format
How to open or use it
Open glTF files with an application that supports model/gltf+json. Editable in modern 3D tools and engines. For delivery, use a viewer or converter that reads gltf, glb.