Page MenuHome

Materials export blank if unconnected Principled BSDF node is anywhere in a "Background" material during gltf 2.0 export
Confirmed, NormalPublicKNOWN ISSUE

Description

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce RTX 2080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 451.67

Blender Version
Broken: version: 2.83.2, branch: master, commit date: 2020-07-09 05:50, hash: rB239fbf7d936f
Worked: none?

Short description of error
If there's a Principled BSDF shader anywhere in the material in node editor, even if it's unconnected to anything, and have a Background node connected to surface it will ignore any connected images or colors and export blank white every time.

Exact steps for others to reproduce the error
Make a material, unconnect the Principled BSDF node from material output, change surface type of the material to "Background", change the color or connect a image texture in node editor. File > Export > gltf 2.0, export with materials selected. Import the .glb into another program or back into blender, the texture wasn't exported and the color of the Background node is ignored and will appear pure white.

Event Timeline

Casey (BagelCo) renamed this task from Materials export blank if unconnected Principled BSDF node is anywhere in the material during gltf 2.0 export to Materials export blank if unconnected Principled BSDF node is anywhere in a "Background" material during gltf 2.0 export.Jul 14 2020, 9:13 PM
Casey (BagelCo) created this task.
Casey (BagelCo) updated the task description. (Show Details)
Julien DUROURE (julien) changed the task status from Needs Triage to Confirmed.Thu, Sep 17, 9:55 PM
Julien DUROURE (julien) changed the subtype of this task from "Report" to "Known Issue".

Thanks for this report.
I just committed a first work around about it on d7d2bad09f8c04d3e86081481fc700ae3c834800
Now you can mute your principled shader, it will be ignore.

Next step and discussion will take place on upstream repository : https://github.com/KhronosGroup/glTF-Blender-IO/issues/1213