SSS effect disappears when Mix Shader Node includes Shader To RGB Node #100904

Closed
opened 2022-09-08 09:04:40 +02:00 by nagadomi · 9 comments

System Information
Operating system: Linux-5.15.0-47-generic-x86_64-with-glibc2.35 64 Bits
Graphics card: NVIDIA GeForce RTX 3070 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 515.65.01

Blender Version
Broken: version: 3.3.0, branch: master, commit date: 2022-09-06 15:39, hash: 0759f671ce
Worked: 2.93.9

Short description of error
SSS effect disappears when Mix Shader Node includes Shader To RGB Node.

Exact steps for others to reproduce the error

See the attached blend file and video.

sss_bug_report.blend
sss_bug_report.mp4

When the Factor of the Mix Shader Node is 0, the output of the Mix Shader Node is expected to be the same as the Principled BSDF Node.
According to the documentation this might be by design, but it worked fine in 2.93.

**System Information** Operating system: Linux-5.15.0-47-generic-x86_64-with-glibc2.35 64 Bits Graphics card: NVIDIA GeForce RTX 3070 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 515.65.01 **Blender Version** Broken: version: 3.3.0, branch: master, commit date: 2022-09-06 15:39, hash: `0759f671ce` Worked: 2.93.9 **Short description of error** SSS effect disappears when *Mix Shader Node* includes *Shader To RGB Node*. **Exact steps for others to reproduce the error** See the attached blend file and video. [sss_bug_report.blend](https://archive.blender.org/developer/F13467307/sss_bug_report.blend) [sss_bug_report.mp4](https://archive.blender.org/developer/F13467306/sss_bug_report.mp4) When the *Factor* of the *Mix Shader Node* is *0*, the output of the Mix Shader Node is expected to be the same as the *Principled BSDF Node*. According to the documentation this might be by design, but it worked fine in 2.93.
Author

Added subscriber: @nagadomi-4

Added subscriber: @nagadomi-4

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Looks like a variation of the same bug described in #100125

In the description of the commit 80859a6cb2 states that:

  • ShaderToRGB node will remove any SSR and SSS from a shader.

However, the manual states that:

(...) any upstream BSDF will be invisible (...)

So I'm still not sure if any downstream BSDF can work with ShaderToRGB + Screen Space Reflection.

Looks like a variation of the same bug described in #100125 In the description of the commit 80859a6cb2 states that: >- ShaderToRGB node will remove any SSR and SSS from a shader. However, the [manual ](https://docs.blender.org/manual/en/latest/render/shader_nodes/converter/shader_to_rgb.html) states that: > (...) any upstream BSDF will be invisible (...) So I'm still not sure if any downstream BSDF can work with ShaderToRGB + Screen Space Reflection.
Author

Personally, I believe that in the special case of MixShader with Factor at 0 or 1, it should perform as SwitchNode.
This is because ShaderEditor does not have SwitchNode and Mix * Node has been used instead.
I am not sure if this is possible with the current implementation of Blender.

Also this is not a strong request, I just wanted to make sure this is the intended behavior.

Personally, I believe that in the special case of MixShader with Factor at 0 or 1, it should perform as SwitchNode. This is because ShaderEditor does not have SwitchNode and Mix * Node has been used instead. I am not sure if this is possible with the current implementation of Blender. Also this is not a strong request, I just wanted to make sure this is the intended behavior.

Added subscriber: @PaindavoineRomain

Added subscriber: @PaindavoineRomain

Is there a workaround ? For instance I need to switch from a NPR shader to a realistic shader with a mix node, should I stop the render, unplug the node, then render again ?
I think there should be a bypass when the mix shader is set to 0 or 1.
Also, there is no way to use the result of the SSR to use on a shader with Shader to RGB ?

Is there a workaround ? For instance I need to switch from a NPR shader to a realistic shader with a mix node, should I stop the render, unplug the node, then render again ? I think there should be a bypass when the mix shader is set to 0 or 1. Also, there is no way to use the result of the SSR to use on a shader with Shader to RGB ?
Miguel Pozo self-assigned this 2022-11-17 13:02:30 +01:00

This issue was referenced by 6d7a067a83

This issue was referenced by 6d7a067a83bbae7ebb965e364eb9a6b8d0f333f3
Member

Changed status from 'Needs Developer To Reproduce' to: 'Resolved'

Changed status from 'Needs Developer To Reproduce' to: 'Resolved'
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
5 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#100904
No description provided.