Regression: Cycles Viewlayer - Holdout not renderable without casting shadows and reflections #70668

Closed
opened 2019-10-09 10:51:06 +02:00 by Marcus Papathoma · 6 comments

System Information
Operating system: Windows-10-10.0.18362 64 Bits
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 436.02

Blender Version
Broken: version: 2.81 (sub 14), branch: master, commit date: 2019-10-08 22:16, hash: 0812949bbc
Worked: 2.79b

Short description of error
Regression: Cycles Viewlayer - Holdout not renderable without casting shadows and reflections
In Blender 2.79b it was possible to have a holdout (mask layer) and exclude it form illumination
cycles_holdout_indrect_blender279_mask_without_indirect.jpg
This was the renderlayer config
cycles_holdout_indrect_blender279_mask_without_indirect_layer_config.jpg
This isn´t possible in 2.8x anymore.
In 2.8x the object that is masked (holdout) is always used in illumination calculation.
Rendering from 2.81
cycles_holdout_indrect_blender280_mask_with_indirect.png
You see the reflection and the shadow of the red masked cube.
Both following viewlayer configurations do the same.
cycles_holdout_indrect_blender280_mask_with_indirect_layer_config.jpg
cycles_holdout_indrect_blender280_mask_without_indirect_layer_config.jpg
If you think logical, the configuration in the last image should not calculate illumination for this viewlayer, becauseindirect illumination is off!

If holdout and indirect only are off the layer is calculated normal.
If holdout is on then indirect only off/on should have an effect!

Exact steps for others to reproduce the error
Open the attached blend file for blender 2.8
cycles_indirect_holdout_280.blend
Activate Vieport rendering
You see that the red cube is masked out but shadows and reflections are calculated for it on the other cubes. Activate Indirect only next to the holdout icon in the outliner.
cycles_holdout_indrect_blender280_mask_with_indirect_layer_config2.jpg
Nothing happens.

Open the attached blend file for blender 2.79b.
cycles_indirect_holdout_279.blend
Click on Render > Render Image
You get this result. No reflection and no shadow from the masked cube.
cycles_holdout_indrect_blender279_mask_without_indirect.jpg
Deaktivate Exclude for layer three in the layer tab.
cycles_holdout_indrect_blender279_mask_with_indirect2.jpg
Render the image again. As expected the masked cube is calculated and casts shadows and reflections on the other cubes.
cycles_holdout_indrect_blender279_mask_with_indirect.jpg

**System Information** Operating system: Windows-10-10.0.18362 64 Bits Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 436.02 **Blender Version** Broken: version: 2.81 (sub 14), branch: master, commit date: 2019-10-08 22:16, hash: `0812949bbc` Worked: 2.79b **Short description of error** Regression: Cycles Viewlayer - Holdout not renderable without casting shadows and reflections In Blender 2.79b it was possible to have a holdout (mask layer) and exclude it form illumination ![cycles_holdout_indrect_blender279_mask_without_indirect.jpg](https://archive.blender.org/developer/F7798465/cycles_holdout_indrect_blender279_mask_without_indirect.jpg) This was the renderlayer config ![cycles_holdout_indrect_blender279_mask_without_indirect_layer_config.jpg](https://archive.blender.org/developer/F7798469/cycles_holdout_indrect_blender279_mask_without_indirect_layer_config.jpg) This isn´t possible in 2.8x anymore. In 2.8x the object that is masked (holdout) is always used in illumination calculation. Rendering from 2.81 ![cycles_holdout_indrect_blender280_mask_with_indirect.png](https://archive.blender.org/developer/F7798474/cycles_holdout_indrect_blender280_mask_with_indirect.png) You see the reflection and the shadow of the red masked cube. Both following viewlayer configurations do the same. ![cycles_holdout_indrect_blender280_mask_with_indirect_layer_config.jpg](https://archive.blender.org/developer/F7798482/cycles_holdout_indrect_blender280_mask_with_indirect_layer_config.jpg) ![cycles_holdout_indrect_blender280_mask_without_indirect_layer_config.jpg](https://archive.blender.org/developer/F7798488/cycles_holdout_indrect_blender280_mask_without_indirect_layer_config.jpg) If you think logical, the configuration in the last image **should not calculate** illumination for this viewlayer, because**indirect illumination is off!** If holdout and indirect only are off the layer is calculated normal. **If holdout is on then indirect only off/on should have an effect!** **Exact steps for others to reproduce the error** Open the attached blend file for blender 2.8 [cycles_indirect_holdout_280.blend](https://archive.blender.org/developer/F7798501/cycles_indirect_holdout_280.blend) Activate Vieport rendering You see that the red cube is masked out but shadows and reflections are calculated for it on the other cubes. Activate Indirect only next to the holdout icon in the outliner. ![cycles_holdout_indrect_blender280_mask_with_indirect_layer_config2.jpg](https://archive.blender.org/developer/F7798507/cycles_holdout_indrect_blender280_mask_with_indirect_layer_config2.jpg) Nothing happens. Open the attached blend file for blender 2.79b. [cycles_indirect_holdout_279.blend](https://archive.blender.org/developer/F7798509/cycles_indirect_holdout_279.blend) Click on Render > Render Image You get this result. No reflection and no shadow from the masked cube. ![cycles_holdout_indrect_blender279_mask_without_indirect.jpg](https://archive.blender.org/developer/F7798512/cycles_holdout_indrect_blender279_mask_without_indirect.jpg) Deaktivate Exclude for layer three in the layer tab. ![cycles_holdout_indrect_blender279_mask_with_indirect2.jpg](https://archive.blender.org/developer/F7798514/cycles_holdout_indrect_blender279_mask_with_indirect2.jpg) Render the image again. As expected the masked cube is calculated and casts shadows and reflections on the other cubes. ![cycles_holdout_indrect_blender279_mask_with_indirect.jpg](https://archive.blender.org/developer/F7798516/cycles_holdout_indrect_blender279_mask_with_indirect.jpg)

Added subscriber: @machieb

Added subscriber: @machieb

Added subscriber: @RainerTrummer

Added subscriber: @RainerTrummer
Marcus Papathoma changed title from Regression: Cycles Viewlayer - Holdout not renderable without casting shadows and casting reflections to Regression: Cycles Viewlayer - Holdout not renderable without casting shadows and reflections 2019-10-09 13:41:31 +02:00
Member

Added subscribers: @brecht, @lichtwerk

Added subscribers: @brecht, @lichtwerk
Member

There were #66362 and #66004 and if I understand correctly, this is a known limitation atm.

In #66362#713396, @brecht wrote:
The behavior regarding exclude is a known limitation at the moment, there is a comment in the code about it. The dependency graph does not evaluate the excluded objects at all so this requires a different design.

@brecht: do you want to keep this one task open for this?
I will put this on Normal prio as TODO type, but feel free to close if this is on the radar anyways...

There were #66362 and #66004 and if I understand correctly, this is a known limitation atm. > In #66362#713396, @brecht wrote: > The behavior regarding exclude is a known limitation at the moment, there is a comment in the code about it. The dependency graph does not evaluate the excluded objects at all so this requires a different design. @brecht: do you want to keep this one task open for this? I will put this on Normal prio as TODO type, but feel free to close if this is on the radar anyways...

Closed as duplicate of #66362

Closed as duplicate of #66362

Added subscriber: @Sparazza

Added subscriber: @Sparazza
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#70668
No description provided.