Metal: selection with GPU depth picking is broken in wireframe mode #106742

Open
opened 2023-04-09 19:11:32 +02:00 by Christopher Tyler · 8 comments

System Information
Operating system: macOS-12.3.1-x86_64-i386-64bit 64 Bits
Graphics card: Metal API AMD Radeon Pro 5500M 1.2

Blender Version
Broken: version: 3.5.0, branch: blender-v3.5-release, commit date: 2023-03-29 02:56, hash: 1be25cfff18b
Worked: (newest version of Blender that worked as expected)

Short description of error
When working in the 3D viewport, when in Wireframe mode and Xray mode is OFF, clicks to select an object are passed through and select objects behind the object. It's very difficult to select the object whose intention it is to select.
https://drive.google.com/file/d/1pY4Eyi9aVKrMxoMvUx-lvnYM2Ef4yD_k/view?usp=sharing

The video link above demonstrates this.

Exact steps for others to reproduce the error
[Please describe the exact steps needed to reproduce the issue]
[Based on the default startup or an attached .blend file (as simple as possible)]

**System Information** Operating system: macOS-12.3.1-x86_64-i386-64bit 64 Bits Graphics card: Metal API AMD Radeon Pro 5500M 1.2 **Blender Version** Broken: version: 3.5.0, branch: blender-v3.5-release, commit date: 2023-03-29 02:56, hash: `1be25cfff18b` Worked: (newest version of Blender that worked as expected) **Short description of error** When working in the 3D viewport, when in Wireframe mode and Xray mode is OFF, clicks to select an object are passed through and select objects behind the object. It's very difficult to select the object whose intention it is to select. https://drive.google.com/file/d/1pY4Eyi9aVKrMxoMvUx-lvnYM2Ef4yD_k/view?usp=sharing The video link above demonstrates this. **Exact steps for others to reproduce the error** [Please describe the exact steps needed to reproduce the issue] [Based on the default startup or an attached .blend file (as simple as possible)]
Christopher Tyler added the
Severity
Normal
Type
Report
Status
Needs Triage
labels 2023-04-09 19:11:32 +02:00

Hello Christopher!

I know its not much help, m trying to reproduce this, but im on windows, here its work that im click the first in a row object its select normally, and if click again its jump the next behind. It worked with and without gpu depth and without selection in settings.

Hello Christopher! I know its not much help, m trying to reproduce this, but im on windows, here its work that im click the first in a row object its select normally, and if click again its jump the next behind. It worked with and without gpu depth and without selection in settings.
Member

Hi, thanks for the report. Can you check whether GPU Depth Picking is enabled in preferences?
Does this issue happen with both Metal and OpenGL viewport backend?
Can you share .blend file?

Hi, thanks for the report. Can you check whether `GPU Depth Picking` is enabled in preferences? Does this issue happen with both Metal and OpenGL viewport backend? Can you share .blend file?
Pratik Borhade added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-04-10 06:16:08 +02:00

AH! That did it. GPU Depth Picking was enabled, I'm guessing by default(?). When I disable it while using the Metal backend, selection now works predictably in Wireframe view without Xray on.

My workaround was to switch over to Shaded view as selection seemed to work correctly there.

I can share the project if you need it.

Hi, thanks for the report. Can you check whether GPU Depth Picking is enabled in preferences?
Does this issue happen with both Metal and OpenGL viewport backend?
Can you share .blend file?

AH! That did it. GPU Depth Picking was enabled, I'm guessing by default(?). When I disable it while using the Metal backend, selection now works predictably in Wireframe view without Xray on. My workaround was to switch over to Shaded view as selection seemed to work correctly there. I can share the project if you need it. > Hi, thanks for the report. Can you check whether `GPU Depth Picking` is enabled in preferences? > Does this issue happen with both Metal and OpenGL viewport backend? > Can you share .blend file?

Does this issue happen with both Metal and OpenGL viewport backend?

I just did a test where I switched over to OpenGL for the backend, and enabled GPU Depth Picking. With these conditions, selection is correct in Wireframe (non-Xray).

However, if I turn off GPU-Depth Picking in OpenGL, then it has the same selection problem (picking items behind what you are trying to select).

> Does this issue happen with both Metal and OpenGL viewport backend? I just did a test where I switched over to OpenGL for the backend, and enabled GPU Depth Picking. With these conditions, selection is correct in Wireframe (non-Xray). However, if I turn off GPU-Depth Picking in OpenGL, then it has the same selection problem (picking items behind what you are trying to select).
Member

ok, thanks for the update. With GPU depth picking, visible object is expected to be selected first.
So If I understand correctly, problem is with Metal backend.
cc @Michael-Parkin-White-Apple


I can share the project if you need it

Yes, please share a simplified version of it.

ok, thanks for the update. With GPU depth picking, visible object is expected to be selected first. So If I understand correctly, problem is with Metal backend. cc @Michael-Parkin-White-Apple - - - > I can share the project if you need it Yes, please share a simplified version of it.
Pratik Borhade changed title from Wireframe Viewport mode, object selection is broken to Metal: Wireframe Viewport mode, object selection is broken 2023-04-10 06:49:04 +02:00
Pratik Borhade added the
Platform
macOS
Interest
Metal
labels 2023-04-10 06:49:21 +02:00

ok, thanks for the update. With GPU depth picking, visible object is expected to be selected first.
So If I understand correctly, problem is with Metal backend.
cc @Michael-Parkin-White-Apple


I can share the project if you need it

Yes, please share a simplified version of it.

https://drive.google.com/file/d/1k9hZynmMqrx7xxkcKkNwvdiy2thBmqeY/view?usp=sharing

Here's the project, minus textures which I don't think are needed for this purpose.

Yes, I was having the problem with Metal backend and GPU Picking enabled.

> ok, thanks for the update. With GPU depth picking, visible object is expected to be selected first. > So If I understand correctly, problem is with Metal backend. > cc @Michael-Parkin-White-Apple > > - - - > > I can share the project if you need it > > Yes, please share a simplified version of it. https://drive.google.com/file/d/1k9hZynmMqrx7xxkcKkNwvdiy2thBmqeY/view?usp=sharing Here's the project, minus textures which I don't think are needed for this purpose. Yes, I was having the problem with Metal backend and GPU Picking enabled.
Pratik Borhade added
Status
Needs Info from Developers
and removed
Status
Needs Information from User
labels 2023-04-10 06:58:54 +02:00

Will have a look into this, thank you for the report. It is possible that this is the same issue causing the texture paint selection, so will see if that solution also works in this instance.

Will have a look into this, thank you for the report. It is possible that this is the same issue causing the texture paint selection, so will see if that solution also works in this instance.
Pratik Borhade changed title from Metal: Wireframe Viewport mode, object selection is broken to Metal: selection with GPU depth picking is broken in wireframe mode 2023-04-25 07:22:03 +02:00
Probably related: Metal Viewport: [Navigation issue with 'Auto Depth' and 'Wireframe' enabled #107159](https://projects.blender.org/blender/blender/issues/107159)
Bart van der Braak added
Type
Bug
and removed
Type
Report
labels 2024-08-14 13:13:28 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
5 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#106742
No description provided.