I cannot for the life of me figure out why my Anvil model from the famous Guru Blender series tutorial will not export to a glb file for use with WebGL. Since I made it in Blender 2.79b, I have been opening it up in Blender 2.8 and have tried exporting as a glb, gltf, and gltf with separate files.

None of them show all the textures, normal maps, and material design when using glTF Viewer online; the closest I have come is using the GLB packer, but it turns out unlike the Blender file render at all. I have had errors saying a node was empty, which I have no idea where that's at, and I also have had errors saying the images are not a power of 2. When resizing the images even to powers of 2, still doesn't work. I'm completely lost.

I've attached the original blender files that I created in a download link to pcloud, as well as the way the blender render looks and needs to look as a glb. Please help in showing me how to export everything so all the materials and textures are in a glb format and available for viewing on WebGL!!



glTF 2.0 has a specific PBR material model, for transfer to realtime rendering engines. It cannot support arbitrary arrangements of Blender nodes, as WebGL wouldn't be able to handle realtime rendering of arbitrarily complex Blender nodes. Instead, the glTF material definition has a strict number of fields, corresponding to a particular interpretation of physically-based materials.

The Blender Manual documents how to export materials to glTF. The short version is, you'll need to adapt your material node setup to use primarily images connected to the Principled BSDF node.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.