Cycles cryptomatte is noisy around materials with fully transparent shader #102381

Open
opened 2022-11-09 15:13:00 +01:00 by Louis Florentin · 10 comments

System Information
Operating system: Windows 11, x64
Graphics card: NVIDIA Quadro RTX 4000

Blender Version
Broken: 3.5.0 Alpha
image.png
Worked: None

Short description of error
Two problems can be observed in the compositor (cf. attached .blend file):

  1. the matte from the cryptomatte node (monkey + glasses) is slightly inferior to 1 around the lenses of the glasses (transparent material) even where the monkey is behind the lenses. This matte should be the same as the alpha channel from the "foreground" view layer.
  2. when setting the collection with all the objects (monkey + glasses) to holdout in the "background" view layer, the lenses (not the whole glasses) still appear on the matte from the cryptomatte node and connected to the same "background" view layer whereas it shouldn't (as the collection is holdout from the "background" view layer).

Exact steps for others to reproduce the error

  • Open attached .blend file SEGM_MASK_Blender_bug_v2.blend
  • Open the compositing workspace
    image.png
    image.png
  • F12 to render (using Cycles)
  • See the differences between the alpha channel coming from the "foreground" view layer and the matte from the cryptomatte node and connected to the same "foreground" view layer.
    image.png
  • See that (only) the lenses of the glasses still appear on the matte from the cryptomatte node and connected to the "background" view layer whereas it shouldn't as the whole collection of objects is holdout from the same "background" layer.
    image.png
**System Information** Operating system: Windows 11, x64 Graphics card: NVIDIA Quadro RTX 4000 **Blender Version** Broken: 3.5.0 Alpha ![image.png](https://archive.blender.org/developer/F13875560/image.png) Worked: None **Short description of error** Two problems can be observed in the compositor (cf. attached .blend file): 1) the matte from the cryptomatte node (monkey + glasses) is slightly inferior to 1 around the lenses of the glasses (transparent material) even where the monkey is behind the lenses. This matte should be the same as the alpha channel from the "foreground" view layer. 2) when setting the collection with all the objects (monkey + glasses) to holdout in the "background" view layer, the lenses (not the whole glasses) still appear on the matte from the cryptomatte node and connected to the same "background" view layer whereas it shouldn't (as the collection is holdout from the "background" view layer). **Exact steps for others to reproduce the error** - Open attached .blend file [SEGM_MASK_Blender_bug_v2.blend](https://archive.blender.org/developer/F13955961/SEGM_MASK_Blender_bug_v2.blend) - Open the compositing workspace ![image.png](https://archive.blender.org/developer/F13875808/image.png) ![image.png](https://archive.blender.org/developer/F13875800/image.png) - F12 to render (using Cycles) - See the differences between the alpha channel coming from the "foreground" view layer and the matte from the cryptomatte node and connected to the same "foreground" view layer. ![image.png](https://archive.blender.org/developer/F13875717/image.png) - See that (only) the lenses of the glasses still appear on the matte from the cryptomatte node and connected to the "background" view layer whereas it shouldn't as the whole collection of objects is holdout from the same "background" layer. ![image.png](https://archive.blender.org/developer/F13875727/image.png)

Added subscriber: @louis_de_florence

Added subscriber: @louis_de_florence
Member

Added subscriber: @OmarEmaraDev

Added subscriber: @OmarEmaraDev
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

It seems this file doesn't include the monkey in your screenshots, and doesn't have the exact same composite node tree. Is this intended?
Can you try to simplify the file to only contain simple objects with no environment textures or other non significant resources? And also, provide steps that demonstrate how you constructed the file?

It seems this file doesn't include the monkey in your screenshots, and doesn't have the exact same composite node tree. Is this intended? Can you try to simplify the file to only contain simple objects with no environment textures or other non significant resources? And also, provide steps that demonstrate how you constructed the file?
Omar Emara was assigned by Louis Florentin 2022-11-21 13:16:21 +01:00

In #102381#1449011, @OmarEmaraDev wrote:
It seems this file doesn't include the monkey in your screenshots, and doesn't have the exact same composite node tree. Is this intended?
Can you try to simplify the file to only contain simple objects with no environment textures or other non significant resources? And also, provide steps that demonstrate how you constructed the file?

Hey Omar, thanks a lot for your response!
I updated the simplified blend scene, let me know if there is still an issue.
Steps to create the scene:

  • Add glasses
  • Add monkey
  • Add lights
  • Create a collection "Collection" and add all objects to it
  • Rename the current view layer to "Background"
  • Create a second view layer named "Foreground'
  • Go to the "Background" view layer and set the collection "Collection" to holdout (right click on the collection in the outliner view and View Layer > Set Holdout) : it should hide all the objects from the collection in the "Background" view layer

I hope it makes sense. Let me know if you need additional information.
Thanks a lot!

> In #102381#1449011, @OmarEmaraDev wrote: > It seems this file doesn't include the monkey in your screenshots, and doesn't have the exact same composite node tree. Is this intended? > Can you try to simplify the file to only contain simple objects with no environment textures or other non significant resources? And also, provide steps that demonstrate how you constructed the file? Hey Omar, thanks a lot for your response! I updated the simplified blend scene, let me know if there is still an issue. Steps to create the scene: - Add glasses - Add monkey - Add lights - Create a collection "Collection" and add all objects to it - Rename the current view layer to "Background" - Create a second view layer named "Foreground' - Go to the "Background" view layer and set the collection "Collection" to holdout (right click on the collection in the outliner view and View Layer > Set Holdout) : it should hide all the objects from the collection in the "Background" view layer I hope it makes sense. Let me know if you need additional information. Thanks a lot!
Member

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'
Member

Thanks for the update, I will take a look.

Thanks for the update, I will take a look.
Omar Emara removed their assignment 2022-11-21 13:17:38 +01:00
Member

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

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

Added subscriber: @brecht

Added subscriber: @brecht
Member

The values around the glasses seems expected because your shader is a mix between a fully transparent shader and a glass one, fully transparent objects seems to be absent from cryptomatte producing a black matte, so they lower the values of the matte a bit after convergence.

@brecht Given two planes, the top of which has the shader shown below, and a compositor setup that generates the matte from both planes, is it expected to get edges that are slightly less than 1?

20221206-111551.png

The values around the glasses seems expected because your shader is a mix between a fully transparent shader and a glass one, fully transparent objects seems to be absent from cryptomatte producing a black matte, so they lower the values of the matte a bit after convergence. @brecht Given two planes, the top of which has the shader shown below, and a compositor setup that generates the matte from both planes, is it expected to get edges that are slightly less than 1? ![20221206-111551.png](https://archive.blender.org/developer/F14000420/20221206-111551.png)
Omar Emara changed title from Bug: matte from cryptomatte node incorrect around transparent material to Cycles cryptomatte is noisy around materials with fully transparent shader 2022-12-06 10:24:06 +01:00
Philipp Oeser removed the
Interest
Render & Cycles
label 2023-02-09 14:04:03 +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
2 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#102381
No description provided.