Bug 433440 - Allow calibration of tilt-direction signal
Summary: Allow calibration of tilt-direction signal
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Brush engines (show other bugs)
Version: unspecified
Platform: Other Unspecified
: NOR wishlist
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-22 18:39 UTC by Wojtek Trybus
Modified: 2025-02-24 13:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Proposed gui - angle offset selector in "Tablet Settings" (80.41 KB, image/png)
2021-02-22 18:39 UTC, Wojtek Trybus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wojtek Trybus 2021-02-22 18:39:53 UTC
Created attachment 136053 [details]
Proposed gui - angle offset selector in "Tablet Settings"

SUMMARY
The idea is to allow calibration of a tilt-direction signal, similarly as we do with pressure sensitivity. Angle specified by the user in the settings, would get subtracted from the tilt-direction signal before it reaches the curve in brush preset. 

SOLVED PROBLEMS
I believe it would solve two problems with tilt sensor:
1. it would allow to unify the tilt sensitive brushes among right- and left-handed users, and those without tilt support. Right now those three types of user would experience different rotation due to the way of holding a pen, and fixing it requires changes in every single preset. 

2. The angle specified in the brush editor becomes quite arbitrary, when used along with tilt-rotation. It gets especially visible with angle widget introduced in 4.4.3.

PROPOSED GUI
Comment 1 Wojtek Trybus 2021-02-22 18:45:15 UTC
PROPOSED GUI
this feature requires only one angle widget specified in tablet settings, as shown in the attachment.

ADDITIONAL INFO
link to the entire discussion on KA:
https://krita-artists.org/t/feature-request-global-brush-angle-offset-for-tilt-direction/17442
Comment 2 Dmitry Kazakov 2025-02-24 13:21:43 UTC
Git commit 4aff1e27e5eec2c92c967b9128edb9ec8fd5848a by Dmitry Kazakov, on behalf of Maciej Jesionowski.
Committed on 24/02/2025 at 13:21.
Pushed by dkazakov into branch 'master'.

Add a global pen tilt direction offset

This is meant to tune the brushes' response based
on user's hand preference.

Co-authored-by: Maciej Jesionowski <yavnrh@gmail.com>
Co-authored-by: Dmitry Kazakov <dimula73@gmail.com>

M  +27   -1    libs/image/brushengine/kis_paint_information.cc
M  +13   -2    libs/image/brushengine/kis_paint_information.h
M  +8    -1    libs/ui/dialogs/kis_dlg_preferences.cc
M  +14   -1    libs/ui/forms/wdgtabletsettings.ui
M  +12   -1    libs/ui/tool/kis_painting_information_builder.cpp
M  +1    -0    libs/ui/tool/kis_painting_information_builder.h

https://invent.kde.org/graphics/krita/-/commit/4aff1e27e5eec2c92c967b9128edb9ec8fd5848a