Page MenuHome

Circle Selection do not selects in X-Ray mode with close range to elements
Closed, DuplicatePublic

Description

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 1650 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 457.51

Blender Version
Broken: version: 2.93.0, branch: master, commit date: 2021-06-02 11:21, hash: rB84da05a8b806
Broken: 2.92

View Settings

Exact steps for others to reproduce the error

Event Timeline

Eugene Du (APEC) updated the task description. (Show Details)

While I haven't checked your file yet, this is a most likely a floating point precision issue due to the large clipping range. It makes checking of the Z-values problematic. Always avoid using such big clipping ranges.

Eugene Du (APEC) added a comment.EditedJun 20 2021, 8:50 AM

I tested with bigger Clipping Start value and found another strange issue with drawing the lines in Viewport.
Bigger Clipping Start range did not change Circle selection behavior, also lower Clipping End did not change behavior.
And I just noticed that it affect all types of selection (Box, Lasso), so bug report need to rename to somethings like
"Selection do not selects in X-Ray mode with close range to elements"

Bigger resolution to better see the issue with lines in Viewport.

Campbell Barton (campbellbarton) changed the task status from Needs Triage to Confirmed.Jun 20 2021, 4:28 PM

This is caused by part of the edge being behind the view, causing 2D projection to fail.

One possible solution to this problem is to clip the edges by the near-plane before projecting into screen-space.

It may be necessary to clip by the 4 planes defined by window bounds as well - to prevent points near the clip plane being too large or infinite - causing other calculations to fail.

Committing a fix shortly & closing as a duplicate of T32214.