glTF, the GL Transmission Format, is an open, royalty-free specification from the Khronos Group for transmitting and loading ready-to-render 3D scenes with minimal processing at runtime. Within 3D file formats & pipelines, it occupies the delivery end of the chain: artists author assets in digital content creation tools, and glTF carries the finished meshes, materials, animations and scene hierarchy to web viewers, game engines, AR applications and e-commerce configurators.
The format is often described as the “JPEG of 3D” because it optimizes for compact transfer and fast decoding rather than for editing. In 3D graphics & animation work, that design choice explains both its strengths and its limits.
How glTF structures a 3D asset
A glTF asset consists of a JSON scene description plus binary buffers and image files. The JSON part declares nodes, meshes, materials, cameras, skins and animations, while the heavy numeric data, such as vertex positions and indices, lives in binary buffers that a GPU can consume almost directly.
The key mechanism is the buffer, bufferView and accessor chain. A buffer is a raw block of bytes, a bufferView slices that block into a region, and an accessor describes how to interpret the region: component type, element count, stride and minimum and maximum bounds. Because accessors match the way graphics APIs bind vertex attributes, a loader can upload data to the GPU without parsing text or converting layouts.
The table below lists the main top-level objects in a glTF file and what each one contributes.
| Object | Purpose | Typical contents |
|---|---|---|
| scenes and nodes | Scene graph hierarchy | Transforms, parent-child links, mesh references |
| meshes | Geometry | Primitives with attributes, indices, morph targets |
| materials | Surface appearance | PBR factors and texture references |
| accessors | Typed views of binary data | Type, count, stride, min and max |
| skins | Skeletal binding | Joint list, inverse bind matrices |
| animations | Motion over time | Channels, samplers, keyframe interpolation |
glTF 2.0, PBR materials and extensions
The current version, glTF 2.0, was released in 2017 and replaced the shader-based materials of version 1.0 with a physically based rendering model. Its core material uses the metallic-roughness workflow: a base color, a metallic factor, a roughness factor, a normal map, an occlusion map and an emissive term. Every conforming viewer interprets these values the same way, so an asset looks consistent across renderers.
Capabilities beyond the core arrive through extensions, named with prefixes such as KHR_ for ratified Khronos extensions and EXT_ for multi-vendor ones. A file must list the extensions it uses and may mark some as required, which tells a loader to refuse the asset rather than render it wrongly. The following table shows widely used extensions.
| Extension | What it adds | Typical benefit |
|---|---|---|
KHR_draco_mesh_compression | Draco geometry compression | Much smaller mesh payloads |
EXT_meshopt_compression | Meshoptimizer buffer compression | Fast decoding, good ratios |
KHR_texture_basisu | KTX 2.0 supercompressed textures | Lower GPU memory use |
KHR_materials_transmission | Thin transparent surfaces | Realistic glass and plastics |
KHR_materials_variants | Switchable material sets | Product color options in one file |
KHR_lights_punctual | Point, spot and directional lights | Portable basic lighting |
Compression extensions deserve attention because they change the trade-off: Draco often shrinks geometry by an order of magnitude, but it costs decode time on the client and requires a decoder library, whereas meshopt decodes faster with somewhat lower ratios.
Separate files versus GLB packaging
A glTF asset can be stored in two physical forms that describe the same data. The text form uses a .gltf JSON file with external .bin and image files, while the binary form, GLB, packs JSON, buffers and images into one self-contained container with a short header and chunk structure.
The separate form is easier to inspect and diff, and individual textures can be cached or swapped. GLB avoids the roughly one-third size overhead of Base64-embedded data and reduces the number of HTTP requests, which is why most web delivery and asset stores prefer it. Embedding buffers as Base64 data URIs inside the JSON is permitted but is generally discouraged for production.
How glTF compares with other 3D formats
glTF is a last-mile delivery format, so it is best compared by role rather than by feature count. The table below places it among neighbors in the same pipeline.
| Format | Primary role | Openness | Notable limitation |
|---|---|---|---|
| glTF | Runtime delivery | Open Khronos standard | Not designed for lossless editing |
| OBJ | Simple geometry exchange | Open, informal | No animation, dated materials |
| FBX | DCC and engine interchange | Proprietary Autodesk SDK | Version and exporter inconsistencies |
| USD | Large scene composition | Open source | Heavier runtime footprint |
| Alembic | Baked geometry caches | Open source | No materials or rigs |
| COLLADA | Authoring interchange | Open Khronos standard | Verbose XML, slow loading |
In practice, studios often author and assemble in USD or native files and export to glTF at the end of the pipeline. USDZ fills a similar delivery role in Apple’s AR ecosystem, and many platforms accept both formats side by side.
Preparing and validating glTF files
A reliable glTF export follows a short checklist. Geometry should be triangulated with applied transforms, textures should use power-of-two or at least reasonable sizes, and the scene should use meters as units with Y-up orientation, which the specification mandates.
- Run the Khronos glTF Validator to catch invalid accessors, missing required extensions and broken references.
- Bake procedural shaders into image textures, because node-based materials from DCC tools do not export directly.
- Pack occlusion, roughness and metallic data into the ORM channel layout expected by the core material.
- Apply mesh and texture compression only after checking that target viewers support the extensions.
The table below links frequent symptoms to their usual causes and remedies.
| Symptom | Likely cause | Fix |
|---|---|---|
| Model appears tiny or huge | Wrong unit scale at export | Apply scale, export in meters |
| Surfaces look too shiny or flat | Roughness and metallic channels swapped | Repack into correct ORM channels |
| Normal map looks inverted | DirectX green channel convention | Flip green channel to OpenGL style |
| Asset fails to load in a viewer | Unsupported required extension | Remove or make the extension optional |
| Large download size | Uncompressed geometry and PNG textures | Use Draco or meshopt and KTX 2.0 |
Limitations and common misconceptions
glTF deliberately omits authoring data such as modifier stacks, construction history, NURBS surfaces and procedural node graphs. Treating it as a round-trip editing format is the most common mistake, because re-importing a glTF into a modeling tool returns baked triangles, not the original editable setup.
Other misconceptions concern scope. glTF does not guarantee identical lighting across viewers, since environment maps, tone mapping and post-processing remain the responsibility of the renderer. Its animation model supports skinning, morph targets and transform keyframes, but complex rig constraints, cloth simulation and particle systems must be baked before export.
In everyday language
glTF is a way of packing a 3D object so any app can show it quickly. Think of it as a shipping box built for delivery: the shape, the colors, the shine and any movement all go inside, arranged so the receiving program can unpack them almost instantly.
Designers still build their models in their favorite software. When the work is done, they export a glTF or GLB file so it can appear on a website, in a phone app or in a game. It is meant for showing finished 3D content, not for editing it later.
Seen in the real world
A furniture retailer wants shoppers to rotate a sofa in the browser and place it in their living room with augmented reality. The 3D team models the sofa in a DCC tool at about 400,000 triangles with 4K fabric textures, which produces a source file well over 200 MB.
For delivery, they decimate the mesh to roughly 60,000 triangles, bake the fabric detail into normal and ORM textures, and export a single GLB. Draco compression and KTX 2.0 textures bring the file down to about 4 MB. The KHR_materials_variants extension stores six fabric colors in that one file, so the product page switches upholstery instantly without new downloads.
The result is a fast-loading, consistent 3D product view that the same file serves to the web viewer and the Android AR viewer, while a USDZ export covers iOS devices.