KhronosGroup / glTF-Blender-IO

Blender glTF 2.0 importer and exporter
https://docs.blender.org/manual/en/latest/addons/import_export/scene_gltf2.html
Apache License 2.0
1.48k stars 316 forks source link

Textures Not Included in GLB File #2219

Closed okamototomoyuki closed 4 months ago

okamototomoyuki commented 4 months ago

Describe the bug When I export the attached .blend file to .glb, the textures are not included.

To Reproduce

  1. Open the attached .blend file in Blender 4.1.
  2. Navigate to File > Export > glTF 2.0.
  3. Use the following settings and press the Export glTF 2.0 button: Format: glTF Binary (.glb) Include > Limit to: Active Scene
  4. Open the exported .glb file in a viewer such as https://gltf-viewer.donmccurdy.com/.

Expected behavior The textures should be displayed.

Screenshots image

.blend file/ .gltf (mandatory) model.zip

Version

Additional context

julienduroure commented 4 months ago

Hello,

image

Your node tree is not compatible with glTF shader specification. glTF is either based on PBR setup, or unlit. Not all nodes can be translated in glTF specification, so we can't export your shader into glTF.

I can recommend you to simplify your setup, or to bake your material into a compatible PBR or unlit setup

You can refer to the documentation to check what is compatible:

https://docs.blender.org/manual/en/4.0/addons/import_export/scene_gltf2.html#exporting-a-shadeless-unlit-material https://docs.blender.org/manual/en/4.0/addons/import_export/scene_gltf2.html#example

Closing this ticket

okamototomoyuki commented 4 months ago

Thank you for the confirmation.
I was simply exporting the content as it was imported using the VRM importer, so I hadn't realized there was an issue with the shader. I will fix the shader.