glTF-Blender-IO icon indicating copy to clipboard operation
glTF-Blender-IO copied to clipboard

Unexpected or out of bounds image index values for occlusion maps

Open mwbeene opened this issue 1 year ago • 3 comments

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:

  1. In Blender, create two objects with different materials
  2. In each material, add a glTF Material Output node and connect the same image to their Occlusion channels.
  3. Export as a gltf file
  4. 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 gltf-export_01 gltf-export_02 gltf-export_03

.blend file/ .gltf Link to blend file and resulting/expected gltf files

Version

  • OS: Windows
  • Blender Version 3.4, 3.5, 3.6

mwbeene avatar Sep 07 '23 14:09 mwbeene