Subsurface Scattering Radius issue with low values or zero in RGB channels #71049

Open
opened 2019-10-23 20:12:35 +02:00 by Rombout Versluijs · 9 comments

System Information
Operating system: Darwin-15.6.0-x86_64-i386-64bit 64 Bits
Graphics card: Intel Iris Pro OpenGL Engine Intel Inc. 4.1 INTEL-10.14.74

Blender Version
Broken: version: 2.81 (sub 9), branch: master, commit date: 2019-09-09 17:22, hash: 6be3348505
Worked: (optional)

Short description of error
When using Scattering Radius, we can adjust the scattering effect per RGB channel. The problem is when one of these values is very low, near to zero. We see a reflection on the surface of that channel.

Exact steps for others to reproduce the error
01 object with principle shader and set Scatter Radius to R=.6, G=.35, B=0, basic gray color diffuse, soft roughness
02 Add HDR with strong lighting from 1 side and add perhaps sunlight (power 1, angle 5deg)
03 You see a blueish highlight apear on this material

See attached scene and example shots
left bl 2.79 - right bl2.81 > alterered material darker for better highlight
principle_diffuseolcor-normals.png

left bl 2.81 - right bl2.79
world-glossy-light-pass_diff_bl279vsbl280.png

left bl 2.81 with Scatter Radius Blue 0.02 - right bl2.80 with Scatter Radius Blue 0.00
bl-279-vs-bl280_Scatter-Radius-Blue0.png

Here's another example, simplified material to show the scatter effect. Left is bl280 right is bl279
bl280-vs-bl279_diffusecol-normals-sssradius.png

Is it perhaps due to the number 0 that blue light shows at the surface of a model? This cause weird reflections. I bumped into this from a scene from Rico Cilliers. I believe it was made in an Beta bl 2.80 in december 2018

After some talk with him, he noted that there an issue with Scatter Radius in the beginning. Number of zero or near zero would cause this weird haze/reflection.

**System Information** Operating system: Darwin-15.6.0-x86_64-i386-64bit 64 Bits Graphics card: Intel Iris Pro OpenGL Engine Intel Inc. 4.1 INTEL-10.14.74 **Blender Version** Broken: version: 2.81 (sub 9), branch: master, commit date: 2019-09-09 17:22, hash: `6be3348505` Worked: (optional) **Short description of error** When using Scattering Radius, we can adjust the scattering effect per RGB channel. The problem is when one of these values is very low, near to zero. We see a reflection on the surface of that channel. **Exact steps for others to reproduce the error** 01 object with principle shader and set Scatter Radius to R=.6, G=.35, B=0, basic gray color diffuse, soft roughness 02 Add HDR with strong lighting from 1 side and add perhaps sunlight (power 1, angle 5deg) 03 You see a blueish highlight apear on this material See attached scene and example shots left bl 2.79 - right bl2.81 > alterered material darker for better highlight ![principle_diffuseolcor-normals.png](https://archive.blender.org/developer/F7850742/principle_diffuseolcor-normals.png) left bl 2.81 - right bl2.79 ![world-glossy-light-pass_diff_bl279vsbl280.png](https://archive.blender.org/developer/F7850744/world-glossy-light-pass_diff_bl279vsbl280.png) left bl 2.81 with Scatter Radius Blue 0.02 - right bl2.80 with Scatter Radius Blue 0.00 ![bl-279-vs-bl280_Scatter-Radius-Blue0.png](https://archive.blender.org/developer/F7850749/bl-279-vs-bl280_Scatter-Radius-Blue0.png) Here's another example, simplified material to show the scatter effect. Left is bl280 right is bl279 ![bl280-vs-bl279_diffusecol-normals-sssradius.png](https://archive.blender.org/developer/F7850764/bl280-vs-bl279_diffusecol-normals-sssradius.png) Is it perhaps due to the number 0 that blue light shows at the surface of a model? This cause weird reflections. I bumped into this from a scene from Rico Cilliers. I believe it was made in an Beta bl 2.80 in december 2018 After some talk with him, he noted that there an issue with Scatter Radius in the beginning. Number of zero or near zero would cause this weird haze/reflection.

Added subscriber: @RomboutVersluijs

Added subscriber: @RomboutVersluijs

Ive tried making simple scene with the material from scratch. It didnt show the effect that strong, so i imported the material and made it as plain as possible.

See below with and without textures for diffuse, specular, roughness and normal mapping.
Ive also added the simple sphere scene with lights and hdr
compare-shots-scatter-radius.jpg
subsurface_small_radius_cleaned.blend
scatter-radius-issue.png

Perhaps its could also be due to the normals. I noticed that normal maps are shown pretty weird in bl 2.80 They look jagged and wrong, but not sure if that is connected. Left is blender 2.80 and right is blender 2.79 I tried replicating this image, but i cant remember what i did here. I was testing all the maps to find the issue with the blue scatter or reflections. Somehow i got this image and tested it both in bl 2.79 and a couple of 2.80 versions. Now i dont know anymore what setup i used. But i dont think this matters to this subject
Head-normals_bl279-vs-bl280.png

Ive tried making simple scene with the material from scratch. It didnt show the effect that strong, so i imported the material and made it as plain as possible. See below with and without textures for diffuse, specular, roughness and normal mapping. Ive also added the simple sphere scene with lights and hdr ![compare-shots-scatter-radius.jpg](https://archive.blender.org/developer/F7851521/compare-shots-scatter-radius.jpg) [subsurface_small_radius_cleaned.blend](https://archive.blender.org/developer/F7851523/subsurface_small_radius_cleaned.blend) ![scatter-radius-issue.png](https://archive.blender.org/developer/F7851529/scatter-radius-issue.png) Perhaps its could also be due to the normals. I noticed that normal maps are shown pretty weird in bl 2.80 They look jagged and wrong, but not sure if that is connected. Left is blender 2.80 and right is blender 2.79 I tried replicating this image, but i cant remember what i did here. I was testing all the maps to find the issue with the blue scatter or reflections. Somehow i got this image and tested it both in bl 2.79 and a couple of 2.80 versions. Now i dont know anymore what setup i used. But i dont think this matters to this subject ![Head-normals_bl279-vs-bl280.png](https://archive.blender.org/developer/F7851525/Head-normals_bl279-vs-bl280.png)

Here's another interesting comparing shot. Ive used a cylinder which tapers on the inside from thin to thick. Than i used the same mat, but each time had 2 of the Scatter Radius settings to 1 but leave on at 0. Notice how the one with green at zero shows a lot of green on the surface. While the other dont show that, the blue does show it a bit, but red does, not.

For this one i used neutral greys for color and for scatter color.

Ive added an updated file with the Cylinders ready to render. My knowledge of all these physics laws are not developed
well enough to know if this is correct.

Scatter-radius__netraldif-ssscolor.png
subsurface_small_radius_cleaned.blend

Here's another interesting comparing shot. Ive used a cylinder which tapers on the inside from thin to thick. Than i used the same mat, but each time had 2 of the Scatter Radius settings to 1 but leave on at 0. Notice how the one with green at zero shows a lot of green on the surface. While the other dont show that, the blue does show it a bit, but red does, not. For this one i used neutral greys for color and for scatter color. Ive added an updated file with the Cylinders ready to render. My knowledge of all these physics laws are not developed well enough to know if this is correct. ![Scatter-radius__netraldif-ssscolor.png](https://archive.blender.org/developer/F7851816/Scatter-radius__netraldif-ssscolor.png) [subsurface_small_radius_cleaned.blend](https://archive.blender.org/developer/F7851823/subsurface_small_radius_cleaned.blend)

Added subscribers: @Sergey, @mano-wii

Added subscribers: @Sergey, @mano-wii

@Sergey, could you take a look?

@Sergey, could you take a look?

This needs a deeper look.

This needs a deeper look.

Added subscriber: @brecht

Added subscriber: @brecht

The problem here is that the use of Glossy Depth in the world shader nodes, which disables the world lighting for glossy shaders.

The way Cycles does BSDF sampling with MIS, a soft glossy ray can still contribute to diffuse shaders. This helps reduce noise, but breaks some of these shader tricks. The solution would be to remove that optimization for regular cases, or to evaluate the world shader twice, both of which are bad for performance. This is a known limitation currently.

For this specific case, the zero radius affects how we sample since the zero radius is handles as a diffuse BSDF instead of SSS. It may be possible to find some solution for that, though generally I would not recommend a world shader that is completely different for diffuse and glossy.

The problem here is that the use of Glossy Depth in the world shader nodes, which disables the world lighting for glossy shaders. The way Cycles does BSDF sampling with MIS, a soft glossy ray can still contribute to diffuse shaders. This helps reduce noise, but breaks some of these shader tricks. The solution would be to remove that optimization for regular cases, or to evaluate the world shader twice, both of which are bad for performance. This is a known limitation currently. For this specific case, the zero radius affects how we sample since the zero radius is handles as a diffuse BSDF instead of SSS. It may be possible to find some solution for that, though generally I would not recommend a world shader that is completely different for diffuse and glossy.

Added subscriber: @SteffenD

Added subscriber: @SteffenD
Philipp Oeser removed the
Interest
Render & Cycles
label 2023-02-09 13:59:30 +01: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
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#71049
No description provided.