Here’s a video of me messing around with the new TUIO addon for OF. Trying to write a simple mouse driver for the tbeta as a separate program where mouseTUIO should receive TUIO messages from tbeta. In this video, you’ll see me using an ipod touch as the input device, which is running OSCemote to send out OSC messages. Anyway, it’s just proof-of-concept, so just enjoy the video…
And of course, credit goes to moka from the OF forum for writing the TUIO addon.
Sorry for the poor video quality......will make up for it by posting a new video soon.
@nuiman: well, hooking it up was pretty easy. ofxTUIO parses the TUIO messages received from OSCemote. Even tried it out on Touchlib and it works too. As far as I can tell, its currently only able to receive, x,y and id. Apparently, OSCemote sends out other useful stuff like velocity and acceleration. Those could be useful determining direction of motion for fun stuff like gestures. Took a look at tbeta, and it seems to be only sending out x,y,id,area,rectx and recty. cerupcat, any thoughts of adding additional stuff like vel, accel, to the list?
For very simple mouse control in os x check out Ben Brittens BBTUIOtest app this is just a cursor control with no right click function. Although it does work very well. Use ctrl for right clickers. http://benbritten.com/blog/ is the link. It might help in creating a more well rounded mouse app.
No cerupcat thank the magic Panda! I have been following bens progress for some time now. I just wish i had enough time to figure out even the basics of coding!
Keep up the good work!
I spoke in other threads of the potential to have a gesture learn app so that you could make your own keyboard assingments and such. Perhaps open a document by drawing an O or to print a P ultimatley have the app sample your gesture and match it against a library of presets. Also the ability to asign any swosh swipe or swigle to any function.
screengarden: you’re looking at the 2dobj. The 2dcur (which is for cursor/finger data not object/fiducials) actually is only supposed to send s x y m r only. We’re already sending a custom one and will extend it even more to what I mentioned before which is ID, x, y, X (dX), Y (dY), m (acceleration), height, width (and probably angle). We don’t want to change the 2dcur to raw_tbeta since that’ll make it so it doesn’t work with already written TUIO applications (which it currently does).
I would really like to be able to use my iPod Touch as a testing tool for my mt applications, but I have no idea how to set this up. I looked at OpenFrameworks, and downloaded and halfheartedly attempted to compile the C++ code for OfxTUIO, but I don’t really know what to do with all of this.
My understanding is this:
iPod app generates touch events in application (like OSCemote) > Sends via network to comp with OfxTUIO which broadcasts TUIO data > my programs recieve TUIO data and do cool stuff
Is this right? I’ve been developing in AS3 up to this point, but will my programs not work with this since it is in C++? How can I set this up?