Mworks support for Wacom tablets

eghbal.hosseini's Avatar

eghbal.hosseini

11 Aug, 2015 09:36 PM

Hi Chris,
I was wondering Mworks supports Wacom tablets as input devices.
here is a link to Wacom tablet page
http://www.wacom.com/en-us/products/pen-tablets/intuos-pro-large

Thanks,
Eghbal

  1. Support Staff 1 Posted by Christopher Sta... on 12 Aug, 2015 06:00 PM

    Christopher Stawarz's Avatar

    Hi Eghbal,

    Insofar as the tablet acts like a mouse or other standard pointing device, you should be able to use MWorks' "Mouse Input" device to track the stylus position and register clicks. I've attached an example experiment that should help you test this. It reports when the mouse cursor moves on and off of the fixation point and when the primary mouse button is pressed and released.

    If you want to use additional input data from the tablet (e.g. pressure), then I'll need to add support for it. Wacom provides details of how to support their tablets in Mac applications, so presumably this wouldn't be too difficult.

    Cheers,
    Chris

  2. 2 Posted by eghbal.hosseini on 12 Aug, 2015 09:51 PM

    eghbal.hosseini's Avatar

    Hi Chris,
    Thanks, I just tested Wacom tablet and it works well. I am trying to now show the mouse position as cursor point on the display. Any ideas on how I can do this.
    Thanks,
    Eghbal

  3. Support Staff 3 Posted by Christopher Sta... on 13 Aug, 2015 02:35 PM

    Christopher Stawarz's Avatar

    Hi Eghbal,

    I am trying to now show the mouse position as cursor point on the display. Any ideas on how I can do this.

    I've attached an updated example that demonstrates one way to do it.

    Cheers,
    Chris

  4. 4 Posted by eghbal.hosseini on 13 Aug, 2015 04:09 PM

    eghbal.hosseini's Avatar

    Hi Chris,

    Thanks, this looks good. I notice however that there is a lag between the position of the mouse and the cursor shown by the mworks. I think one easy way to solve this would be to calculate mouse speed and project the position in time to account for the lag time (predicted_position=v_mouse*t_lag+current_position). I need to calculate a smooth version of mouse velocity, and was thinking to use eye_monitor to get the mouse velocity. Do you recommend other approaches?

    Thanks,
    Eghbal

  5. 5 Posted by eghbal.hosseini on 28 Aug, 2015 08:52 PM

    eghbal.hosseini's Avatar

    Hi Chris,
    I was wondering if there is an easy way to calculate mouse(eye) velocity in mworks, so that I can account for the delays in the display of cursor.

    Thanks,
    Eghbal

  6. Support Staff 6 Posted by Christopher Sta... on 31 Aug, 2015 02:25 PM

    Christopher Stawarz's Avatar

    Hi Eghbal,

    Sorry for not responding sooner.

    The eye monitor doesn't expose the eye velocity to your experiment. While it could be modified to do so, I have doubts about the overall effectiveness of your proposal.

    What exactly is your goal here? Do you want a cursor but not want the standard system cursor?

    Chris

  7. 7 Posted by eghbal.hosseini on 03 Sep, 2015 11:15 AM

    eghbal.hosseini's Avatar

    Hi Chris,

    Sorry that I wasn't clear previously.
    I tested the setup with the Wacom tablet and there is a discrepancy between the location of the pen and the cursor. In an ideal scenario the cursor location should be a realtime projection of the pen location, and represent where the hand is.
    what strategy can achieve this more efficiently? do you think having a cursor stimuli can help?

    Thanks,
    Eghbal

  8. Support Staff 8 Posted by Christopher Sta... on 28 Sep, 2015 02:56 PM

    Christopher Stawarz's Avatar

    Hi Eghbal,

    As we discussed offline, I'm planning to modify the eye monitor to expose the current eye velocity (both x and y components). However, I'm currently in the process of getting MWorks 0.6 released, and I'm not going to be adding new features to the nightly build until that's done. I plan to push 0.6 out at the end of this week, so the earliest I'm likely to be able to work on the eye velocity stuff is next week. I hope that won't be a problem for you.

    Cheers,
    Chris

  9. 9 Posted by eghbal.hosseini on 30 Sep, 2015 02:49 PM

    eghbal.hosseini's Avatar

    Hi Chris,

    That is no problem. Thanks for letting me know. I will work on other aspect of my design meanwhile.

    Best,
    Eghbal

  10. 10 Posted by eghbal.hosseini on 26 Oct, 2015 08:42 PM

    eghbal.hosseini's Avatar

    Hi Chris,

    I was wondering if you've had time to make progress the cursor display, I am close to finishing the hardware design.
    Thanks,
    Eghbal

  11. Support Staff 11 Posted by Christopher Sta... on 27 Oct, 2015 01:18 PM

    Christopher Stawarz's Avatar

    Hi Eghbal,

    I was wondering if you've had time to make progress the cursor display, I am close to finishing the hardware design.

    No, but I'll try to get it done this week.

    Cheers,
    Chris

  12. Support Staff 12 Posted by Christopher Sta... on 28 Oct, 2015 03:08 PM

    Christopher Stawarz's Avatar

    Hi Eghbal,

    I've added two optional parameters, eye_velocity_h and eye_velocity_v, to the eye monitor. If the values of these parameters are variable names, then the calculated eye velocity components will be stored in the specified variables whenever the eye status is computed. This should be available in tonight's nightly build.

    Cheers,
    Chris

  13. 13 Posted by eghbal.hosseini on 28 Oct, 2015 07:39 PM

    eghbal.hosseini's Avatar

    Hi Chris,
    Thanks a lot! I give it a try and let you know how it goes.
    Eghbal

  14. 14 Posted by eghbal.hosseini on 30 Nov, 2015 03:26 PM

    eghbal.hosseini's Avatar

    Hi Chris,

    I tested the setup and seems to be working, however there are some jitter in displaying of the cursor and I was wondering if you can take a look. I can set up the system if you have time to look at it today.

    Thanks,
    Eghbal

  15. 15 Posted by eghbal.hosseini on 15 Dec, 2015 01:48 PM

    eghbal.hosseini's Avatar

    Hi Chris,

    Part of the problem with the delay was stemming from the computer that I was using. The delay is now much shorter and looks like it has to do with frame updates, I was wondering if you could take a look at the setup sometime this week and give me some feedback about what to do next.

    Thanks,
    Eghbal

  16. Support Staff 16 Posted by Christopher Sta... on 15 Dec, 2015 06:14 PM

    Christopher Stawarz's Avatar

    Hi Eghbal,

    Just to recap our offline discussion: I think that our use of high-level system UI events to obtain the on-screen location of the pointing device is introducing a small but noticeable delay in the movement of the MWorks-controlled cursor versus the system one. I will acquire a Wacom tablet and investigate the possibility of getting position and movement data from it at a lower level (ideally via a USB HID interface). Due to my upcoming vacation time, I probably won't be able to work on this until after the holidays.

    Cheers,
    Chris

  17. 17 Posted by eghbal.hosseini on 21 Dec, 2015 03:28 PM

    eghbal.hosseini's Avatar

    Hi Chris,

    That sounds great.
    I was wondering how to make mouse cursor invisible, I tried changing the: hide_cursor="NO" to YES but it doesn't make the cursor disappear.

    Thanks,
    Eghbla

  18. Support Staff 18 Posted by Christopher Sta... on 21 Dec, 2015 04:36 PM

    Christopher Stawarz's Avatar

    Hi Eghbal,

    I think you need to click inside the stimulus display window once before the cursor will hide. After that, it should hide/unhide automatically as it enters/leaves the window.

    Chris

  19. Support Staff 19 Posted by Christopher Sta... on 08 Jan, 2016 03:33 PM

    Christopher Stawarz's Avatar

    Hi Eghbal,

    I now have a Wacom Intuos tablet, and I've been testing various options for eliminating the latency issues that you've described. Unfortunately, this hasn't produced any real solutions, and I'm starting to lose hope of finding one.

    I think it would be helpful for us to meet and talk about your high-level goals some more, as there may be alternative approaches that we haven't thought about yet. When would be a good time for you? I'm available pretty much any time today, or we could try for next week.

    Thanks,
    Chris

  20. 20 Posted by eghbal.hosseini on 08 Jan, 2016 04:51 PM

    eghbal.hosseini's Avatar

    Hi Chris,

    Thanks so much for looking into this,
    I can come to you office at noon if you have time then.

    Thanks,
    Eghbal

  21. Support Staff 21 Posted by Christopher Sta... on 08 Jan, 2016 05:07 PM

    Christopher Stawarz's Avatar

    Sounds good. Thanks!

    Chris

  22. Christopher Stawarz closed this discussion on 15 Dec, 2017 04:38 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac