Quantcast
Channel: Kineme - OSC
Viewing all articles
Browse latest Browse all 20

iPad2QC->OSC Multi-Touch Accelerometer (Composition by dust)

$
0
0

Composition Title

iPad2QC->OSC Multi-Touch Accelerometer

Screenshot

Screen shot 2010-04-29 at 11.59.57 PM.png

here is a patch that sends multi-touch and accelerometer iPad events to quartz composer.

version 2....

port [6666]

i simplified the touch structure. rather than having all touches in one structure. i choose to split them apart.

they are...

/touch/1/ "0" x1 location in pixels "1" y1 location in pixels "2" x1 previos location in pixels "3" y1 previos location in pixels

/touch/2/ "0" x2 location in pixels "1" y2 location in pixels "2" x2 previos location in pixels "3" y2 previos location in pixels

/touch/3/ "0" x3 location in pixels "1" y3 location in pixels "2" x3 previos location in pixels "3" y3 previos location in pixels

/touch/4/ "0" x4 location in pixels "1" y4 location in pixels "2" x4 previos location in pixels "3" y4 previos location in pixels

/touch/5/ "0" x5 location in pixels "1" y5 location in pixels "2" x5 previos location in pixels "3" y5 previos location in pixels

4 tap to bring up UI text input for ip... this can be increased to insure no false hits. enter sets ip.

run mtoscpad.qtz to make sure everything is working.

if you want to visualize the particles on the ipad un-comment all emitters in side the touches moved event.

they look like this. there is a bunch.. //[self addChild: emitter z:0];


Viewing all articles
Browse latest Browse all 20

Trending Articles