Alpha textures do not work with holdout collection in Eevee #88185

Open
opened 2021-05-10 18:58:16 +02:00 by Tim Brown Lees · 15 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.92

Blender Version
Broken: version: 2.93.0 Beta, branch: master, commit date: 2021-05-08 23:52, hash: 3c7b80ae2c
Worked: None

Short description of error
When setting a collection to holdout in Eevee, objects with an alpha texture will display as the entire object being held out, but the expected behaviour is possible using a Holdout shader. This can be very inconvenient as then you have to duplicate and remove all models using alpha textures from the collection and create unique materials for them.
holdoutcollection.png
The collection set to holdout.

holdoutmaterial.png
The expected behaviour using a material with alpha blend to hold out the object.

Exact steps for others to reproduce the error

  • Create an object using an alpha texture (blend mode doesn't seem to matter) in Eevee
  • Set the collection containing it to holdout

HoldoutAlpha.blend

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.92 **Blender Version** Broken: version: 2.93.0 Beta, branch: master, commit date: 2021-05-08 23:52, hash: `3c7b80ae2c` Worked: None **Short description of error** When setting a collection to holdout in Eevee, objects with an alpha texture will display as the entire object being held out, but the expected behaviour is possible using a Holdout shader. This can be very inconvenient as then you have to duplicate and remove all models using alpha textures from the collection and create unique materials for them. ![holdoutcollection.png](https://archive.blender.org/developer/F10076489/holdoutcollection.png) The collection set to holdout. ![holdoutmaterial.png](https://archive.blender.org/developer/F10076492/holdoutmaterial.png) The expected behaviour using a material with alpha blend to hold out the object. **Exact steps for others to reproduce the error** - Create an object using an alpha texture (blend mode doesn't seem to matter) in Eevee - Set the collection containing it to holdout [HoldoutAlpha.blend](https://archive.blender.org/developer/F10076477/HoldoutAlpha.blend)
Author

Added subscriber: @TimBL

Added subscriber: @TimBL

Added subscriber: @razed

Added subscriber: @razed
Member

Added subscriber: @filedescriptor

Added subscriber: @filedescriptor
Member

Not sure if we can call this a bug. This looks to me more like a missing feature since the code is working as intended.

Not sure if we can call this a bug. This looks to me more like a missing feature since the code is working as intended.

Added subscribers: @brecht, @iss

Added subscribers: @brecht, @iss

I also think this works as expected.
If anything there may be regression from 2.90 to 2.91 in cycles where collection holdout state doesn't make any difference. @brecht or was that intentional change?

Since 981d7381cd you should get expected result, when collection is not held out. @TimBL isn't this how you made your second image with expected behavior? Because I don't understand why that would be problem, or how shading should other work otherwise when collection is not held out.

I also think this works as expected. If anything there may be regression from 2.90 to 2.91 in cycles where collection holdout state doesn't make any difference. @brecht or was that intentional change? Since 981d7381cd you should get expected result, when collection is **not** held out. @TimBL isn't this how you made your second image with expected behavior? Because I don't understand why that would be problem, or how shading should other work otherwise when collection is not held out.

Added subscriber: @fclem

Added subscriber: @fclem

It's up to @fclem to decide if this should be considered a bug or future improvement for Eevee.

In Cycles we changed the behavior to use transparency for holdout objects, which I think is the correct thing to do.

6435acd8f6

It's up to @fclem to decide if this should be considered a bug or future improvement for Eevee. In Cycles we changed the behavior to use transparency for holdout objects, which I think is the correct thing to do. 6435acd8f6
Author

Thanks for the responses, wasn't sure if this was a bug or missing feature.

In #88185#1159378, @iss wrote:
I also think this works as expected.
If anything there may be regression from 2.90 to 2.91 in cycles where collection holdout state doesn't make any difference. @brecht or was that intentional change?

Since 981d7381cd you should get expected result, when collection is not held out. @TimBL isn't this how you made your second image with expected behavior? Because I don't understand why that would be problem, or how shading should other work otherwise when collection is not held out.

I'm not sure I follow. I can attain the result using the 2nd method, but for example: I'm linking in a set to my file that contains a forest with leaves using alpha textures that I want held-out. I now have to go back into the forest blend file, duplicate that collection and assign new materials to it using the holdout shader, then link that in and use it. This can turn a simple task into a bit of a lengthy one if there's a lot of materials with transparency. That has been my solution anyway, maybe theres a better way that I'm just missing!

Thanks for the responses, wasn't sure if this was a bug or missing feature. > In #88185#1159378, @iss wrote: > I also think this works as expected. > If anything there may be regression from 2.90 to 2.91 in cycles where collection holdout state doesn't make any difference. @brecht or was that intentional change? > > Since 981d7381cd you should get expected result, when collection is **not** held out. @TimBL isn't this how you made your second image with expected behavior? Because I don't understand why that would be problem, or how shading should other work otherwise when collection is not held out. I'm not sure I follow. I can attain the result using the 2nd method, but for example: I'm linking in a set to my file that contains a forest with leaves using alpha textures that I want held-out. I now have to go back into the forest blend file, duplicate that collection and assign new materials to it using the holdout shader, then link that in and use it. This can turn a simple task into a bit of a lengthy one if there's a lot of materials with transparency. That has been my solution anyway, maybe theres a better way that I'm just missing!
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

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

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

In #88185#1159433, @brecht wrote:
It's up to @fclem to decide if this should be considered a bug or future improvement for Eevee.

Setting status to "Needs Information from Developers" then.

> In #88185#1159433, @brecht wrote: > It's up to @fclem to decide if this should be considered a bug or future improvement for Eevee. Setting status to "Needs Information from Developers" then.

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

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

I acknowledged that this is a serious workflow isssue. I will consider this as a feature request / TODO.

I acknowledged that this is a serious workflow isssue. I will consider this as a feature request / TODO.
Member

Added subscriber: @EAW

Added subscriber: @EAW
Philipp Oeser removed the
Interest
EEVEE & Viewport
label 2023-02-09 15:13:42 +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
8 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#88185
No description provided.