Maniphest T76168

Workbench shadows behind a culled backface are inverted.
Closed, ResolvedBUG

Assigned To
Clément Foucault (fclem)
Authored By
Alaska (Alaska)
Apr 28 2020, 12:44 AM
Tags
  • BF Blender
  • EEVEE & Viewport
Subscribers
Alaska (Alaska)

Description

System Information:
Operating system: Linux
Graphics card: GTX 1050ti 440.64

Blender Version:
Broken: 2.90 (13abd3784ad0), 2.83 (d0d16eb7d347), 2.82a Release, potentially older versions
Worked: Unsure

Short description of error:
Viewport shading shadows will invert if viewed through a culled backface. Here's an example video:

I'm unsure if it is the same issue as T76084 so I've split it off to this different report. I understand the two issues may be the same one manifesting in different ways. If this is the case, just say so, merge the cases, and I'll update the description of the original to include this information.
I have seen this issue occur in a personal project (take note of the shadow around the Window, ignore the red note):

Exact steps for others to reproduce the error:
Use this .blend file or follow the steps below.

  1. Create a scene where an object is casting a shadow onto another one while the "Viewport shading>Shadows" option is enabled.
  2. Create an object where you can see it's backface and place it so the objects backface obscures your view of the shadow cast by the object in the first step.
  3. Enable "backface calling" in the viewport shading options and notice that the shadows behind the backface are inverted from what's expected.

Revisions and Commits

rB Blender

Event Timeline

Alaska (Alaska) created this task.Apr 28 2020, 12:44 AM
Alaska (Alaska) updated the task description.Apr 28 2020, 12:47 AM
Germano Cavalcante (mano-wii) changed the task status from Needs Triage to Confirmed.Apr 28 2020, 3:35 PM
Germano Cavalcante (mano-wii) changed the subtype of this task from "Report" to "Bug".
Germano Cavalcante (mano-wii) added a project: EEVEE & Viewport.
Brecht Van Lommel (brecht) renamed this task from Shadows behind a culled backface are inverted. to Workbench shadows behind a culled backface are inverted..May 1 2020, 6:22 PM
Clément Foucault (fclem) closed this task as Resolved by committing rB59404853698d: Fix T76168 Workbench: Shadows behind a culled backface are inverted.May 14 2020, 5:42 PM
Clément Foucault (fclem) claimed this task.
Clément Foucault (fclem) added a commit: rB59404853698d: Fix T76168 Workbench: Shadows behind a culled backface are inverted.
Alaska (Alaska) added a comment.May 14 2020, 5:44 PM

Thank you @Clément Foucault (fclem). Will test it out when it's available through a build bot release.

Alaska (Alaska) added a comment.May 15 2020, 12:49 AM

Thank you @Clément Foucault (fclem). Everything seems to be working perfectly. Tested with both a simple and complex scene.