Eevee - No diffuse when using Clearcoat + Add shader #60802
Labels
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#60802
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Win 10 64
Graphics card: Nvidia 1060 6gb
Blender Version
Broken:
blender-2.80.0-git.dc3b5024be1a-windows64
Short description of error
When using Principled BSDF with Clearcoat, an Add Shader node, and Subsurface scattering turned on in the Render properties, the diffuse color turns black. The Material doesn't have to use SSS, mind you. It's just diffuse with no SSS. But the diffuse color still disappears if you turn Subsurface on the render properties itself.
Exact steps for others to reproduce the error
Using the blend file. The red color of the diffuse will come back if:
bug7.blend
Added subscriber: @moisessalvador
This comment was removed by @moisessalvador
Added subscriber: @WilliamReynish
Confirmed. But using an Add shader with nothing connected serves no purpose anyway, so not really much of a problem in practice I don't think.
I connected nothing in the second socket as a "simplest blend file" example. But in practice I was using it with emmissive shaders, and there it's a deal breaker
Another update. Turns out that plugging a texture into the Subsurface input of Principled BSDF throws another wrench into the mix. Not subsurface radius, which i know is not supported, but Subsurface. Meanwhile, using Subsurface just with a value doesn't break either the diffuse or the subsurface, at least during viewport.... sometimes... and using Separate Albedo in the render properties also can make things worse... sometimes...Let me explain:
It turns out that the render also fairs worse than the viewport, meaning that if in the viewport you have to turn off 1 or 2 of the things that can cause the black diffuse (clearcoat, a texture in Subsurface, separate albedo, mix shader, add shader or both) in rendertime you have to turn off 2 or 3, otherwise you get black in the render despite looking good in the viewport. Honestly, there are many permutations, but turning on subsurface on render properties, and adding or mixing another shader to principled seem to be the constant parts. It'd be a shame if this was just another known limitation considering that mixing Principled BSDF with other shaders is essential
Alright, so after some trial and error, I found a workaround, I still ask for this to be considered a bug though.
It seems that switching the sockets of the inputs on the Mix shader fixes this and other related problems, like the cubemaps disappearing from the specular reflection contribution, or reflections disappearing with the the Transparent shader, all the result of using the Mix or Add shader.
What I think it's happening is that, since some things can only be used once per material due to the limitations of Eevee, like screen space refractions/reflections and subsurface scattering, the system used to determine from which shader to use the one-allowed-thing is also disabling things that in principle shouldn't be affected, like diffuse, specular, the only subsurface in the entire nodetree, etc
I ask for this to be considered a bug since in the example nodetrees in the other socket of the Mix shader there are no other subsurface shaders, or other ss reflections. just emmissions, or transparencies...
This issue was referenced by
31fba57677
Changed status from 'Open' to: 'Resolved'