Bug 397570 - Error in tablet aspect ratio causing traced circles to draw as elipses
Summary: Error in tablet aspect ratio causing traced circles to draw as elipses
Status: RESOLVED UPSTREAM
Alias: None
Product: krita
Classification: Applications
Component: Tablets (tablet issues are only very rarely bugs in Krita!) (show other bugs)
Version: 4.1.1
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Dmitry Kazakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-18 05:57 UTC by Christopher Knoll
Modified: 2019-04-17 09:33 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Tracing a Nickel in Krita 4.1.1 (1.05 MB, image/png)
2018-08-18 05:57 UTC, Christopher Knoll
Details
Tracing a nickel in MSPaint (12.32 KB, image/png)
2018-08-18 05:57 UTC, Christopher Knoll
Details
Tracing a nickel in Sketchbook (147.22 KB, image/png)
2018-08-18 05:58 UTC, Christopher Knoll
Details
Single Monitor with tablet area specified (249.07 KB, image/png)
2018-08-24 18:15 UTC, Christopher Knoll
Details
Single monitor, full tablet area (286.10 KB, image/png)
2018-08-24 18:17 UTC, Christopher Knoll
Details
Logfile with 1 screen enabled (12.59 KB, text/plain)
2018-09-21 20:59 UTC, Christopher Knoll
Details
This is the application showing the flattened circle (showng the elipse guide on the trace) (154.01 KB, image/png)
2018-09-21 21:00 UTC, Christopher Knoll
Details
Screenshot of Banboo settings and a traced coin (83.75 KB, image/png)
2019-04-17 09:31 UTC, Dmitry Kazakov
Details
Screenshot of Intuos5 settings and traced coin (81.74 KB, image/png)
2019-04-17 09:31 UTC, Dmitry Kazakov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Knoll 2018-08-18 05:57:05 UTC
Created attachment 114471 [details]
Tracing a Nickel in Krita 4.1.1

On windows 10, 2 monitor setup: 1920x1080 + 1280x1024.  
Tablet: Wacom Intuos tablet, latest drivers are installed.
App version: Krita 4.1.1

Issue:
Using a quarter as a trace template, when tracing the circle on a tablet, the circle comes across as an ellipse instead of tracing a circle. It is less exaggerated when disabling one monitor and launching the app on 1 monitor.

Have changed preferences on the tablet to custom draw area size, custom monitor display area, with and without windows INK.  

MS Paint and Adobe Sketchbook do not exhibit this issue, although I understand it's not actually a bug if Krita works differently than another app, or if the app does soemthing unexpected (I expected to trace a circle, but it actually traced an ellipse).

It does not seem to make a difference between what document template that is used (Ie: A6 or a custom resolution with some arbitrary DPI does not seem to change the behavior).  

Attaching images for Krita 4.1.1, MSPaint and Adobe Sketchbook to see the different effects.
Comment 1 Christopher Knoll 2018-08-18 05:57:47 UTC
Created attachment 114472 [details]
Tracing a nickel in MSPaint
Comment 2 Christopher Knoll 2018-08-18 05:58:11 UTC
Created attachment 114473 [details]
Tracing a nickel in Sketchbook
Comment 3 Christopher Knoll 2018-08-18 06:02:20 UTC
I should also add:

I tried different options for brush smoothing: weighted and none.  Did not have an impact on how the circle-trace was recieved.
Comment 4 Halla Rempt 2018-08-22 10:50:50 UTC
No, it looks more like the tablet calibration is wrong. I suspect you don't see the issue in paint because that doesn't recognize the tablet as a tablet, and not in sketchbook because that uses the windows ink api instead of wintab. You could try to recalibrate your tablet with the wacom tablet utility or swtich krita over to the windows 8 pointer api option (settings/configure krita/tablet) and see whether that helps. 

I'm afraid it's not something we can do anything about inside Krita, though -- we have to make do with the coordinates the tablet driver sends us.
Comment 5 Christopher Knoll 2018-08-23 03:00:27 UTC
I'm not seeing it in Adobe Sketchbook. It is definitely receiving pen input because it responds to pressure of the pen.

This is definitely a problem in some subsystem of Krita.  As I explained in my screenshots, the calibration is working properly in other apps.  It could very well be how Krita is interpreting the coordinates passed on by the tablet, but Krita's interpretation is wrong, and it seems to be based on the maximum viewable area of the desktop (ie: multi monitors and the native resolution of a single monitor of 1920x1080 shows the issue.

I've adjusted (via the tablet properties) the visible portion of the 'capture area' on the screen and on the tablet, and Krita is just reading the information wrong.
Comment 6 Christopher Knoll 2018-08-23 03:02:21 UTC
Would it be possible for someone to post a screenshot of their own tablets where you are able to trace a coin on their tablet (like a Wacom Intuos tablet) to reproduce this issue?
Comment 7 Halla Rempt 2018-08-24 08:13:01 UTC
It works on my mobile studio pro, but that's a single monitor setup.
Comment 8 Christopher Knoll 2018-08-24 17:57:03 UTC
@Boudewijn Rempt : could you clarify: is that the type of table that let's you draw directly on the screen? Because I can imagine that it's a 1:1 mapping between the screen drawing surface and the image presented in Krita.

I'm looking for specific examples from people of it working with the type of tablet that's just a drawing tablet (not a monitor/screen interface), where the coordinates of the 'pad' need some translation between the dimensions of the tablet and the dimensions of the external monitor. I think in the cases where the 'pad' is the actual screen, it's 1:1 and no complicated transform is required.  In the cases of things like the Wacom Intuos tablet, maybe a transform is required.

When I go into the tablet properties, there's really no way I can get a 1:1 ratio between screen resoltuion (in pixels) and tablet coordinates (which they describe as 'Counts'(?!?).  I don't know how many 'Counts' go into a 'Pixel'...but the default full size of the tablet is 9500 'Counts' by 15200 'Counts'.  I can try an experiment that i have a ratio of 1920/1080 (1.778) on the tablet to see how that will work.
Comment 9 Christopher Knoll 2018-08-24 18:15:01 UTC
Created attachment 114587 [details]
Single Monitor with tablet area specified

I've disabled a second monitor and the trace is 'closer' to a circle, but still distorted.  I've submitted this test trying to make the table area in proportion to the screen resolution.
Comment 10 Christopher Knoll 2018-08-24 18:17:22 UTC
Created attachment 114588 [details]
Single monitor, full tablet area

This is a trace where the tablet properties uses the full tablet space, and only a single monitor is enabled.  The distortion between the 'specified dimensions of the tablet' seems to be the same as using the full tablet space.  So I don't think the tablet properties is at issue here. Rather it is the 'total screen resolution' that is available on the desktop interfering with how the coordinates of the tablet are being interpreted.
Comment 11 Christopher Knoll 2018-08-24 18:18:40 UTC
Note, in the last 'single monitor trace', I used a guide to draw the blue circle as the 'proper circle'..this was not drawn from the tablet, this was drawn by using the ellipse guide.
Comment 12 Halla Rempt 2018-08-26 13:55:24 UTC
Yes, it's a display tablet. Right now, I don't have a wacom tablet that's still supported on Windows 10 and doesn't have a screen.
Comment 13 Christopher Knoll 2018-09-17 13:37:02 UTC
I see this is marked as 'needs more information' but I do now know what more details I can provide: I've given tablet hardware, screenshots, etc.  What more should I provide?
Comment 14 Halla Rempt 2018-09-17 13:45:59 UTC
I should have changed the status of the bug with my last comment.
Comment 15 Dmitry Kazakov 2018-09-18 15:53:31 UTC
Hi, Christopher!

Could you generate a tablet log for me? Here is a manual on how to get it:

https://docs.krita.org/en/KritaFAQ.html#windows

Steps:
1) Disable the second screen
2) Go to wacom driver and set it to "Map current screen with keeping aspect ration" (I cannot remember the exact name of this option).
3) Reboot(!). This is important, because some Wacom drivers don't update their state until reboot
4) Check if tablet settings are still the same
5) Generate tablet log as described in the manual above.

If possible, make a screen recording of the strokes at step 5, but it is optional, we can live without it :)

This test will let us know if multidisplay mode is involved somehow.
Comment 16 Christopher Knoll 2018-09-21 20:59:52 UTC
Created attachment 115157 [details]
Logfile with 1 screen enabled
Comment 17 Christopher Knoll 2018-09-21 21:00:33 UTC
Created attachment 115158 [details]
This is the application showing the flattened circle (showng the elipse guide on the trace)
Comment 18 Halla Rempt 2019-04-16 10:21:26 UTC
Dmitry, please take a look -- I guess you missed that the reporter has added the information you requested.
Comment 19 Dmitry Kazakov 2019-04-17 09:30:25 UTC
Hi, Christopher!

I have tested both Krita 4.1.7 and Kirta 4.2-prealpha on Wacom Bamboo and Wacom Intuos5 and I cannot reproduce the problem. I have selected "proportional" option in the driver settings and the traced coin looks perfectly circular.

Your tablet log also looks perfectly fine. So the problem might have been somewhere in the broken Wacom drivers, which didn't properly implement "proportional" option.

Please try to update Wacom driver and Krita to at least Krita 4.1.7 and check. If the problem still persists, try to reset your driver settings, there is a special Wacom app for that. If all that doesn't help, please reopen the bug and we will look further.
Comment 20 Dmitry Kazakov 2019-04-17 09:31:13 UTC
Created attachment 119455 [details]
Screenshot of Banboo settings and a traced coin
Comment 21 Dmitry Kazakov 2019-04-17 09:31:40 UTC
Created attachment 119456 [details]
Screenshot of Intuos5 settings and traced coin
Comment 22 Dmitry Kazakov 2019-04-17 09:33:00 UTC
I'll mark the bug as resolved, please reopen it if the problem still persists.