Tablet Pressure not working on OS X #34702

Closed
opened 2013-03-19 22:08:32 +01:00 by piranha69 · 5 comments

%%%Hi

I've bought a new tablet (Huion 580). I've tested it on Blender 2.66a Windows and Mac OS X.

Tablet movement works fine on both Operating Systems. Tablet pressure works perfectly on Windows Blender 2.66a, but registers as 100% (or pressure:1) on Mac OS X Blender 2.66a

- Operating System, Graphics card ---

Mac OSX 10.8.2. NVIDIA Geforce 9500

- Blender version with error, and version that worked ---

Windows Blender 2.66, but registers as 100% (or pressure:1) on Mac OSX Blender 2.66

Mac OS X - Blender 2.66a, Intel 64 bits - ERROR
Windows OS X - Blender 2.66a, Intel 64 and 32 bits - Works

- Short description of error ---

Tablet pressure is fixed at 100% on Mac OS X. No matter how lightly I touch, pressure is fixed. I've enabled tablet pressure sensitivity switches in Sculpt mode, to no avail.

- Steps for others to reproduce the error (preferably based on attached .blend file) ---

DEBUG-ALL Command Line Output

I've run Blender with --debug-all. In UV Paint, Sculpt mode console reports as pressure:1.

TEST: Tablet Pressure Test, in UV Paint Mode (Paint Context) results in following output:

wm_handlers_do_intern: handled! 'PAINT_OT_image_paint'
bpy.ops.paint.image_paint(stroke=[{"name":"", "location":(0, 0, 0), "mouse":(462, 284), "pressure":1, "pen_flip":False, "time":0, "is_start":False}, {"name":"", "location":(0, 0, 0), "mouse":(462, 284), "pressure":1, "pen_flip":False, "time":0.000440836, "is_start":False}, {"name":"", "location":(0, 0, 0), "mouse":(466, 284), "pressure":1, "pen_flip":False, "time":0.0240719, "is_start":False}, {"name":"", "location":(0, 0, 0), "mouse":(470, 285), "pressure":1, "pen_flip":False, "time":0.0404809, "is_start":False}, {"name":"", "location":(0, 0, 0), "mouse":(478, 286), "pressure":1, "pen_flip":False, "time":0.0557179, "is_start":False}, {"name":"", "location":(0, 0, 0), "mouse":(484, 287), "pressure":1, "pen_flip":False, "time":0.0736408, "is_start":False}, {"name":"", "location":(0, 0, 0), "mouse":(489, 288), "pressure":1, "pen_flip":False, "time":0.091888, "is_start":False}, {"name":"", "location":(0, 0, 0), "mouse":(489, 289), "pressure":1, "pen_flip":False, "time":0.106972, "is_start":False}])

TEST: Tablet Pressure Test, in Sculpt Mode results in following output:

wm_handlers_do_intern: handled! 'SCULPT_OT_brush_stroke'
bpy.ops.sculpt.brush_stroke(stroke=[{"name":"", "location":(0.999999, -0.842871, 0.879313), "mouse":(885, 536), "pressure":1, "pen_flip":False, "time":0, "is_start":False}, {"name":"", "location":(1.10766, -1, 1.00254), "mouse":(878.446, 538.458), "pressure":1, "pen_flip":False, "time":0, "is_start":False}, {"name":"", "location":(1.03543, -1.09294, 1), "mouse":(871.464, 538.966), "pressure":1, "pen_flip":False, "time":0, "is_start":False}], mode='NORMAL', ignore_background_click=False)

Using NSLog in GHOST_SystemCocoa.mm GHOST_TSuccess GHOST_SystemCocoa::handleTabletEvent(void *eventPtr, short eventType)

Inserted the following line (as per jensverwiebe) just before the return statement of this method (line 1441):

NSLog(@" - pressure %f", ct.Pressure);

The output of this line indicates variable pressure values between 0 and 1. %%%

%%%Hi I've bought a new tablet (Huion 580). I've tested it on Blender 2.66a Windows and Mac OS X. Tablet movement works fine on both Operating Systems. Tablet pressure works perfectly on Windows Blender 2.66a, but registers as 100% (or pressure:1) on Mac OS X Blender 2.66a - Operating System, Graphics card --- Mac OSX 10.8.2. NVIDIA Geforce 9500 - Blender version with error, and version that worked --- Windows Blender 2.66, but registers as 100% (or pressure:1) on Mac OSX Blender 2.66 Mac OS X - Blender 2.66a, Intel 64 bits - ERROR Windows OS X - Blender 2.66a, Intel 64 and 32 bits - Works - Short description of error --- Tablet pressure is fixed at 100% on Mac OS X. No matter how lightly I touch, pressure is fixed. I've enabled tablet pressure sensitivity switches in Sculpt mode, to no avail. - Steps for others to reproduce the error (preferably based on attached .blend file) --- ## DEBUG-ALL Command Line Output I've run Blender with --debug-all. In UV Paint, Sculpt mode console reports as pressure:1. TEST: Tablet Pressure Test, in UV Paint Mode (Paint Context) results in following output: wm_handlers_do_intern: handled! 'PAINT_OT_image_paint' bpy.ops.paint.image_paint(stroke=[{"name":"", "location":(0, 0, 0), "mouse":(462, 284), "pressure":1, "pen_flip":False, "time":0, "is_start":False}, {"name":"", "location":(0, 0, 0), "mouse":(462, 284), "pressure":1, "pen_flip":False, "time":0.000440836, "is_start":False}, {"name":"", "location":(0, 0, 0), "mouse":(466, 284), "pressure":1, "pen_flip":False, "time":0.0240719, "is_start":False}, {"name":"", "location":(0, 0, 0), "mouse":(470, 285), "pressure":1, "pen_flip":False, "time":0.0404809, "is_start":False}, {"name":"", "location":(0, 0, 0), "mouse":(478, 286), "pressure":1, "pen_flip":False, "time":0.0557179, "is_start":False}, {"name":"", "location":(0, 0, 0), "mouse":(484, 287), "pressure":1, "pen_flip":False, "time":0.0736408, "is_start":False}, {"name":"", "location":(0, 0, 0), "mouse":(489, 288), "pressure":1, "pen_flip":False, "time":0.091888, "is_start":False}, {"name":"", "location":(0, 0, 0), "mouse":(489, 289), "pressure":1, "pen_flip":False, "time":0.106972, "is_start":False}]) TEST: Tablet Pressure Test, in Sculpt Mode results in following output: wm_handlers_do_intern: handled! 'SCULPT_OT_brush_stroke' bpy.ops.sculpt.brush_stroke(stroke=[{"name":"", "location":(0.999999, -0.842871, 0.879313), "mouse":(885, 536), "pressure":1, "pen_flip":False, "time":0, "is_start":False}, {"name":"", "location":(1.10766, -1, 1.00254), "mouse":(878.446, 538.458), "pressure":1, "pen_flip":False, "time":0, "is_start":False}, {"name":"", "location":(1.03543, -1.09294, 1), "mouse":(871.464, 538.966), "pressure":1, "pen_flip":False, "time":0, "is_start":False}], mode='NORMAL', ignore_background_click=False) ## Using NSLog in GHOST_SystemCocoa.mm GHOST_TSuccess GHOST_SystemCocoa::handleTabletEvent(void *eventPtr, short eventType) Inserted the following line (as per jensverwiebe) just before the return statement of this method (line 1441): NSLog(@" - pressure %f", ct.Pressure); The output of this line indicates variable pressure values between 0 and 1. %%%
Author

Changed status to: 'Open'

Changed status to: 'Open'

%%%Ton, you've got OSX and tablet. Guess it'll be easier for you to look into the issue :)%%%

%%%Ton, you've got OSX and tablet. Guess it'll be easier for you to look into the issue :)%%%
Author

%%%Hi Sergey and Ton. Jens Verwiebe found a solution which I added to my source and built and now works. Not sure if its been committed, but maybe u can follow up with him.

Thanks%%%

%%%Hi Sergey and Ton. Jens Verwiebe found a solution which I added to my source and built and now works. Not sure if its been committed, but maybe u can follow up with him. Thanks%%%
Member
%%%Hi, Yep Jens committed the fix two days ago in svn! http://projects.blender.org/scm/viewvc.php/trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm?root=bf-blender&r1=55447&r2=55446&pathrev=55447 Thanks!%%%
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
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
3 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#34702
No description provided.