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 318 forks source link

Materials with roughness texture dont export correctly #2228

Closed maoliver-amd closed 4 months ago

maoliver-amd commented 4 months ago

Describe the bug When exporting a material that has a single texture attached to the roughness parameter the final exported texture used by GLTF does not include the data from the roughness texture. GLTF export combines both metallicity and roughness into a single texture, however it appears that the roughness texture is not correctly being transferred to the ouput combined GLTF texture

To Reproduce Steps to reproduce the behavior:

  1. Create a material with a texture connected to the roughness parameter
  2. Export GLTF
  3. Compare exported combined metal+rough texture which will just be an all white texture (roughness should be in the GREEN channel)

Expected behavior Since only the roughness texture is attached the generated texture should have its green channel set to the input texture while all other channels should be set to 255 (assuming 8bit)

Screenshots Example material:

Texture attached to roughness:

Texture exported with GLTF:

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

Version

Edit: Ignore as was fault on my end.

julienduroure commented 4 months ago

Hello, Yes, can not find any issue here: