Page MenuHome

Culled backfaces flicker during viewport navigation when auto-depth is enabled
Confirmed, NormalPublic


System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce RTX 2060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 442.59

Blender Version
Broken: version: 2.83 (sub 10), branch: master, commit date: Mar 21, hash: ad7bb8e42c38
Worked: Anything prior to c476c36e4008

Exact steps for others to reproduce the error
Based on the default startup file, enable auto-depth in the navigation preferences and backface culling in the viewport shading popover. Disabling AA can make the bug more obvious, but it's visible at all AA levels.

Delete one of the cube's faces, then fiddle with the navigation a bit. The bug is most visible when you zoom with the mouse wheel, or press and release the middle mouse button without moving the mouse.

This appears to affects any operator that calls ED_view3d_autodist(). The diff below stops the flickering, but I don't have a good grasp on why it works.

diff --git a/source/blender/editors/space_view3d/view3d_utils.c b/source/blender/editors/space_view3d/view3d_utils.c
index 2637fb6d1db..e0b7dc5eebe 100644
--- a/source/blender/editors/space_view3d/view3d_utils.c
+++ b/source/blender/editors/space_view3d/view3d_utils.c
@@ -975,7 +975,7 @@ bool ED_view3d_autodist(Depsgraph *depsgraph,
   bool depth_ok = false;
   /* Get Z Depths, needed for perspective, nice for ortho */
-  ED_view3d_draw_depth(depsgraph, region, v3d, alphaoverride);
+  // ED_view3d_draw_depth(depsgraph, region, v3d, alphaoverride);
   /* Attempt with low margin's first */
   i = 0;

Event Timeline

Ankit (ankitm) changed the task status from Needs Triage to Confirmed.Mon, Mar 23, 2:05 PM
Ankit (ankitm) added a subscriber: Ankit (ankitm).

Confirming. On trackpad, use pinch to zoom and lift your fingers in between pinches.
You should try adding a differential to see what the reviewers say.