Walk/fly navigation doesn't work with graphic tablets #65559

Closed
opened 4 years ago by MichalDresner · 11 comments

System Information
Operating system: Windows 10
Graphics card: GTX1070
Tablet: Wacom Intuos4 L

Blender Version
Broken: (example: 2.80, 0efe89bdd8, 2019-06-03), 2.79

Short description of error
When using fly or walk navigation with a graphic tablet (in absolute mode, not mouse mode) the controls don't respond properly, the view just rotates chaotically. For reference, Unreal Engine interprets pen input well for FPS-type control, using offset from initial pen position.

Exact steps for others to reproduce the error
In 2.8 press shift-tilde, try navigating with the mouse, then do the same using a graphic tablet.

**System Information** Operating system: Windows 10 Graphics card: GTX1070 Tablet: Wacom Intuos4 L **Blender Version** Broken: (example: 2.80, 0efe89bdd810, 2019-06-03), 2.79 **Short description of error** When using fly or walk navigation with a graphic tablet (in absolute mode, not mouse mode) the controls don't respond properly, the view just rotates chaotically. For reference, Unreal Engine interprets pen input well for FPS-type control, using offset from initial pen position. **Exact steps for others to reproduce the error** In 2.8 press shift-tilde, try navigating with the mouse, then do the same using a graphic tablet.
Poster

Added subscriber: @MichalDresner

Added subscriber: @MichalDresner
ZedDB commented 4 years ago
Collaborator

Added subscribers: @brecht, @ZedDB

Added subscribers: @brecht, @ZedDB
brecht was assigned by ZedDB 4 years ago
ZedDB commented 4 years ago
Collaborator

@brecht can you reproduce this?

@brecht can you reproduce this?
brecht removed their assignment 3 years ago

Added subscriber: @stephane

Added subscriber: @stephane

Update 2020-06-15 - The problem I described below is not related to my Wacom tablet in any way. I finally pinned the root cause to be a custom Xorg "Coordinate Transform Matrix" mapping the mouse DPI to the monitor.

The Xorg bug can be found here: https://gitlab.freedesktop.org/xorg/xserver/-/issues/633

To summarize, a custom coordinate transform matrix affects relative mouse move events sent by Xorg. A fixed offset is added to those relative move events, while they should be 'centered' around (0,0) on average. This creates the rotation drag effect in Blender walk mode that I described below, but it's definitely not a Blender problem.


Hi,

I have a similar problem on Ubuntu 18.04, but somehow my Wacom tablet seems to temporarily solve the problem instead of causing it.

I can't use the walk navigation mode with my Logitech mouse: moving the mouse results in some fast and uncontrolled up/right field of view rotation. Fly mode is not affected, only Walk mode is.
When I connect my Wacom tablet and use the pen for a fraction of a second, "something" is reset and the mouse then functions correctly, without the initial rotational drift.
If I leave the walk navigation mode and re-enable it, the drift occurs again until I move the tablet pen a bit.

I suspect that the absolute vs relative mouse coordinates handling is the source of the trouble.
As a side note, I've experienced the same kind of issues with the mouse handling of the SDL graphic library in the past, on both Linux and MacOS.

This weird behavior happens with Blender 2.80 and 2.81 beta. Versions 2.79 and older are working fine in Walk mode.
Since the normal 3D view and the Fly mode are not affected, something must be done differently with the mouse input in the Walk mode that causes the issue.

Edit: mouse input is indeed read in absolute mode after using the tablet pen, with no wrapping happening (mouse is not recentered after a move event is received). Would the relative position (used before using the table pen) be returned with a non zero (x,y) value to start with, that would induce the observed rotational drift.

**Update 2020-06-15** - The problem I described below is **not related to my Wacom tablet** in any way. I finally pinned the root cause to be a custom Xorg "Coordinate Transform Matrix" mapping the mouse DPI to the monitor. The Xorg bug can be found here: https://gitlab.freedesktop.org/xorg/xserver/-/issues/633 To summarize, a custom coordinate transform matrix affects relative mouse move events sent by Xorg. A fixed offset is added to those relative move events, while they should be 'centered' around (0,0) on average. This creates the rotation drag effect in Blender walk mode that I described below, but it's definitely not a Blender problem. ----- Hi, I have a similar problem on Ubuntu 18.04, but somehow my Wacom tablet seems to temporarily solve the problem instead of causing it. I can't use the walk navigation mode with my Logitech mouse: moving the mouse results in some fast and uncontrolled up/right field of view rotation. Fly mode is not affected, only Walk mode is. When I connect my Wacom tablet and use the pen for a fraction of a second, "something" is reset and the mouse then functions correctly, without the initial rotational drift. If I leave the walk navigation mode and re-enable it, the drift occurs again until I move the tablet pen a bit. I suspect that the absolute vs relative mouse coordinates handling is the source of the trouble. As a side note, I've experienced the same kind of issues with the mouse handling of the SDL graphic library in the past, on both Linux and MacOS. This weird behavior happens with Blender 2.80 and 2.81 beta. Versions 2.79 and older are working fine in Walk mode. Since the normal 3D view and the Fly mode are not affected, something must be done differently with the mouse input in the Walk mode that causes the issue. Edit: mouse input is indeed read in absolute mode after using the tablet pen, with no wrapping happening (mouse is not recentered after a move event is received). Would the relative position (used before using the table pen) be returned with a non zero (x,y) value to start with, that would induce the observed rotational drift.
brecht commented 3 years ago
Owner

I can confirm walk/fly doesn't work well for tablets, probably it was never really tested or tweaked for that case.

I can confirm walk/fly doesn't work well for tablets, probably it was never really tested or tweaked for that case.
Collaborator

Added subscriber: @PrototypeNM1

Added subscriber: @PrototypeNM1
Collaborator

@MichalDresner can you test if the issue still exists in Blender 2.92 Alpha ?

With the above build, can you check with the Tablet API set to Wintab and again set to Windows Ink?

@MichalDresner can you test if the issue still exists in [Blender 2.92 Alpha ](https://builder.blender.org/download/blender-2.92.0-316a5914bcc6-windows64.zip)? With the above build, can you check with the `Tablet API` set to `Wintab` and again set to `Windows Ink`?
PrototypeNM1 self-assigned this 2 years ago
Collaborator

Changed status from 'Confirmed' to: 'Needs User Info'

Changed status from 'Confirmed' to: 'Needs User Info'
Collaborator

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed.

Thanks again for the report. If the problem persists please open a new report with the required information.

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed. Thanks again for the report. If the problem persists please open a new report with the required information.
Collaborator

Changed status from 'Needs User Info' to: 'Archived'

Changed status from 'Needs User Info' to: 'Archived'
PrototypeNM1 closed this issue 2 years ago
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/Collada
Interest/Compositing
Interest/Core
Interest/Cycles
Interest/Dependency Graph
Interest/Development Management
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/Modeling
Interest/Modifiers
Interest/Motion Tracking
Interest/Nodes & Physics
Interest/Overrides
Interest/Performance
Interest/Performance
Interest/Physics
Interest/Pipeline, Assets & I/O
Interest/Platforms, Builds, Tests & Devices
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
legacy module/Animation & Rigging
legacy module/Core
legacy module/Development Management
legacy module/Eevee & Viewport
legacy module/Grease Pencil
legacy module/Modeling
legacy module/Nodes & Physics
legacy module/Pipeline, Assets & IO
legacy module/Platforms, Builds, Tests & Devices
legacy module/Python API
legacy module/Rendering & Cycles
legacy module/Sculpt, Paint & Texture
legacy module/Triaging
legacy module/User Interface
legacy module/VFX & Video
legacy project/1.0.0-beta.2
legacy project/Asset Browser (Archived)
legacy project/BF Blender: 2.8
legacy project/BF Blender: After Release
legacy project/BF Blender: Next
legacy project/BF Blender: Regressions
legacy project/BF Blender: Unconfirmed
legacy project/Blender 2.70
legacy project/Code Quest
legacy project/Datablocks and Libraries
legacy project/Eevee
legacy project/Game Animation
legacy project/Game Audio
legacy project/Game Data Conversion
legacy project/Game Engine
legacy project/Game Logic
legacy project/Game Physics
legacy project/Game Python
legacy project/Game Rendering
legacy project/Game UI
legacy project/GPU / Viewport
legacy project/GSoC
legacy project/Infrastructure: Websites
legacy project/LibOverrides - Usability and UX
legacy project/Milestone 1: Basic, Local Asset Browser
legacy project/Nodes
legacy project/OpenGL Error
legacy project/Papercut
legacy project/Pose Library Basics
legacy project/Retrospective
legacy project/Tracker Curfew
legacy project/Wintab High Frequency
Meta/Good First Issue
Meta/Papercut
migration/requires-manual-verification
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 & Devices
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 Information 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

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#65559
Loading…
There is no content yet.