Materials export blank if unconnected Principled BSDF node is anywhere in a "Background" material during gltf 2.0 export #78926

Closed
opened 2020-07-14 21:13:02 +02:00 by Casey · 6 comments

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: blender/blender@239fbf7d93
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.

**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: `blender/blender@239fbf7d93` 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.
Author

Added subscriber: @Casey-3

Added subscriber: @Casey-3
Casey changed title 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 2020-07-14 21:13:22 +02:00
Member

Added subscriber: @JulienDuroure

Added subscriber: @JulienDuroure
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Thanks for this report.
I just committed a first work around about it on d7d2bad09f
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

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
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Julien Duroure self-assigned this 2020-12-01 15:11:26 +01:00
Member

Fixed by 5088c8d9d7

Fixed by 5088c8d9d735
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#78926
No description provided.