Page MenuHome
Feed Advanced Search

Feb 12 2019

Christopher Peerman (chris_82) added a comment to D4314: Fixes to T55589 and T60967 stylus pressure.

Thanks I'll try update soon. I just spotted in processPointerEvent, if I added window->setTabletData(&pointerInfo.tabletData); to the GHOST_kEventButtonDown case statement it should fix the problem you're experiencing.

Feb 12 2019, 2:25 PM · Platform: Windows

Feb 6 2019

Christopher Peerman (chris_82) added a comment to T60967: Grease Pencil pressure sensitivity issue with Adesso Cyber tablet T12.

Pull request in review https://developer.blender.org/D4314

Feb 6 2019, 8:11 PM · BF Blender
Christopher Peerman (chris_82) added a comment to T55589: Microsoft Surface pens does not send first events when moves.

Pull request in review https://developer.blender.org/D4314

Feb 6 2019, 8:11 PM · BF Blender
Christopher Peerman (chris_82) created D4314: Fixes to T55589 and T60967 stylus pressure.
Feb 6 2019, 8:09 PM · Platform: Windows

Feb 4 2019

Christopher Peerman (chris_82) added a comment to T55589: Microsoft Surface pens does not send first events when moves.

Just to give an update to this. I've been working on this and I hope to have something put up for code review later this week. The new version uses the WM_POINTERxxx messages for Touch and Stylus and the GetPointerInfo, GetPointerPenInfo and GetPointerTouch info. So far it seems to be working well, I've just got a little more work to do with it and spend some time testing it. I also hope that this implementation will also fix issues some users have seen on Windows 8.

Feb 4 2019, 4:33 PM · BF Blender
Christopher Peerman (chris_82) added a comment to T60967: Grease Pencil pressure sensitivity issue with Adesso Cyber tablet T12.

Just to give an update to this. I've been working on this and I hope to have something put up for code review later this week. The new version uses the WM_POINTERxxx messages for Touch and Stylus and the GetPointerInfo, GetPointerPenInfo and GetPointerTouch info. So far it seems to be working well, I've just got a little more work to do with it and spend some time testing it. I also hope that this implementation will also fix issues some users have seen on Windows 8.

Feb 4 2019, 4:33 PM · BF Blender

Jan 30 2019

Christopher Peerman (chris_82) added a comment to T60967: Grease Pencil pressure sensitivity issue with Adesso Cyber tablet T12.

Thanks :)

Jan 30 2019, 1:37 PM · BF Blender
Christopher Peerman (chris_82) added a comment to T60967: Grease Pencil pressure sensitivity issue with Adesso Cyber tablet T12.

Currently Blender uses WM_MOUSExxx and WM_xBUTTON events, as well as WM_POINTERUPDATE events where the pressure is processed. If the last WM_POINTERUPDATE event percieved the pen was off the screen before a WM_xBUTTONUP it may have set the pressure to full (the logic is so that users can remove the pen and draw with the mouse). I'm currently in the process of adding support for more of the WM_POINTERxxx events which should hopefully fix this.

Jan 30 2019, 7:58 AM · BF Blender

Jan 29 2019

Christopher Peerman (chris_82) added a comment to T55589: Microsoft Surface pens does not send first events when moves.

I've taken a look at the legacy behaviour it seems that with the new behaviour we get WM_POINTERDOWN and WM_LBUTTONDOWN, followed by WM_POINTERUPDATE, WM_TOUCH and WM_MOUSEMOVE events. However with machines running legacy versions of Windows we only get WM_POINTERDOWN and WM_POINTERUPDATE events only, until after a long delay and we'll get the WM_LBUTTONDOWN and WM_MOUSEMOVE events.

Jan 29 2019, 9:17 AM · BF Blender

Jan 26 2019

Christopher Peerman (chris_82) added a comment to T55589: Microsoft Surface pens does not send first events when moves.

For my CTH-470 tablet I got the driver from here https://www.wacom.com/en/support/product-support/drivers. I did my test earlier with the Wacom drivers uninstalled.

Jan 26 2019, 12:31 AM · BF Blender

Jan 25 2019

Christopher Peerman (chris_82) added a comment to T55589: Microsoft Surface pens does not send first events when moves.

I just tried enabling the 'LegacyPenInteractionModel' which a few people have recommended around the internet using the following commands and it definitely doesn't work with the fix. I'll take a look and see if I can work out any ways of improving it with legacy mode enabled.

Jan 25 2019, 5:22 PM · BF Blender
Christopher Peerman (chris_82) added a comment to T55589: Microsoft Surface pens does not send first events when moves.

I just tried the latest blender-2.80-3d8cbb534f82-win64 build on my Surface Book and it is working fine on there. I don't have the WinTab drivers for the Surface Book installed, I do however have the drivers for my Wacom Bamboo installed. When I get the chance I'll try different combinations of drivers and see if that has any effect. Are there any other settings you may have changed at all? I'll take a look through the various Pen & Ink settings and see if this makes any difference.

Jan 25 2019, 9:22 AM · BF Blender

Jan 22 2019

Fabio Roldan (fabioroldan) awarded rB469320791847: Windows: add support for Windows Ink. a Love token.
Jan 22 2019, 6:33 PM

Jan 13 2019

Christopher Peerman (chris_82) added a comment to D4203: Fix T55589: Microsoft Surface pens does not send first events when moves.

I created this based off the blender2.8 branch.

Jan 13 2019, 10:45 PM · Platform: Windows, BF Blender: 2.8
Christopher Peerman (chris_82) added a comment to T55589: Microsoft Surface pens does not send first events when moves.

I've just put this pull request which should help https://developer.blender.org/D4203

Jan 13 2019, 10:16 PM · BF Blender
Christopher Peerman (chris_82) created D4203: Fix T55589: Microsoft Surface pens does not send first events when moves.
Jan 13 2019, 10:15 PM · Platform: Windows, BF Blender: 2.8
Christopher Peerman (chris_82) updated the diff for D4165: Fix T57869 : No pressure sensitivity with Surface Pen on Surface Laptop.

Now with Preferences control allowing you to switch between Automatic, Native (as in the API introduced in Windows 8), Wintab and None. A demo video is here https://youtu.be/qX0zsG6LNDw

Jan 13 2019, 8:57 PM · Grease Pencil, Platform: Windows, BF Blender: 2.8

Jan 6 2019

Christopher Peerman (chris_82) added a comment to D4165: Fix T57869 : No pressure sensitivity with Surface Pen on Surface Laptop.

After submitting this I had a search and found the WinTab driver for the Surface Book. The attached video shows it in operation with the WinTab driver installed https://youtu.be/hTyGAwSfF5M. I'll need to spend more work on it to add settings to the enable/disable WinTab and Windows Ink. Is there any documentation how you add preferences?

Jan 6 2019, 9:25 PM · Grease Pencil, Platform: Windows, BF Blender: 2.8
Christopher Peerman (chris_82) updated the diff for D4165: Fix T57869 : No pressure sensitivity with Surface Pen on Surface Laptop.

I made the following changes to the code

  • Added description what the pressure check is for
  • Added tilt support (Pointer API supports -90 to +90, with 0 for vertical pen)
  • Caches GetPointerInfo and GetPointerPenInfo
  • The LoadLibrary requests to user32.dll and wintab.dll are now released using FreeLibrary off in the destructor
  • Nulling out references in the destructor
  • Fixed bug with the eraser code, now supports pressure sensitivity.
Jan 6 2019, 8:50 PM · Grease Pencil, Platform: Windows, BF Blender: 2.8

Jan 4 2019

Christopher Peerman (chris_82) added a comment to D4165: Fix T57869 : No pressure sensitivity with Surface Pen on Surface Laptop.

Thanks for taking a look at this. I'm planning do to some more work on it on Sunday evening and fix the issues you've highlighted. I'll also dig out a Wacom CTH-470K tablet and try it out with that and WinTab.

Jan 4 2019, 2:41 PM · Grease Pencil, Platform: Windows, BF Blender: 2.8

Jan 3 2019

Christopher Peerman (chris_82) retitled D4165: Fix T57869 : No pressure sensitivity with Surface Pen on Surface Laptop from Support Stylus hardware on Window 8 and above to Fix T57869 : No pressure sensitivity with Surface Pen on Surface Laptop.
Jan 3 2019, 10:26 PM · Grease Pencil, Platform: Windows, BF Blender: 2.8
Christopher Peerman (chris_82) updated the summary of D4165: Fix T57869 : No pressure sensitivity with Surface Pen on Surface Laptop.
Jan 3 2019, 10:23 PM · Grease Pencil, Platform: Windows, BF Blender: 2.8
Christopher Peerman (chris_82) created D4165: Fix T57869 : No pressure sensitivity with Surface Pen on Surface Laptop.
Jan 3 2019, 10:21 PM · Grease Pencil, Platform: Windows, BF Blender: 2.8