Bug 339349 - Huge Pen-Cursor offset with Surface pro 3
Summary: Huge Pen-Cursor offset with Surface pro 3
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Tablets (tablet issues are only very rarely bugs in Krita!) (show other bugs)
Version: 2.9 Beta
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL: https://vine.co/v/O7PeIjM3Bpt
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-24 08:27 UTC by pepelandrive
Modified: 2014-12-04 16:58 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pepelandrive 2014-09-24 08:27:40 UTC
When you try draw with the surface pro pen the cursor have a huge offset, see video https://vine.co/v/O7PeIjM3Bpt

Cheers!

Reproducible: Always




Testing in a Surface Pro 3 with windows 8.1
Comment 1 pepelandrive 2014-09-24 09:03:05 UTC
More info: the pen it´s working with the WinTab_Setup_x64_1.0.0.17 driver
Comment 2 wolthera 2014-10-04 12:47:28 UTC
putting this in tablet support.
Comment 3 Halla Rempt 2014-10-04 14:45:36 UTC
Hm... That' strange, since surfaceproartist (and some others) reported that Krita works perfectly with an Surface Pro 3. I guess I need test hardware...
Comment 4 Rob 2014-10-09 15:52:12 UTC
I can confirm this , as per my other post:
Version 2.9 Pre-Alpha (git 63888ac) Pen offset 

Krita tracked correctly with Krita_x64_2.8.3.0.  But is broke with 2.9 Pre-Alpha (git 63888ac).

All my other art/graphics program are working with N-trig WinTab X64 v1.0.17
Comment 5 Halla Rempt 2014-11-05 12:06:34 UTC
I'm trying to get a dev unit out of Microsoft. I tried reproducing the bug with my wacom and win7 by setting desktop scaling to 150%, but that didn't trigger the bug, so it's something surface/ntrig/win8 specific...
Comment 6 Halla Rempt 2014-12-04 11:03:09 UTC
Okay... It _is_ Ntrig's fault. Following http://www.wacomeng.com/windows/docs/Wintab_v140.htm, we have:

lcSysExtX, lcSysExtY: Together specify the extent of the screen mapping area for sys­tem cursor tracking, in screen coordinates.

On this 3200x1800 screen, n-trig's wintab driver returns: 1280x720.

This needs a workaround, obviously, but it's just as obviously wrong -- wacom, yiynova, huion and uc-logic provide the correct values. I've contacted n-trig about this.
Comment 7 Halla Rempt 2014-12-04 13:53:17 UTC
Git commit 138a21578c2de3fd02125fe1702a7949d6040b43 by Boudewijn Rempt.
Committed on 04/12/2014 at 13:50.
Pushed by rempt into branch 'master'.

NTrig's wintab drivers work differently than other wintab
drivers when desktop scaling is enabled, so make the process
aware of desktop scaling before initializing the driver.

This shouldn't make any difference with other drivers

M  +6    -1    krita/main.cc

http://commits.kde.org/calligra/138a21578c2de3fd02125fe1702a7949d6040b43
Comment 8 Halla Rempt 2014-12-04 14:02:44 UTC
Here's a special windows build to test on the surface pro 3: http://files.kde.org/krita/windows/krita_x64.2.8.79.24.zip

On my device, the offset is gone, but I have a kind of weird problem when pressure exceeds some level the line stops. Please help testing this build!
Comment 9 Rob 2014-12-04 16:13:38 UTC
Initial testing:
So far tracking is working ( tested at 11x17 inches @ 600 dpi), and I am not having any "weird" pressure problems.  I test for 15 minutes with large brushes ranging in lines starting hair thickness to full 500 wide.

Though I did have an issue:
I was not even using  a keyboard and I lost my left sife menu ( brush, color, layers, etc).

I can't seem to find the menu combo to bring it back. Is there a reset to restore Krita back to the original UI?
Comment 10 Halla Rempt 2014-12-04 16:24:42 UTC
Okay, that's good news. As for bringing back the dockers: check whether you have accidentally pressed tab so you got into canvas-only mode. If that's not it, and you still have the top toolbar, press the right-most button and select "Default workspace".
Comment 11 Rob 2014-12-04 16:55:39 UTC
I did my first real sketch with the Surface pro 3 build and tracking is working with numerous resolutions, brushes, and line thickness.  This is a great starting point to move on and incorporate into the actual build.
Comment 12 Halla Rempt 2014-12-04 16:58:00 UTC
I'm so happy to have this ready in time for 2.9 :-) The fix will also be in the next dev build, provisionally expected tomorrow.