ofxTuioWrapper Multitouch Example

Hello everyone!

I just wanted to let everyone know that I open sourced a multitouch table project from my company Helios Interactive. I learned a lot making it and thought it might be useful to others just getting into multitouch or OF. We used the Bezels by PQ Labs and read their TUIO stream so it should be fairly hardware agnostic as long as you get TUIO. I included all the addons on github because I know how frustrating that can be for newcomers as well. An addon that arose out of this was ofxPixelHitTest which writes simplified geometry to an frame buffer object in order to get accurate hitTest detection, especially on nested and rotated objects. I’m open to other solutions on how to solve the problem though !

Here’s a video of it in action:
http://vimeo.com/33886433

Anywho it’s on github ( https://github.com/benMcChesney/Helios-TableTop ) and any feedback would be great!
Just xcode for now but I’ll make codeblocks files for windows soon. I have a quick write-up on my blog @ http://www.benmcchesney.com/blog/2011/12/helios-multitouch-table-top-now-available/

Thanks everyone! I couldn’t have done it without all of your awesome code to build on top of.

Thanks for sharing this! The pixel hit-testing is very interesting as well. :slight_smile:

Hi !

uaua, great work !

i could make it work, but had to change some things:
-first is that the folder with ofxPixelHitTest is empty, so i took it from your gitub.
-Had to change:

  
  
 void beginFbo()   
  

to

  
  
bool beginFbo()  
  

to be able to use:

  
  
if ( hitTestHub->beginFbo() == true )   
    {  
        for ( int k = 0 ; k < nItems; k++ )  
        {  
            menuNodes[k].drawInputMap() ;   
        }  
        hitTestHub->endFbo() ;   
    }  
  
  

Also here, had to change drawMap():

  
i  
f ( drawInputOverlay == true )   
        {  
           // hitTestHub->drawMap( 1.0f, 0.0f ) ; // this is not working ////   
			hitTestHub->drawMap( 1.0f) ;  
        }  
        else  
        {  
            hitTestHub->drawMap() ;   
        }  
  

i get the app working but no those fancy buttons loaded around the “balls”…
Any advice !!

and thank you so much for sharing !!!

miguel.
www.tangiblex.net

Whoops! I appear to have some large user errors with the Github for mac app so it looks like I’ll be going back to using terminal. I updated the ofxPixelHitTest git to the correct version and I’m updating the table_top repo to include it now. This is probably also a great time to learn to use develop branches on git !