OpenFrameworks+TUIO Cursors
Posted: 26 October 2008 03:04 PM   [ Ignore ]
Avatar
RankRank
Joined  2008-04-27
Total Posts:  150
Member

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.

 Signature 

Pissed Right Off Genetically Engineered Nerd
ProgenLabs.com

Profile
 
 
Posted: 26 October 2008 03:07 PM   [ Ignore ]   [ # 1 ]
Avatar
RankRankRankRankRankRank
Joined  2007-04-08
Total Posts:  2539
Dedicated

Awesome work progen! I’m glad you got the ofxTUIO working well!

 Signature 

MTmini, MTbiggie, & Audiotouch creator & Community Core Vision Co-founder

Follow on:
My Blog | Facebook | Twitter | Youtube

Profile
 
 
Posted: 26 October 2008 03:49 PM   [ Ignore ]   [ # 2 ]
Avatar
RankRankRankRank
Joined  2008-02-12
Total Posts:  1120
Member

Haha niice work mate, love to see more of it…

 Signature 

Company Website - Knode Research and Development
My Youtube

Profile
 
 
Posted: 26 October 2008 06:01 PM   [ Ignore ]   [ # 3 ]
Avatar
RankRankRankRank
Joined  2008-01-04
Total Posts:  676
Moderator

Very cool, even the music was soothing wink

 Signature 

Get Sparked at sparkon.net
ORION Multi-Touch Display (blog)
My YouTube

Profile
 
 
Posted: 27 October 2008 02:56 AM   [ Ignore ]   [ # 4 ]
Avatar
RankRankRankRank
Joined  2006-11-09
Total Posts:  1499
Administrator

this is just awesome… cant wait to see more… really excited about this ofxTUIO project and integrating it with tbeta

@Progen could you explain the process you went through to get it working with OSCemote? I mean does ofxTUIO directly parse the packets recieved from OSCemote or do you need to convert?

 Signature 

~

Profile
 
 
Posted: 27 October 2008 12:57 PM   [ Ignore ]   [ # 5 ]
Avatar
RankRank
Joined  2008-04-27
Total Posts:  150
Member

@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?

 Signature 

Pissed Right Off Genetically Engineered Nerd
ProgenLabs.com

Profile
 
 
Posted: 27 October 2008 01:06 PM   [ Ignore ]   [ # 6 ]
Avatar
RankRankRankRankRankRank
Joined  2007-04-08
Total Posts:  2539
Dedicated

We’re gonna change tbeta to sending:

ID, x, y, dX, dY, m (acceleration), height, width.

I’m not sure how to add dX dY yet to it. If you know an easy way to add it, feel free.

 Signature 

MTmini, MTbiggie, & Audiotouch creator & Community Core Vision Co-founder

Follow on:
My Blog | Facebook | Twitter | Youtube

Profile
 
 
Posted: 27 October 2008 01:21 PM   [ Ignore ]   [ # 7 ]
Avatar
RankRankRankRank
Joined  2008-06-04
Total Posts:  565
Elite

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.

 Signature 

}---)))@

V JAY!  http://www.v-lux.net LASER tut http://nuigroup.com/forums/viewthread/6407/

Architectural Technician and Building Surveys

http://www.jpgainsfordassociates.com

Profile
 
 
Posted: 27 October 2008 01:30 PM   [ Ignore ]   [ # 8 ]
Avatar
RankRankRankRankRankRank
Joined  2007-04-08
Total Posts:  2539
Dedicated

Thanks ajlovegrove smile

My hope is to have a multi-platform version of mouse. That’d be pretty cool. Of course it’ll work slightly different for each OS.

 Signature 

MTmini, MTbiggie, & Audiotouch creator & Community Core Vision Co-founder

Follow on:
My Blog | Facebook | Twitter | Youtube

Profile
 
 
Posted: 28 October 2008 05:09 AM   [ Ignore ]   [ # 9 ]
Avatar
RankRankRankRank
Joined  2008-06-04
Total Posts:  565
Elite

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.

 Signature 

}---)))@

V JAY!  http://www.v-lux.net LASER tut http://nuigroup.com/forums/viewthread/6407/

Architectural Technician and Building Surveys

http://www.jpgainsfordassociates.com

Profile
 
 
Posted: 03 December 2008 05:36 PM   [ Ignore ]   [ # 10 ]
Avatar
RankRank
Joined  2008-11-20
Total Posts:  102
Member

question moved to
http://nuigroup.com/forums/viewthread/3447/

 Signature 

blog log

Profile
 
 
Posted: 04 December 2008 10:13 AM   [ Ignore ]   [ # 11 ]
Rank
Joined  2008-01-16
Total Posts:  10
New Member
cerupcat - 27 October 2008 01:06 PM

We’re gonna change tbeta to sending:

ID, x, y, dX, dY, m (acceleration), height, width.

I’m not sure how to add dX dY yet to it. If you know an easy way to add it, feel free.

one thought:
as the TUIO-definition is without a slot for the width and heigth of the blob (but an angle;
its defined like this:
/tuio/2Dobj set s i x y a X Y A m r
/tuio/2Dcur set s x y m r

don t you think it would be a good idea to use a own (TUIO-conform) data-format like
/tuio/raw_tbeta set i x y a dX dY m h w
to stay within the common definition??

the second thing is the dX dY:
canĀ“t you extend the blob-definition internally
to store the last X and Y and update it when sending the next value?

~ramos

 Signature 

screengarden informationdesign
berlin - germany
http://www.screengarden.de
-------------------------------------

Profile
 
 
Posted: 04 December 2008 02:06 PM   [ Ignore ]   [ # 12 ]
Avatar
RankRankRankRankRankRank
Joined  2007-04-08
Total Posts:  2539
Dedicated

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).

 Signature 

MTmini, MTbiggie, & Audiotouch creator & Community Core Vision Co-founder

Follow on:
My Blog | Facebook | Twitter | Youtube

Profile
 
 
Posted: 06 December 2008 09:15 PM   [ Ignore ]   [ # 13 ]
Rank
Joined  2008-11-13
Total Posts:  1
New Member

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?

Thanks.

Profile
 
 
Posted: 16 December 2008 04:54 AM   [ Ignore ]   [ # 14 ]
Avatar
Rank
Joined  2008-12-16
Total Posts:  6
New Member

It’s so cool

 Signature 

my blog:http://couldhll.wordpress.com.cn
my youtube:http://www.youtube.com/user/CouldHll

Profile