The sensitivity of 3D view navigation depends on Line Width preference #79787

Closed
opened 2020-08-14 19:08:35 +02:00 by Yevgeny Makarov · 8 comments

Blender Version
Broken: version: 2.91.0 Alpha

Short description of error
The sensitivity of 3D view navigation depends on the ui_line_width user preference.
Caused by using U.pixelsize in the 'view3d_edit.c', (must be U.dpi_fac as I understand it).

Especially noticeable when rotating the 3D view.

**Blender Version** Broken: version: 2.91.0 Alpha **Short description of error** The sensitivity of 3D view navigation depends on the `ui_line_width` user preference. Caused by using `U.pixelsize` in the 'view3d_edit.c', (must be `U.dpi_fac` as I understand it). Especially noticeable when rotating the 3D view.
Author
Member

Added subscriber: @jenkm

Added subscriber: @jenkm

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

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

Added subscribers: @JulianEisel, @ideasman42, @iss

Added subscribers: @JulianEisel, @ideasman42, @iss

Changed status from 'Confirmed' to: 'Archived'

Changed status from 'Confirmed' to: 'Archived'
Richard Antalik self-assigned this 2020-08-18 02:44:06 +02:00

Now thinking about this a bit more I am not sure if this is bug really. U.pixelsize is to compensate line visibility in high resolution screens. See e82b7f1527
So movement of 1 inch on 100 DPI screen should behave the same as 1 inch movement on 200 DPI screen with U.pixelsize of 2.

I was comparing just how movement in pixel translates to rotation and confirmed on that basis. So question is if this should be based rather on U.dpi_fac or perhaps largest of those two.

So unless @ideasman42 or @JulianEisel don't think this should be changed, I will close this, because it is working as designed.

Now thinking about this a bit more I am not sure if this is bug really. `U.pixelsize` is to compensate line visibility in high resolution screens. See e82b7f1527 So movement of 1 inch on 100 DPI screen should behave the same as 1 inch movement on 200 DPI screen with `U.pixelsize` of 2. I was comparing just how movement in pixel translates to rotation and confirmed on that basis. So question is if this should be based rather on `U.dpi_fac` or perhaps largest of those two. So unless @ideasman42 or @JulianEisel don't think this should be changed, I will close this, because it is working as designed.

This issue was referenced by 6978635622

This issue was referenced by 6978635622cc77a559a3f888945d840e2e80a52d

Changed status from 'Archived' to: 'Resolved'

Changed status from 'Archived' to: 'Resolved'

Thanks @iss for looking into this. The line width setting impacting the pixelsize means we shouldn't use it for scaling cursor motion.

Committed fixes 6978635622 & d1057890c4.

There are some other areas this should be changed, such as editmesh_bevel.c: pixels_per_inch = U.dpi * U.pixelsize; & ED_view3d_pixel_size use, however these changes aren't so straightforward.

Thanks @iss for looking into this. The line width setting impacting the pixelsize means we shouldn't use it for scaling cursor motion. Committed fixes 6978635622 & d1057890c4. There are some other areas this should be changed, such as `editmesh_bevel.c: pixels_per_inch = U.dpi * U.pixelsize;` & `ED_view3d_pixel_size` use, however these changes aren't so straightforward.
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#79787
No description provided.