Multitouch Gestures - An AS3 Gesture Demo

Description

On my last project I had to use a gesture to initiate an event. Due to this, I recently started experimenting in creating a simple multitouch version of some gesture engines that are available. I’ve come across three that are already available in AS3 and chose to start with the $1 gesture algorithm http://depts.washington.edu/aimgroup/proj/dollar/. It only seems fitting to start with this one since Andy Wilson of microsoft research (and many multitouch devices) had a hand in it’s development.

Like most algorithms, this one matches points drawn with a template that’s already stored. After the gesture is finished, it is matched up against templates in the database and given a percentage of how much it matched it’s closest template (from 0-1). One of the coolest things about this engine is that it’s orientation-less. This means, no matter how you’re orientated on the surface it’ll still recognize the gesture.

The main thing I contributed to the already created $1 gesture port was the ability to have multiple simultaneous gestures occurring at once. This means a single user can perform more than one gesture at a time or multiple users can perform their own gestures while someone else is using the device. However, there are flaws with this algorithm that I’m not fond of that are performance (speed) related. I’ve only tested with up to 4 touches though so if someone can test with more, please let me know how it runs.

Currently, the demo isn’t fully segregated form the core gesture classes and therefore there’s still some work to be done so that the gesture classes can be used without the demo itself. In the meantime, go ahead and test this out and make sure to give some feedback; it also works with the mouse. The demo allows you to draw a gesture and if it matches on in the database, that gesture will ‘light up.’

Media

Multitouch Gestures

Requirements

Flash Player 9+

Multitouch Gestures runs on:

Windows
OSX
Linux
TUIO enabled devices (what's TUIO?)

Instructions

The tolerance is set at 80% and therefore if a gesture doesn’t match 80% of a template, it’s not recognized.

Activity

3052 2 0 212
Get Adobe Flash player

Comments 0

Top Members
1,506 Points
Fairlane's picture
Fairlane
932 Points
lynnmarentette's picture
lynnmarentette
730 Points
DavidJKelley's picture
DavidJKelley
704 Points
tracyboyer's picture
tracyboyer
673 Points
falcon4ever's picture
falcon4ever
529 Points
Seth's picture
Seth
512 Points
joshblake's picture
joshblake
477 Points
tito's picture
tito
424 Points
hillbilly's picture
hillbilly
417 Points
Taha's picture
Taha
387 Points
dennda's picture
dennda
377 Points
cyancdesign's picture
cyancdesign
361 Points
schmuck's picture
schmuck
303 Points
johannes's picture
johannes
278 Points
sandor's picture
sandor
Who's New
wlccollegeindia's picture
wlccollegeindia
MachineCodeGames's picture
MachineCodeGames
dhakshinait's picture
dhakshinait
bluewormc's picture
bluewormc
SUSANNA35Morton's picture
SUSANNA35Morton
GailCOLLIER's picture
GailCOLLIER
WhitfieldTERRI32's picture
WhitfieldTERRI32
Timothy abraham's picture
Timothy abraham
jpdejean's picture
jpdejean
Moonchoak's picture
Moonchoak
Jangrai Roh's picture
Jangrai Roh
balaji88php's picture
balaji88php

About sparkon

sparkon is a social platform for people that are sparked (inspired) by creative and emergent technology. sparkon can be used to learn, share, create, promote, and meet people with similar interests and goals. We aim to have a friendly environment and involve not just people already sparked (inspired) by technology, but spark new people too. Learn more and get started today!

Promote Your Work

Do you have creative or emergent technology work you'd like to spark others with? Post your projects, frameworks, and applications on sparkon and promote your work! You can gain points for every post and climb the ranks of the community.