Cycles fully transparent shader is brighter when a Clear Coat shader is behind it #99087

Closed
opened 2022-06-22 12:51:43 +02:00 by baoyu · 9 comments

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

Blender Version
Broken: version: 3.3.0 Alpha, branch: master, commit date: 2022-06-05 19:05, hash: 8589f60546
Worked: Never Worked

Short description of error
When doing Decals, we often use alpha channel to define transparent area. However, I found when the Object's base color is above hsl(h,s,0.01), who's under the Decal, then the decal's transparent area will affect the underneath object's shading.
My test configuration is that 2048 viewport samples alongwith light bounces param all been set to 64.
The BUG is easier to notice when the background object is light grey, and the light is quite dimmed(or just turn down the exposure in colormangement to observe.)
image.png

image.png

Please open the attached Blend file to test.
Transparent shading BUG.blend

**System Information** Operating system: Windows-10-10.0.22000-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 2080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 471.68 **Blender Version** Broken: version: 3.3.0 Alpha, branch: master, commit date: 2022-06-05 19:05, hash: `8589f60546` Worked: Never Worked **Short description of error** When doing Decals, we often use alpha channel to define transparent area. However, I found when the Object's base color is above hsl(h,s,0.01), who's under the Decal, then the decal's transparent area will affect the underneath object's shading. My test configuration is that 2048 viewport samples alongwith light bounces param all been set to 64. The BUG is easier to notice when the background object is light grey, and the light is quite dimmed(or just turn down the exposure in colormangement to observe.) ![image.png](https://archive.blender.org/developer/F13216472/image.png) ![image.png](https://archive.blender.org/developer/F13216481/image.png) Please open the attached Blend file to test. [Transparent shading BUG.blend](https://archive.blender.org/developer/F13216477/Transparent_shading_BUG.blend)
Author

Added subscriber: @baoyu

Added subscriber: @baoyu
Member

Added subscriber: @OmarEmaraDev

Added subscriber: @OmarEmaraDev
Member

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

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

The issue seems to be with Clear Coat in Principled BSDF in this case. A simpler example is to have two planes, the lower one has a default Principled BSDF with Clear Coat set to 1, while the upper plane has a completely transparent shader. A lamp is positioned away from them along the x axis.

One would expect no different since the upper plane is transparent, but it seems to be less noisy and brighter.

20220622-143611.png

cyclesTransparentClearCoat.blend

The issue seems to be with Clear Coat in Principled BSDF in this case. A simpler example is to have two planes, the lower one has a default Principled BSDF with Clear Coat set to 1, while the upper plane has a completely transparent shader. A lamp is positioned away from them along the x axis. One would expect no different since the upper plane is transparent, but it seems to be less noisy and brighter. ![20220622-143611.png](https://archive.blender.org/developer/F13216840/20220622-143611.png) [cyclesTransparentClearCoat.blend](https://archive.blender.org/developer/F13216843/cyclesTransparentClearCoat.blend)
Omar Emara changed title from Cycles Transparent shading BUG to Cycles fully transparent shader is brighter when a Clear Coat shader is behind it 2022-06-22 14:42:23 +02:00
Author

This comment was removed by @baoyu

*This comment was removed by @baoyu*
Author

In #99087#1378537, @OmarEmaraDev wrote:
The issue seems to be with Clear Coat in Principled BSDF in this case. A simpler example is to have two planes, the lower one has a default Principled BSDF with Clear Coat set to 1, while the upper plane has a completely transparent shader. A lamp is positioned away from them along the x axis.

One would expect no different since the upper plane is transparent, but it seems to be less noisy and brighter.

20220622-143611.png

cyclesTransparentClearCoat.blend

Indeed, you got the fundamental cause of the problem.

> In #99087#1378537, @OmarEmaraDev wrote: > The issue seems to be with Clear Coat in Principled BSDF in this case. A simpler example is to have two planes, the lower one has a default Principled BSDF with Clear Coat set to 1, while the upper plane has a completely transparent shader. A lamp is positioned away from them along the x axis. > > One would expect no different since the upper plane is transparent, but it seems to be less noisy and brighter. > > ![20220622-143611.png](https://archive.blender.org/developer/F13216840/20220622-143611.png) > > [cyclesTransparentClearCoat.blend](https://archive.blender.org/developer/F13216843/cyclesTransparentClearCoat.blend) Indeed, you got the fundamental cause of the problem.
Author

I can confirm that this BUG still exists in the Principled BSDF v2 branch, yet not been fixed.

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

Blender Version
Broken: version: 3.4.0 Alpha, branch: principled-v2, commit date: 2022-10-30 15:33, hash: 45cd4c9c82
Worked: never

Exact steps for others to reproduce the error
Open the demo blend files provided in the previous posts.

image.png
While this time when the clearcoat roughness been set to 0, the problem's gone.
image.png

I can confirm that this BUG still exists in the Principled BSDF v2 branch, yet not been fixed. **System Information** Operating system: Windows-10-10.0.22621-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 2080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 526.47 **Blender Version** Broken: version: 3.4.0 Alpha, branch: principled-v2, commit date: 2022-10-30 15:33, hash: `45cd4c9c82` Worked: never **Exact steps for others to reproduce the error** Open the demo blend files provided in the previous posts. ![image.png](https://archive.blender.org/developer/F13962199/image.png) While this time when the clearcoat roughness been set to 0, the problem's gone. ![image.png](https://archive.blender.org/developer/F13962203/image.png)
Philipp Oeser removed the
Interest
Render & Cycles
label 2023-02-09 14:03:47 +01:00
Author

I can confirm that this BUG still exists in the 4.0 alpha.

I can confirm that this BUG still exists in the 4.0 alpha.
Author

this BUG has been resolved in the recent 4.0 alpha builds!

this BUG has been resolved in the recent 4.0 alpha builds!
baoyu closed this issue 2023-09-23 15:44:05 +02:00
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2023-09-23 15:44:07 +02:00
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#99087
No description provided.