Maniphest T95462

Partly transparent objects appear to glow in the dark when HDRI environment lighting is present (BVH2/Some GPU rendering backends)
Closed, ResolvedBUG

Assigned To
Sergey Sharybin (sergey)
Authored By
Stellarator Tokamak (Stellarator)
Feb 3 2022, 3:47 AM
Tags
  • BF Blender
  • Render & Cycles
Subscribers
Alaska (Alaska)
Raimund Klink (Raimund58)
Richard Antalik (ISS)
Stellarator Tokamak (Stellarator)

Description

System Information
Operating system: Windows 10
Graphics card: NVIDIA GeForce RTX 2080

Blender Version
Broken: 3.0.1, branch: master, date: 2022-01-25 (latest version on blender.org)

Worked: Any version before 3.0 as far as I can tell. Things are fine in 2.9x

Problem: Partly transparent object in shadow glows when HDRI based world lighting is present. With hair cards it is especially noticeable. Test file is not as stark, but issue is still present.

Exact steps for others to reproduce the error

Make a mesh that is partly transparent, where you can see through multiple layers at a time, like a plane with an array modifier so it stacks like a layer cake, enclose it in a box to block all environment light

Give it a partially transparent shader. Ideally an alpha around .1

Position camera inside the box, observing that it is dark inside the box, even if you have a world background lighting the scene

Now set the world background to have an HDRI plugged into the background node. Behold, the mesh glows, but only where you are looking through multiple layers.

It is as if an image world background is illuminating an object when it shouldn’t.

And it only seems to do this when an object has multiple layers of transparency that you are looking through. Turn the array modifier off and it goes dark.

Example image:

Example of issue in a practical setting. This character's hair does not contain any emissive shader nodes. Loading the same character file in 2.93 without making any changes does not show the "glow".

Example file:

Revisions and Commits

rB Blender
D14280

Event Timeline

Stellarator Tokamak (Stellarator) created this task.Feb 3 2022, 3:47 AM
Richard Antalik (ISS) changed the task status from Needs Triage to Needs Information from User.Feb 3 2022, 4:51 AM
Richard Antalik (ISS) added a subscriber: Richard Antalik (ISS).

Can't reproduce this issue. Does this happen with any HDRI? In provided file none is packed.

Please click on Help > Save System Info and upload saved file.

Stellarator Tokamak (Stellarator) added a comment.Feb 3 2022, 4:58 AM

Whoops, sorry. I forgot about the HDRI. Yes, it does it with any HDRI that I have tried.


I hope I packed that correctly.
Just switching to render preview in the viewport window ought to show it. Here is what it looks like for me.

Here is the system info file:

Stellarator Tokamak (Stellarator) added a comment.Feb 3 2022, 5:07 AM

One new piece of information: Switching from GPU rendering to CPU rendering makes the problem go away.

Alaska (Alaska) changed the task status from Needs Information from User to Confirmed.Feb 3 2022, 5:36 AM
Alaska (Alaska) added a project: Render & Cycles.
Alaska (Alaska) added a subscriber: Alaska (Alaska).

I can confirm the issue when rendering with CUDA with the system information below:

System Information
Operating system: Linux-5.15.0-3-amd64-x86_64-with-glibc2.33 64 Bits
Graphics card: NVIDIA GeForce RTX 3060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 510.47.03
Blender Version: 3.2.0 Alpha, branch: master, commit date: 2022-02-02 02:53, hash: rB9b779993f028

Alaska (Alaska) added a comment.Feb 3 2022, 6:32 AM

Upon further investigation the issue affects the CPU if the BVH structure is changed to BVH2. As such it will also affect HIP and Metal?

Alaska (Alaska) renamed this task from Partly transparent objects appear to glow in the dark when HDRI environment lighting is present to Partly transparent objects appear to glow in the dark when HDRI environment lighting is present (BVH2/Some GPU rendering backends).Feb 3 2022, 6:33 AM
Brecht Van Lommel (brecht) changed the subtype of this task from "Report" to "Bug".Feb 4 2022, 7:18 PM
Raimund Klink (Raimund58) added a subscriber: Raimund Klink (Raimund58).Mar 5 2022, 1:06 AM
Alaska (Alaska) added a comment.Mar 5 2022, 4:04 AM

@Stellarator Tokamak (Stellarator) when investigating a similar report, it was found that increasing the Transparent light bounces property in cycles gets rid of the issue when rendering with an effected rendering backend.
It's not a fix, but it's a work around you, and others, can use if you face this issue with future projects.

Stellarator Tokamak (Stellarator) added a comment.Mar 6 2022, 10:48 PM

At least in my case increasing the transparent bounces made it dimmer, not totally go away. I suppose I could turn transparent bounces up to something absurd like 100 and see how Blender deals. But this isn't a tech support forum, so I'll work on it on my own and see how good results I can get. Thanks for the workaround.

Sergey Sharybin (sergey) closed this task as Resolved by committing rB04e89c5b0673: Fix T96165: Incorrect render of barcelone scene with BVH2.Mar 9 2022, 10:39 AM
Sergey Sharybin (sergey) claimed this task.
Sergey Sharybin (sergey) added a commit: rB04e89c5b0673: Fix T96165: Incorrect render of barcelone scene with BVH2.