Eevee - Objects in front of SSS (Subsurface Scattering) shaded objects cause bluish dispersion #65849

Closed
opened 2019-06-16 11:46:03 +02:00 by KiJeon · 20 comments

System Information
Windows 10 64-bit

Blender Version
Broken: 2.80 June 16, 01:02:51 - 87de71a8aaa

Short description of error
In Eevee, any objects occluding SSS shaded objects has bluish dispersion appearing at the point of occlusion.

Here's an example:
image.png
image.png

At first I thought it was a hair problem, but it's any object:
image.png
image.png

Exact steps for others to reproduce the error
Should be easily reproducible by setting the values for SSS radius to be 1, 0, 0, and placing an object in front.

Also attaching the example file:2.8 MonkeyHairTest.blend

**System Information** Windows 10 64-bit **Blender Version** Broken: 2.80 June 16, 01:02:51 - `87de71a8aaa` **Short description of error** In Eevee, any objects occluding SSS shaded objects has bluish dispersion appearing at the point of occlusion. Here's an example: ![image.png](https://archive.blender.org/developer/F7105616/image.png) ![image.png](https://archive.blender.org/developer/F7105618/image.png) At first I thought it was a hair problem, but it's any object: ![image.png](https://archive.blender.org/developer/F7105622/image.png) ![image.png](https://archive.blender.org/developer/F7105624/image.png) **Exact steps for others to reproduce the error** Should be easily reproducible by setting the values for SSS radius to be 1, 0, 0, and placing an object in front. Also attaching the example file:[2.8 MonkeyHairTest.blend](https://archive.blender.org/developer/F7105626/2.8_MonkeyHairTest.blend)
Author

Added subscriber: @0o00o0oo

Added subscriber: @0o00o0oo

#71608 was marked as duplicate of this issue

#71608 was marked as duplicate of this issue
Clément Foucault self-assigned this 2019-06-19 23:01:41 +02:00

This is a limitation of eevee's SSS. The occluders have infinite thickness.

This is a limitation of eevee's SSS. The occluders have infinite thickness.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Author

@fclem Is there a good way around this problem? Or are there plans to remedy it?

As it stands, in situations like this, the results are sadly unusable.

@fclem Is there a good way around this problem? Or are there plans to remedy it? As it stands, in situations like this, the results are sadly unusable.

We could add a thickness option for the SSS, similar to the one the SSR have.

We could add a thickness option for the SSS, similar to the one the SSR have.

Added subscriber: @jeacom

Added subscriber: @jeacom

This is a terrible problem, it'll make SSS unviable for characters.

This is a terrible problem, it'll make SSS unviable for characters.

@fclem I'm not into shaders but isn't there a way to mask out the non-sss material pixels influence on the blurring kernel?

Edit:
It seems actually like they are already being masked but if I get it right the more non-sss pixels the blur kernel has to ignore, the darker is the resulting pixel, maybe if you normalize the resulting color relative to the amount of SSS pixels in the kernel?

@fclem I'm not into shaders but isn't there a way to mask out the non-sss material pixels influence on the blurring kernel? Edit: It seems actually like they are already being masked but if I get it right the more non-sss pixels the blur kernel has to ignore, the darker is the resulting pixel, maybe if you normalize the resulting color relative to the amount of SSS pixels in the kernel?

@jeacom We cannot do this because we cannot distinguish between pixels that are unlit from pixels comming from another object at this point in the pipeline. The lighting is masked before doing the SSS passes.

But the idea is good and that's what we will eventually do if we can in the future.

@jeacom We cannot do this because we cannot distinguish between pixels that are unlit from pixels comming from another object at this point in the pipeline. The lighting is masked before doing the SSS passes. But the idea is good and that's what we will eventually do if we can in the future.

This comment was removed by @jeacom

*This comment was removed by @jeacom*

@fclem just noticed that if we enable SSS on the occluder's material and set the SSS radius to 0, the problem goes away, presumably because the lighting mask gets disabled on the occluders?

@fclem just noticed that if we enable SSS on the occluder's material and set the SSS radius to 0, the problem goes away, presumably because the lighting mask gets disabled on the occluders?

Because the lighting does "bleed" from the occluder to the SSS object. This becomes a problem when the occluder recieves more light than the occludee.

Because the lighting does "bleed" from the occluder to the SSS object. This becomes a problem when the occluder recieves more light than the occludee.

In #65849#711500, @fclem wrote:
Because the lighting does "bleed" from the occluder to the SSS object. This becomes a problem when the occluder recieves more light than the occludee.

oh, I see.
So the color is being applied before the blur, not after.
If I enable separate albedo, the light bleeding disappears tho.
At least it looks viable to disable the light mask if sepparate albedo is enabled, this would fix the problem at the cost of the texture blur right?

I personally think the result looks better with separate albedo enabled anyway.

> In #65849#711500, @fclem wrote: > Because the lighting does "bleed" from the occluder to the SSS object. This becomes a problem when the occluder recieves more light than the occludee. oh, I see. So the color is being applied before the blur, not after. If I enable separate albedo, the light bleeding disappears tho. At least it looks viable to disable the light mask if sepparate albedo is enabled, this would fix the problem at the cost of the texture blur right? I personally think the result looks better with separate albedo enabled anyway.

image.png
image.png

I am convinced that if separate albedo is on, the best is to not mask the lighting.

![image.png](https://archive.blender.org/developer/F7562134/image.png) ![image.png](https://archive.blender.org/developer/F7562137/image.png) I am convinced that if separate albedo is on, the best is to not mask the lighting.

Added subscriber: @Stober-3

Added subscriber: @Stober-3
Author

It's unfortunate this task was closed as "invalid". Shouldn't it be left open until a solution can be found?

As it stands, it's a clear visual problem. I'm afraid being marked as "invalid" simply buries the issue and prevents a prompt to resolve it (unless this limitation is noted somewhere as problematic).

It's unfortunate this task was closed as "invalid". Shouldn't it be left open until a solution can be found? As it stands, it's a clear visual problem. I'm afraid being marked as "invalid" simply buries the issue and prevents a prompt to resolve it (unless this limitation is noted somewhere as problematic).
Contributor

Added subscriber: @Raimund58

Added subscriber: @Raimund58

Added subscriber: @geocentric_wage

Added subscriber: @geocentric_wage

Removed subscriber: @geocentric_wage

Removed subscriber: @geocentric_wage
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
7 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#65849
No description provided.