Transform: Support navigation from NDOF devices #109792

Merged
Germano Cavalcante merged 1 commits from mano-wii/blender:support_ndof into main 2023-07-10 14:57:48 +02:00

This commit implements the VIEW3D_OT_ndof_orbit,
VIEW3D_OT_ndof_orbit_zoom, VIEW3D_OT_ndof_pan and
VIEW3D_OT_ndof_all operators to the ED_view3d_navigation_
navigation utility so that these operations can be used in the
transform operators.

Builds:
https://builder.blender.org/download/patch/PR109792/

This commit implements the `VIEW3D_OT_ndof_orbit`, `VIEW3D_OT_ndof_orbit_zoom`, `VIEW3D_OT_ndof_pan` and `VIEW3D_OT_ndof_all` operators to the `ED_view3d_navigation_` navigation utility so that these operations can be used in the transform operators. **Builds:** https://builder.blender.org/download/patch/PR109792/
Germano Cavalcante added the
Module
Modeling
label 2023-07-06 19:00:36 +02:00
Germano Cavalcante requested review from Dalai Felinto 2023-07-06 19:01:43 +02:00
Author
Member

This patch needs testing. Currently I don't own any NDOF device.

@blender-bot package

This patch needs testing. Currently I don't own any NDOF device. @blender-bot package
Member

Package build started. Download here when ready.

Package build started. [Download here](https://builder.blender.org/download/patch/PR109792) when ready.
Germano Cavalcante requested review from Campbell Barton 2023-07-06 19:02:54 +02:00

Hi,

I tested it (with Sergey). My thoughts:

  • It works but ...
  • I still had to turn navigation transform in the user preference for it to work.
  • It is a bit strange to rotate like this and have the mouse still hanging elsewhere and the object "following" the mouse. Effectively it means you are moving the object while orbiting. It is probably the same case for trackpads though.
Hi, I tested it (with Sergey). My thoughts: * It works but ... * I still had to turn navigation transform in the user preference for it to work. * It is a bit strange to rotate like this and have the mouse still hanging elsewhere and the object "following" the mouse. Effectively it means you are moving the object while orbiting. It is probably the same case for trackpads though.
Author
Member

I still had to turn navigation transform in the user preference for it to work.

Removing the Navigate during transform option depends on #109754.
However, as the patch here touches an area that is affected by the other one, and the other one is still WIP, it would be interesting to apply this one first.

> I still had to turn navigation transform in the user preference for it to work. Removing the `Navigate during transform` option depends on #109754. However, as the patch here touches an area that is affected by the other one, and the other one is still WIP, it would be interesting to apply this one first.
Dalai Felinto approved these changes 2023-07-07 15:42:16 +02:00
Dalai Felinto left a comment
Owner

Right, well as far as NDOF is concerned the patch seems fine then (the other issues being common to trackpad or discussed on #109754). I didn't check the code though.

Right, well as far as NDOF is concerned the patch seems fine then (the other issues being common to trackpad or discussed on #109754). I didn't check the code though.
Germano Cavalcante force-pushed support_ndof from 4c17efffa5 to dcb7ad36cb 2023-07-08 02:28:32 +02:00 Compare
Author
Member

I have implemented a fix (in dcb7ad36cb) that makes navigation operators coming from trackpad or NDOF behave similarly to mouse ones.

I'll also wait for @ideasman42 's tests (if it seems necessary).

@blender-bot package

I have implemented a fix (in dcb7ad36cb) that makes navigation operators coming from trackpad or NDOF behave similarly to mouse ones. I'll also wait for @ideasman42 's tests (if it seems necessary). @blender-bot package
Member

Package build started. Download here when ready.

Package build started. [Download here](https://builder.blender.org/download/patch/PR109792) when ready.
Germano Cavalcante merged commit 37d1d4cb07 into main 2023-07-10 14:57:48 +02:00
Germano Cavalcante deleted branch support_ndof 2023-07-10 14:57:49 +02: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
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#109792
No description provided.