GizmoAPI: No depth culling on mouse hover #94792

Open
opened 2022-01-10 15:27:15 +01:00 by Demeter Dzadik · 9 comments
Member

System Information
Operating system: Linux-5.8.0-7642-generic-x86_64-with-glibc2.32 64 Bits
Graphics card: GeForce RTX 2080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.56

Blender Version
Broken: version: 3.1.0 Alpha, branch: master (modified), commit date: 2022-01-10 10:40, hash: 101fadcf6b

Short description of error
When drawing 3D widgets with the Gizmo/GizmoGroup API, with the "DEPTH_3D" bl_option on the GizmoGroup, the widget loses its depth culling when mouse hovered.

Exact steps for others to reproduce the error

CC @ideasman42

**System Information** Operating system: Linux-5.8.0-7642-generic-x86_64-with-glibc2.32 64 Bits Graphics card: GeForce RTX 2080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.56 **Blender Version** Broken: version: 3.1.0 Alpha, branch: master (modified), commit date: 2022-01-10 10:40, hash: `101fadcf6b` **Short description of error** When drawing 3D widgets with the Gizmo/GizmoGroup API, with the "DEPTH_3D" bl_option on the GizmoGroup, the widget loses its depth culling when mouse hovered. **Exact steps for others to reproduce the error** - Prototype addon: [bone_gizmos2.zip](https://archive.blender.org/developer/F12845663/bone_gizmos2.zip) - Minimal test file: [ellie_mesh_gizmos.rigging_minimal_v2.blend](https://archive.blender.org/developer/F12845666/ellie_mesh_gizmos.rigging_minimal_v2.blend) - Notice how widgets' backfaces become visible when mouse hovering on them. The addon has some preferences to get different alpha amounts in different states. The issue is more visible when the "Delta Highlighted" value is lower. [widget_seethrough_on_hover-2022-01-10_15.24.33.mp4](https://archive.blender.org/developer/F12799053/widget_seethrough_on_hover-2022-01-10_15.24.33.mp4) CC @ideasman42
Author
Member

Added subscribers: @ideasman42, @Mets

Added subscribers: @ideasman42, @Mets

Added subscriber: @rwman

Added subscriber: @rwman
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Can confirm.

Can confirm.

The test files aren't working here, if I zoom out I can highlight geometry above the mesh screen_shot.png

The test files aren't working here, if I zoom out I can highlight geometry above the mesh ![screen_shot.png](https://archive.blender.org/developer/F12845170/screen_shot.png)
Author
Member

That's odd, I couldn't reproduce that with the version of the addon and file that was attached, on Blender 3.2. Still, I uploaded a slightly newer version of the addon and tweaked version of the file and edited the original post. I hope that works properly, but even if not, you should be able to see the culling issue by just spawning a default cube between wherever the gizmo appears, and your camera, so the cube partially (or even fully) obscures it. If you hover your mouse over the cube, the gizmo will become highlighted, and fully visible through the cube.

That's odd, I couldn't reproduce that with the version of the addon and file that was attached, on Blender 3.2. Still, I uploaded a slightly newer version of the addon and tweaked version of the file and edited the original post. I hope that works properly, but even if not, you should be able to see the culling issue by just spawning a default cube between wherever the gizmo appears, and your camera, so the cube partially (or even fully) obscures it. If you hover your mouse over the cube, the gizmo will become highlighted, and fully visible through the cube.
Member

Has this worked in previous versions btw.?

Has this worked in previous versions btw.?
Author
Member

Sorry I didn't see that message back in... May. Not that I know of, no, but I was finding these issues as I was developing this gizmo add-on for the first time, so I could be wrong.

Sorry I didn't see that message back in... May. Not that I know of, no, but I was finding these issues as I was developing this gizmo add-on for the first time, so I could be wrong.
Philipp Oeser removed the
Interest
User Interface
label 2023-02-10 09:22:34 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
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
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
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
EEVEE & Viewport
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
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
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
4 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#94792
No description provided.