touch

Multiple Interactions with Sprite

scalf's picture

Hello,

I have been trying to make a slider that responds to direct interaction (mouse) and also to 2 finger drags (magic pad). So that I can click and drag the slider to a position and/or use a 2 finger gesture to drag the slider into a new position also. Sort of like how the song timeline interaction on itunes works.

The problem I have had is getting the values to blend together. For instance, when I click and drag (Mouse) the slider from the origin to a value the slider reverts to the initial position before moving in a (Gesture) making the blending between interactions jerky.

I'd ideally like to have this slider respond to mouse clicks, gestures, and any OSC input I define. The issue is getting the values to merge together without jerky transitions.

I know there is a real good way to do this. They are all over in most programs, how can this functionality be emulated in Quartz? It's like the 2 Finger Drag Patch needs to have an updated value of where the slider is when I click it that way there is not a gap between values when the interactions are switched.

Thanks for any suggestions

You'll need 1024's Selector Plugin (Handy anyways) http://1024d.wordpress.com/qc-plugins/

Multiple Finger Iterator

scalf's picture

I am trying to make a composition that can handle multiple fingers on multiple devices. It will have buttons and zones that will cause interactions and triggers. So instead of making a separate hit test for every finger by hand, I am trying to use the example "multi-touch fingerpaint" as a way to test this.

Since there is only one sprite in the iterator that renders as each finger, I tried to use the incoming x and y to trigger a hit test for all fingers that could be fit on the pad.

The hit test would trigger, however only the lead or most recent finger would be able to trigger the hit test.

Does anyone have an idea on how to make it so every finger that was registered could trigger a hit test using an iterator to reduce the patchwork involved to track say 10, or 15 fingers at a time.

Also, you need the kineme multitouch patch for this

Using TUIO with more than one port

scalf's picture

I have been using the new TUIO apps for both the iOS and Android. Alone they are great, but when I connect them in combination, the one port (3333) cannot handle both at the same time.

So I am wondering if there is a way to change the port that Quartz is listening to, so you could have multiple devices connect with one application or host computer.

Since TUIO and OSC are related, I used the stock oscreceiveing patch to listen to port 3333 and the received signal would flash when the device was touched. Using the qcOSC plugin from hexler I saw that a packet was named /tuio/2Dcur, within there were 2 structures that I could get to: one was a string that said "fseq" and the other was a counter that would only increase when the pad was touched.

I then changed the Tuio settings from the device to "not send full updates" which gave me /tuio/2Dobj and /tuio/2Dbib - both of which gave nothing but a string - but still a lead.

So perhaps the source of the tuioclient plugin could be changed?

Or is there a way to dig deeper into the structure listed on the receiving OSC patch?

Thanks for any clues

http://code.google.com/p/tuiodroid/ http://code.google.com/p/tuiopad/

Onscreen Keyboard (Composition by mattgolsen)

Author: mattgolsen
License: Public Domain
Date: 2011.06.14
Compatibility: 10.6
Categories:
Required plugins:
(none)

An onscreen keyboard for use in touch compositions.

Created by mattgolsen & swiftlikeninja.

New Wacom Touch tablet and Quartz Composer

songcarver8's picture

You may or may not have seen the latest release from Wacom, a consumer-aimed multitouch (ahem, multi=2 tracking points) tablet that works with a pen or two fingers.

http://www.wacom.com/bamboo/bamboo_pen_touch.php

I'm interested in using it as a test bed for some multi-touch ideas in conjunction with QC, and am wondering if anyone else has tried it yet, and how to go about that.

At a guess, the HID patch would be my first thing to reach for, but I've not been able to get anything useful out of it using an older Wacom, which may be a driver issue.