TUIO touch screen interface: cartopol and dial

Apr 5, 2012 at 11:56am

TUIO touch screen interface: cartopol and dial

Hello,

I have a multitouch touch screen and want to control a dial object in a circular mode.

So far I have successfully defined the the patching rectangle of the dial, scaled and offset the finger tracking input so that the centre coordinates of the dial read X0. Y0.

My problem is that cartopol positions 0. degrees at 3o’clock on the dial and then gives readings of 0. to -179. degress in a clockwise motion and 0. to 179 in an anti clockwise motion. I need to somehow scale and/or offset this reading so that 0. is at 6 o’clock and 359. is 1 degree to the right.

Any ideas?

I’d also be interested to hear about any other touch screen projects using the TUIO protocol.

I know it’s not much help without the relevant hardware but here’s the patch incase anyone wants to take a look

– Pasted Max Patch, click to expand. –
#62785
Apr 5, 2012 at 12:23pm

Did you see the MMF from Mathieu Chamagne? I think that is the best option. My problem is that i dont understand the tutorial. :(

#226664
Apr 5, 2012 at 12:33pm

I have tried MMF. It’s very good, although I have had problems with latency.

Are you working on a touch screen project?

#226665
Apr 5, 2012 at 12:36pm

Yep. I have created a patch in max to control TRAKTOR SCRATCH PRO 2 but i dont know how to create the multitouch version. i have a PACKARD BELL VISEO 200T that allow 2 touches.

#226666
Apr 5, 2012 at 1:40pm

Done it!

It was pretty simple in the end – just a combination of split and scale objects.

Regarding your touch project: The best way I have found so far of implementing multitouch functionality within Max/MSP is to use the TUIO protocol and a serial connection, not USB. If you connect you touch device via USB you will just get mouse up/down commands as your computer will recognise the touch screen as a mouse. If your hardware does not send TUIO commands then I suggest you look here. http://nuigroup.com/forums it’s a really good and active forum about all things touch screen related. There are many developers who are creating TUIO bridges for touch devices. Also look here for other TUIO related app that will help http://www.tuio.org/?software.

Here’s my working patch

– Pasted Max Patch, click to expand. –
#226667
Apr 5, 2012 at 1:52pm

Tomslater i used the w2touio program but the problem is the calibration, there is some problems with the example from MMF.

i did a post for if someone could create a tutorial to create multitouch patches with bpatcher but nobody wants. Maybe a patch with 1 slider 1 dial (circular mode) and a button with a bpatcher with same objects.

My touch screen recognize 2 touches with a 1600×900 resolution. ill try your patch!

#226668
Apr 5, 2012 at 2:15pm

Yeah I tried the W2tuio as well but it will not work properly if you are in full screen. I eventually found a TUIO bridge that someone made specifically for my hardware which is a 3M-C2254PW (22″)

I just did a quick google and found this http://dm.tzi.de/touch2tuio/

As far as I can tell your device uses the native Windows 7 touch data. Once you convert that to TUIO you’re good to go in Max/MSP, just use the TUIO client object.

Once you get the TUIO data into Max you will need to use a bunch of if statements to define the location of your objects and determine you touch “collision” points

#226669
Apr 5, 2012 at 2:28pm

I dont know why multitouch is not native in max msp. :_(

#226670

You must be logged in to reply to this topic.