Inaccurate highlighting of custom gizmos (can't select them properly) #66491

Closed
opened 2019-07-06 03:21:18 +02:00 by chaos · 6 comments
Member

System Information
Operating system: Linux-4.15.0-54-generic-x86_64-with-debian-buster-sid 64 Bits
Graphics card: GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 430.26

Blender Version
Broken: version: 2.80 (sub 74), branch: master, commit date: 2019-06-29 14:01, hash: f566212aa2

Description of issue
There is a python template called “gizmo_custom_geometry.py” which adds a gizmo with some custom geometry for the energy of lamps. When run, it appers properly along the Z axis of the lamp, and you can select it and move it.

The problem is that the gizmo is not accurately highlighted when the cursor is over the drawn custom geometry, instead it becomes highlighted when the cursor is over some unclear area in the middle. This makes it hard to select.
If I add the “SCALE” option in the GizmoGroup class to disable the viewport scaling, I can zoom into the geometry, making this fact more evident.
custom.png

This doesn’t happen with other built-in gizmos like “GIZMO_GT_arrow_3d” for any of the available draw types. The geometry always highlights, following the 3D geometry when the cursor is near, even when pointing to an edge.
box.png

Without this working properly is almost useless to write custom gizmos with a different drawing, because those can't be selected.

**System Information** Operating system: Linux-4.15.0-54-generic-x86_64-with-debian-buster-sid 64 Bits Graphics card: GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 430.26 **Blender Version** Broken: version: 2.80 (sub 74), branch: master, commit date: 2019-06-29 14:01, hash: `f566212aa2` **Description of issue** There is a python template called “gizmo_custom_geometry.py” which adds a gizmo with some custom geometry for the energy of lamps. When run, it appers properly along the Z axis of the lamp, and you can select it and move it. The problem is that the gizmo is not accurately highlighted when the cursor is over the drawn custom geometry, instead it becomes highlighted when the cursor is over some unclear area in the middle. This makes it hard to select. If I add the “SCALE” option in the GizmoGroup class to disable the viewport scaling, I can zoom into the geometry, making this fact more evident. ![custom.png](https://archive.blender.org/developer/F7568502/custom.png) This doesn’t happen with other built-in gizmos like “GIZMO_GT_arrow_3d” for any of the available draw types. The geometry always highlights, following the 3D geometry when the cursor is near, even when pointing to an edge. ![box.png](https://archive.blender.org/developer/F7568504/box.png) Without this working properly is almost useless to write custom gizmos with a different drawing, because those can't be selected.
Author
Member

Added subscriber: @chaos-4

Added subscriber: @chaos-4
Campbell Barton was assigned by Sebastian Parborg 2019-07-10 11:31:56 +02:00
Campbell Barton was unassigned by Dalai Felinto 2019-12-23 16:33:53 +01:00

Added subscriber: @ideasman42

Added subscriber: @ideasman42

Added subscriber: @ivpe

Added subscriber: @ivpe
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Sorry this has been lying around for so long.
Going over reports, this has actually been reported before, see #61388 (Custom gizmo created with new_custom_shape are difficul to select.), will merge the duplicates...

Sorry this has been lying around for so long. Going over reports, this has actually been reported before, see #61388 (Custom gizmo created with new_custom_shape are difficul to select.), will merge the duplicates...
Member

Closed as duplicate of #61388

Closed as duplicate of #61388
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#66491
No description provided.