Principled shader does not interoperate nicely with texture alpha transparency #52189

Closed
opened 2017-07-25 16:51:12 +02:00 by Lindsay Patten · 5 comments

System Information
Windows 10, GeForce GTX 1060 6GB

Blender Version
Broken: 2.78 Hash 248bba81e7 (blender-2.79-testbuild2-windows64)
Worked: (optional)

Short description of error
It is difficult to use the Principled shader with image textures with alpha channels. The transmission input requires an inversion from the alpha channel. Because the transmission is multiplied by base color and the color output from an image texture is black where the alpha channel is zero areas that should be transparent are opaque black. For complete transparency you can mix the color output with white using the alpha channel as the mix factor, which is clumsy, but that doesn't work for partial transparency. Also, complete transparency produces prominent noise that takes many samples (more than 1000) to remove.

Exact steps for others to reproduce the error
Just open the blend file and compare the rendering using diffuse, transparent, glossy nodes versus with principled shader (on right). The white block in the center is a reflection from an area light.
Blender file: TransparencyTest.blend
Texture file: TransparencyTest2.png
Rendered result: TransparencyTestRendered.png
On material.003 if you use the output of the mix node it will work for full transparency or opacity but not partial transparency.
TransparencyTestWithMixRendered.png
If you set IOR to 1.0 then you lose the reflection:
TransparencyTestWithIORRendered.png

**System Information** Windows 10, GeForce GTX 1060 6GB **Blender Version** Broken: 2.78 Hash 248bba81e7a (blender-2.79-testbuild2-windows64) Worked: (optional) **Short description of error** It is difficult to use the Principled shader with image textures with alpha channels. The transmission input requires an inversion from the alpha channel. Because the transmission is multiplied by base color and the color output from an image texture is black where the alpha channel is zero areas that should be transparent are opaque black. For complete transparency you can mix the color output with white using the alpha channel as the mix factor, which is clumsy, but that doesn't work for partial transparency. Also, complete transparency produces prominent noise that takes many samples (more than 1000) to remove. **Exact steps for others to reproduce the error** Just open the blend file and compare the rendering using diffuse, transparent, glossy nodes versus with principled shader (on right). The white block in the center is a reflection from an area light. Blender file: [TransparencyTest.blend](https://archive.blender.org/developer/F678541/TransparencyTest.blend) Texture file: ![TransparencyTest2.png](https://archive.blender.org/developer/F678543/TransparencyTest2.png) Rendered result: ![TransparencyTestRendered.png](https://archive.blender.org/developer/F678546/TransparencyTestRendered.png) On material.003 if you use the output of the mix node it will work for full transparency or opacity but not partial transparency. ![TransparencyTestWithMixRendered.png](https://archive.blender.org/developer/F678550/TransparencyTestWithMixRendered.png) If you set IOR to 1.0 then you lose the reflection: ![TransparencyTestWithIORRendered.png](https://archive.blender.org/developer/F678556/TransparencyTestWithIORRendered.png)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @LindsayPatten

Added subscriber: @LindsayPatten

Added subscriber: @brecht

Added subscriber: @brecht

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Brecht Van Lommel self-assigned this 2017-07-25 18:14:25 +02:00

Thanks for the report, but these are known limitations that we want to fix, but don't consider a bug.

  • We plan to add an Opacity / Alpha socket to the Principled BSDF node.
  • Note that there is a difference between transparency (which behaves as if the geometry is absent, like cutout tree leaves) and transmission (like glass). Transparency is often textured, but for transmission that's relatively rare and would typically be a separate texture, not the alpha channel of an RGBA texture.
  • We can't really change the base color / transmission behavior to make this case easier, since we are trying to be compatible with shaders in other software.
  • Regarding noise, branched path tracing tends to be better at rendering this. We want to improve the regular path trace sampling here, but that's not a bug currently.
Thanks for the report, but these are known limitations that we want to fix, but don't consider a bug. * We plan to add an Opacity / Alpha socket to the Principled BSDF node. * Note that there is a difference between transparency (which behaves as if the geometry is absent, like cutout tree leaves) and transmission (like glass). Transparency is often textured, but for transmission that's relatively rare and would typically be a separate texture, not the alpha channel of an RGBA texture. * We can't really change the base color / transmission behavior to make this case easier, since we are trying to be compatible with shaders in other software. * Regarding noise, branched path tracing tends to be better at rendering this. We want to improve the regular path trace sampling here, but that's not a bug currently.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
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#52189
No description provided.