glTF-Blender-IO
glTF-Blender-IO copied to clipboard
Unexpected or out of bounds image index values for occlusion maps
Describe the bug When exporting multiple meshes with the "glTF Material Output" and the same occlusion texture image in each, unexpected image indices appear in the gltf. This causes problems for the Kronos compression tool.
To Reproduce Steps to reproduce the behavior:
- In Blender, create two objects with different materials
- In each material, add a glTF Material Output node and connect the same image to their Occlusion channels.
- Export as a gltf file
- Note the index values for the occlusion texture are different and may be out of bounds.
Expected behavior The occlusionTexture index value should be the same for all materials using the same image
Screenshots
.blend file/ .gltf Link to blend file and resulting/expected gltf files
Version
- OS: Windows
- Blender Version 3.4, 3.5, 3.6