Blender GLB export: missing modifiers and materials (measured)
Blender's glTF exporter leaves modifiers out by default. We exported Mirror, Subdivision, Bevel and Array cubes and five material setups from Blender 4.2 LTS and 5.2 LTS and counted what reached the GLB.
Short answer. Apply Modifiers is off by default in Blender's glTF exporter (Blender 4.2 LTS and 5.2 LTS), so a GLB gets the mesh without its modifiers: our mirrored cube arrived with 12 triangles instead of 24, half of the model. Tick Data › Mesh › Apply Modifiers (in the export dialog) and every count matched. Plain Principled BSDF values, image textures and emission survive; procedural textures and Mix Shader do not.
What we measured
Four cubes with one modifier each, and five cubes with different materials. We exported the scene to GLB from Blender 5.2.4 LTS and from Blender 4.2.23 LTS, once with the default settings and once with Apply Modifiers on, then read each GLB's JSON (triangles per mesh, materials, textures) and compared it with the triangles Blender evaluates for the same objects. Script: medir_glb.py.
Modifiers
| Modifier on a cube | Triangles without modifiers | Triangles you see in Blender | Triangles in the GLB (defaults) | Triangles in the GLB (Apply Modifiers on) |
|---|---|---|---|---|
| Mirror | 12 | 24 | 12 | 24 |
| Subdivision Surface, level 2 | 12 | 192 | 12 | 192 |
| Bevel, 3 segments | 12 | 188 | 12 | 188 |
| Array, count 3 | 12 | 36 | 12 | 36 |
Both Blender versions gave the same counts. Blender's own tooltip for the option warns that applying modifiers prevents exporting shape keys.
That is what a GLB that looks different from the viewport often comes down to: half a model when it was built with Mirror, a low-poly shape when it relied on Subdivision Surface, hard edges instead of bevels. The file itself is valid, so nothing complains; the triangle count is the only quick tell.
Materials
glTF stores a fixed PBR material (base color, metallic, roughness, emission and a few extensions), not Blender's node tree. What reached the file:
| Material in Blender | What the GLB contains (Blender 5.2.4) |
|---|---|
| Principled BSDF: red base color, Metallic 1, Roughness 0.3 | base color 0.8 / 0.1 / 0.1; no texture; metallic 1, roughness 0.3 |
| Principled BSDF with green Emission Color, Emission Strength 5 | base color 0.8 / 0.8 / 0.8; no texture; metallic 0, roughness 0.5; emissive 0.11 / 1 / 0.22 × strength 4.5 |
| Image Texture node into Base Color | base color 1 / 1 / 1; with image texture; metallic 0, roughness 0.5 |
| Noise Texture node (procedural) into Base Color | base color 1 / 1 / 1; no texture; metallic 0, roughness 0.5 |
| Mix Shader (0.5) of a grey and a blue Principled BSDF | base color 0.1 / 0.1 / 0.9; no texture; metallic 0, roughness 0.5 Blender 4.2.23: base color 0.8 / 0.8 / 0.8; no texture; metallic 0, roughness 0.5 |
- Principled BSDF values came through as set (base color 0.8 / 0.1 / 0.1; no texture; metallic 1, roughness 0.3).
- Emission came through as a normalised color plus the
KHR_materials_emissive_strengthextension (strength 4.5): the product is the same light, but a viewer that does not support the extension uses strength 1, so the glow looks weaker there. - Image textures were embedded in the GLB (1 image).
- Procedural textures are lost: the Noise Texture material arrived as plain white with no texture. Bake it to an image first (Cycles › Bake) if you need it in the file.
- Mix Shader is not a 50/50 mix in the file: the GLB gets one of the two shaders, and which one changed between versions (Blender 5.2.4 kept the blue one, base color 0.1 / 0.1 / 0.9; 4.2.23 kept the grey one, 0.8 / 0.8 / 0.8).
Checking exports automatically
We make ExportProof, a Blender add-on that exports every selected mesh to its own file (its GLB presets export with Apply Modifiers on), re-imports each file and fails it if the triangle count or size does not match the mesh in your scene with modifiers applied, which is the mismatch in the first table. It also fails a GLB or FBX whose UV maps or materials got lost entirely. It does not compare material values or textures.
ExportProof on Gumroad · USD 7
More measured guides: FBX scale and rotation for Unity · Blender to Godot.