Shadow (Catcher) Bug: Black dots #98113

Closed
opened 2022-05-14 11:04:26 +02:00 by Michael Klein · 9 comments

System Information
Operating system: Windows-10-10.0.22000-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3080 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.59

Blender Version
Broken: version: 3.0.1 - 3.2.0 Beta, branch: master, commit date: 2022-05-12 16:38, hash: 018acc5688
Worked: Can't test with former versions (scene can't be loaded)

Short description of error
The shadow and shadow catcher pass show black dots in my example scene. Even the denoiser can't fix them.

Hi-Res Render:
220514_Blender_Cycles_Shadow_Bug_v003_Screenshot_01.jpg

50% Render:
220514_Blender_Cycles_Shadow_Bug_v003_Screenshot_02.jpg

Exact steps for others to reproduce the error

  • Load the attached Cycles_Shadow_Catcher_Pass_Bug.blend file
  • Enable the Viewport Shanding "Rendered" (Shadow Catcher Pass must already be set)

Cycles_Shadow_Catcher_Pass_Bug.blend


Original File:
220514_Blender_Cycles_Shadow_Bug.zip

**System Information** Operating system: Windows-10-10.0.22000-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3080 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.59 **Blender Version** Broken: version: 3.0.1 - 3.2.0 Beta, branch: master, commit date: 2022-05-12 16:38, hash: `018acc5688` Worked: Can't test with former versions (scene can't be loaded) **Short description of error** The shadow and shadow catcher pass show black dots in my example scene. Even the denoiser can't fix them. Hi-Res Render: ![220514_Blender_Cycles_Shadow_Bug_v003_Screenshot_01.jpg](https://archive.blender.org/developer/F13073701/220514_Blender_Cycles_Shadow_Bug_v003_Screenshot_01.jpg) 50% Render: ![220514_Blender_Cycles_Shadow_Bug_v003_Screenshot_02.jpg](https://archive.blender.org/developer/F13073703/220514_Blender_Cycles_Shadow_Bug_v003_Screenshot_02.jpg) **Exact steps for others to reproduce the error** - Load the attached `Cycles_Shadow_Catcher_Pass_Bug.blend` file - Enable the Viewport Shanding "Rendered" (Shadow Catcher Pass must already be set) [Cycles_Shadow_Catcher_Pass_Bug.blend](https://archive.blender.org/developer/F13082587/Cycles_Shadow_Catcher_Pass_Bug.blend) --- Original File: [220514_Blender_Cycles_Shadow_Bug.zip](https://archive.blender.org/developer/F13073634/220514_Blender_Cycles_Shadow_Bug.zip)
Author

Added subscriber: @Renderbicks

Added subscriber: @Renderbicks

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Testing the file, the problem seems to be related to .exr HDRIs with a well-delimited lighting source.

I tested it with other HDRIs and the black dots were more pronounced on some.

Note that the steps to reproduce the bug from scratch are not clear and the sample file is not simplified enough. So I'll edit the description before confirming...

Testing the file, the problem seems to be related to .exr HDRIs with a well-delimited lighting source. I tested it with other HDRIs and the black dots were more pronounced on some. Note that the steps to reproduce the bug from scratch are not clear and the sample file is not simplified enough. So I'll edit the description before confirming...

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

Changed status from 'Needs Triage' to: 'Confirmed'
Author
Here's a simplified scene: [220517_Blender_Cycles_Shadow_Bug_v004_Simplified.zip](https://archive.blender.org/developer/F13086174/220517_Blender_Cycles_Shadow_Bug_v004_Simplified.zip) ![220517_Blender_Cycles_Shadow_Bug_v004_Simplified_Screenshot.jpg](https://archive.blender.org/developer/F13086172/220517_Blender_Cycles_Shadow_Bug_v004_Simplified_Screenshot.jpg)

Added subscriber: @SteffenD

Added subscriber: @SteffenD
Member

Added subscriber: @LukasStockner

Added subscriber: @LukasStockner
Member

Changed status from 'Confirmed' to: 'Archived'

Changed status from 'Confirmed' to: 'Archived'
Member

From what I can tell, this isn't a bug, but an artifact of how the shadow catcher works.
Basically, these black dots are reverse fireflies. Note how the beauty pass with the cube has (bright) fireflies on its top face as well. Due to how the shadow catcher works, these turn into black dots.

There's two ways to avoid the problem in this scene:

  1. Switch World sampling from "Manual" to "Auto". The HDR is 4K, but the manual resolution is set to 512, causing the fireflies. Switching to Auto resolves both the bright fireflies on the cube and the black dots in the shadow.
  2. Instead of feeding the shadow pass into the denoiser node as-is, connect it to a Separate Color node, connect the Alpha channel to the Image input of the denoiser, then connect its output to the Alpha channel of a Combine Color node. Connect R, G and B directly from the Separate to the Combine node. Effectively, this tricks the Denoise node into denoising the Alpha channel, which it is not designed to do. The result is a completely noise-free shadow pass.
From what I can tell, this isn't a bug, but an artifact of how the shadow catcher works. Basically, these black dots are reverse fireflies. Note how the beauty pass with the cube has (bright) fireflies on its top face as well. Due to how the shadow catcher works, these turn into black dots. There's two ways to avoid the problem in this scene: 1. Switch World sampling from "Manual" to "Auto". The HDR is 4K, but the manual resolution is set to 512, causing the fireflies. Switching to Auto resolves both the bright fireflies on the cube and the black dots in the shadow. 2. Instead of feeding the shadow pass into the denoiser node as-is, connect it to a Separate Color node, connect the Alpha channel to the Image input of the denoiser, then connect its output to the Alpha channel of a Combine Color node. Connect R, G and B directly from the Separate to the Combine node. Effectively, this tricks the Denoise node into denoising the Alpha channel, which it is not designed to do. The result is a completely noise-free shadow pass.
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
4 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#98113
No description provided.