Transform: improve visualization when dragging Gizmos #104624

Merged
Germano Cavalcante merged 1 commits from mano-wii/blender:xform_gizmo_v2 into main 2023-04-13 20:23:14 +02:00

Apply the changes suggested at #103782 - Improve visualization when dragging Move/Scale Gizmos

It includes:

  • Draw dot at the origin the active gizmo
  • Hide other gizmos while dragging (except the move arrows)

Other changes:

  • Always keep only the activated gizmo drawn
  • Draw a colored point at the origin during plane constrains
  • Draw shadow of gizmo to move or scale without constrain
Apply the changes suggested at #103782 - Improve visualization when dragging Move/Scale Gizmos It includes: - Draw dot at the origin the active gizmo - Hide other gizmos while dragging (except the move arrows) Other changes: - Always keep only the activated gizmo drawn - Draw a colored point at the origin during plane constrains - Draw shadow of gizmo to move or scale without constrain
Germano Cavalcante requested review from Julien Kaspar 2023-02-11 17:59:40 +01:00
Germano Cavalcante force-pushed xform_gizmo_v2 from 37d9b067fe to 78c2f968c1 2023-02-11 19:22:56 +01:00 Compare
Julien Kaspar requested changes 2023-02-11 21:50:12 +01:00
Julien Kaspar left a comment
Member

When dragging the plane handles of the move gizmo, the colored dot for the pivot point doesn't move with the handles.

Other than that everything works well 👍
I think the changes made based on the feedback are a good compromise.

When dragging the plane handles of the move gizmo, the colored dot for the pivot point doesn't move with the handles. Other than that everything works well 👍 I think the changes made based on the feedback are a good compromise.
Brecht Van Lommel added this to the Modeling project 2023-02-13 09:20:49 +01:00
Germano Cavalcante force-pushed xform_gizmo_v2 from 78c2f968c1 to 2fa44c57ea 2023-02-13 16:44:30 +01:00 Compare
Germano Cavalcante force-pushed xform_gizmo_v2 from 2fa44c57ea to fedbaf822c 2023-02-13 21:37:22 +01:00 Compare
Author
Member
  • Implement new arrow gizmo option named ED_GIZMO_ARROW_STYLE_TRANSFORM_TOOL.
    This option replaces the ED_GIZMO_PRIMITIVE_STYLE_PLANE primitive gizmo.
    With this new option we can draw the point at the origin of the gizmo.
- Implement new arrow gizmo option named `ED_GIZMO_ARROW_STYLE_TRANSFORM_TOOL`. This option replaces the `ED_GIZMO_PRIMITIVE_STYLE_PLANE` primitive gizmo. With this new option we can draw the point at the origin of the gizmo.
Member

My previous note is fixed. Great work!
Only thing I'm noticing now is that the plane handles are out of sync when using 'Normal' orientation.

image

My previous note is fixed. Great work! Only thing I'm noticing now is that the plane handles are out of sync when using 'Normal' orientation. ![image](/attachments/6558f3af-e4a3-48bc-873f-a645a27f424e)
Germano Cavalcante force-pushed xform_gizmo_v2 from fedbaf822c to 7baa2aff0d 2023-02-14 18:10:33 +01:00 Compare
Author
Member

I redid the calculation of the offset matrix.
It simplifies and improves performance.
Needs testing.

I redid the calculation of the offset matrix. It simplifies and improves performance. Needs testing.
Julien Kaspar approved these changes 2023-02-15 11:05:40 +01:00
Julien Kaspar left a comment
Member

All works great for me. I have nothing more to add 👍

All works great for me. I have nothing more to add 👍
Germano Cavalcante force-pushed xform_gizmo_v2 from 7baa2aff0d to 6a7d1cc9a4 2023-04-13 20:13:53 +02:00 Compare
Germano Cavalcante force-pushed xform_gizmo_v2 from 6a7d1cc9a4 to 16cf1f5ac6 2023-04-13 20:17:51 +02:00 Compare
Germano Cavalcante merged commit 97c05aa288 into main 2023-04-13 20:23:14 +02:00
Germano Cavalcante deleted branch xform_gizmo_v2 2023-04-13 20:23:15 +02:00
First-time contributor

one think to improve for gizmo is adding option to remove the lines when dragging gizmo axis.
since using gizmo its already know where the direction to move , and it feel showing the lines little distracting.

one think to improve for gizmo is adding option to remove the lines when dragging gizmo axis. since using gizmo its already know where the direction to move , and it feel showing the lines little distracting. ![](https://projects.blender.org/attachments/8b1beeac-1a7b-44cd-aa24-92a1dbd72c61)
Sign in to join this conversation.
No reviewers
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
3 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#104624
No description provided.