3 of 4
3
BBTouch, now with TUIO support
Posted: 19 August 2008 09:54 PM   [ Ignore ]   [ # 31 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  1343
Joined  2007-04-08

Ok, I lied lol.

I’m starting to confuse myself also. Give me a second and i’ll post a screenshot that’ll help explain I hope. I haven’t looked at the calibration stuff in a while so it’s easier to get confused heh.

Edit:

Ok, here you go. So actually, the 0 - 1 isn’t the mesh/bounding box. In the screenshot I put the 0 - 1 coordinates, followed by the application/fullscreen coordinates. The box you see would be where the projection lines up on the table allowing the four corners to be visible so they can be pressed. The whole image is atcually what would be projected; the black is not a background for the image, but the application at fullscreen.

You can see when a blob is near 0 on the x-axis, it is actually 0 + ‘the offset of the bounding box’ so around 184px. So basically if you calibrate and your mesh doesn’t start at 0, you won’t be sending blobs to 0 through TUIO ever. What would appear to be all the way left for a person on their table, would actually be how much the mesh is offset; in my case, about 180px. Sometimes, the projection/mesh may hit the table exactly and then there would be a true ‘0’ coordinate sent.

,

Let me know if that helps at all. I can post the code if you want.

Also, you can test with any of the flash demos on the svn, or even the ones from my blog. It’ll give you a good idea of what’s happening.

Image Attachments
calibration.jpg
 Signature 

My Multitouch Blog
My Youtube
Multitouch FAQ - Need Help? Click here!

Profile
 
 
Posted: 19 August 2008 10:28 PM   [ Ignore ]   [ # 32 ]
New Member
Rank
Total Posts:  59
Joined  2007-07-09

Panda,

I am more of a person that likes to get things running in order to figure things out.  Sometimes I work myself up just thinking about stuff and when I finally find an answer in my head it usually doesnt work out in real life. So I have come to depend on testing(and printf) and not giving things too much thought. This is why I suggested doing a simple app. This way you can really see how practical things really are. Then you can really tweek things accordingly. I am definitely a visual thinker but not everyone works that way. For me a simple example app will help to solidify abstract ideas. And as far as development goes I will probably not be doing it in obj-c. I am way too deep into openframeworks right at the moment but I like helping out as much as possible.  Sometimes thoughtful questions help out more that haphazard actions.

ding

Profile
 
 
Posted: 20 August 2008 05:20 AM   [ Ignore ]   [ # 33 ]
Jr. Member
Avatar
RankRank
Total Posts:  182
Joined  2008-06-04

Thanks Panda i will test it out.

 Signature 

}---)))@

Profile
 
 
Posted: 20 August 2008 05:29 AM   [ Ignore ]   [ # 34 ]
Jr. Member
Avatar
RankRank
Total Posts:  182
Joined  2008-06-04

Panda when i run the latest release of BBtouch it launches fine and every thing is gravy.  However if i haven’t switched mv DV cam ON before launching the app, when i select it in the Cam settings BBtouch crashes.  It is fine if i have the camera ON before i launch BBtouch.  This has happened in previous versions sorry for not saying earlier.

 Signature 

}---)))@

Profile
 
 
Posted: 21 August 2008 03:49 PM   [ Ignore ]   [ # 35 ]
New Member
Avatar
Rank
Total Posts:  83
Joined  2008-03-23

Hey AJ,

hmm.. that is interesting… I will have a look into that.  That is one (of the many) things i dont like about the sequence grabber api, it is so fussy.  I will see what I can do.

cheers!
-panda

 Signature 

http://benbritten.com/blog/category/multitouch/

Profile
 
 
Posted: 21 August 2008 04:05 PM   [ Ignore ]   [ # 36 ]
New Member
Avatar
Rank
Total Posts:  83
Joined  2008-03-23

Cerupcat,

Yes, that does help.  That is sort of the same conclusion that I finally came upon, but it is nice to have that reinforced by someone else as well grin

Ding,

Yep, basically did just what you said, I started testing grin I hit a few snags tho: I cant seem to get the flash TUIO stuff running, well I should say that it plays fine in the flash player, but it doesnt connect, it just says connection failed.  The processing TUIO demo works great, but I cant really make it fullscreen (i can expand the window to fill the screen, but that still leaves the menubar and the window bar. I am sure i could add code to go fullscreen, but to be perfectly honest, I dont really know crap about processing)

So, in the end I wrote a little TUIO cocoa app that can do fullscreen (available on the blog if anyone wants it).  That confirmed for me basically what cerupcat is saying in the last comment. 

just for anyones information: i did hit a small snag when moving my TUIO app off to another machine.  I had set the projector resolution to a very slightly different resolution (one that was no longer the same aspect ratio (for some reason I had it set to 1152x870 when i calibrated BBTouch (i had probable set it to that some time back in some test i was doing, and never bothered to check it again), and of course, when i went to set up the second machine with the TUIO on it, i had it set to something like 1024x768.  the aspect ratios of those resolutions is only very slightly different, but it was noticeable when the tracking crosshairs didnt line up with my fingertips. 
Anyhow, after much fiddling about with changing the resolutions back and forth i finally figured out my mistake. But it took me way longer than it should have..  so the moral of the story here: pick and aspect ratio for your projector and stick to it grin

Cheers!
-panda

 Signature 

http://benbritten.com/blog/category/multitouch/

Profile
 
 
Posted: 21 August 2008 04:20 PM   [ Ignore ]   [ # 37 ]
Jr. Member
Avatar
RankRank
Total Posts:  103
Joined  2008-06-26

Hey Ben,

did you started FLOSC as you where doing your testing? Maybe that is the reason why you cannot connect to your flash apps...? I’m not sure but that could help....

 Signature 

Sandor Rozsa
--
corporate design cologne
http://www.cd-cologne.de

Profile
 
 
Posted: 21 August 2008 04:27 PM   [ Ignore ]   [ # 38 ]
New Member
Avatar
Rank
Total Posts:  83
Joined  2008-03-23

Flosc you say?  grin

Nope. I totally spaced that out.  hehe.  oops! 

I will try that later today.  Thanks Sandor!

 Signature 

http://benbritten.com/blog/category/multitouch/

Profile
 
 
Posted: 21 August 2008 04:39 PM   [ Ignore ]   [ # 39 ]
Jr. Member
Avatar
RankRank
Total Posts:  103
Joined  2008-06-26

Yo Ben!

when do you are sleeping man?!???? wink I think it is 7:38 in melbourne! Get a coffe wink

 Signature 

Sandor Rozsa
--
corporate design cologne
http://www.cd-cologne.de

Profile
 
 
Posted: 21 August 2008 04:48 PM   [ Ignore ]   [ # 40 ]
New Member
Avatar
Rank
Total Posts:  83
Joined  2008-03-23

Rebull, I am all about the redbull.  just finished one, ahhhhh sweet sweet caffeine…

 Signature 

http://benbritten.com/blog/category/multitouch/

Profile
 
 
Posted: 27 August 2008 03:20 AM   [ Ignore ]   [ # 41 ]
Jr. Member
Avatar
RankRank
Total Posts:  182
Joined  2008-06-04

Ben beware the taurine it will really mess with your emotions!

I was speaking with Xelapond and wondered if you had managed to make a mouse driver for os x?

Any ways keep up the god work but not at the expense of your health!

 Signature 

}---)))@

Profile
 
 
Posted: 27 August 2008 03:41 AM   [ Ignore ]   [ # 42 ]
New Member
Avatar
Rank
Total Posts:  83
Joined  2008-03-23

Hey AJ,

i just responded to your comment on the blog, but i thought i would post here as well, just in case anyone else was interested.

the BBTUIOTest app that i made as a cocoa TUIO client test thingie also has a simple mouse event ‘faker’.  it only works in the screen that you select (currently), and only works in ‘absolute’ mode for now (the theory being that you will use it on your ‘projection screen’ which is also the surface.  Soon, when i get a chance I will add a relative mode, so that you can use your surface like a giant trackpad, which will be more useful for those of you with MTMinis and that). 

you can get the newest one here:
http://benbritten.com/blog/2008/08/25/bbtuiotest-bugfixes/

i wasn’t really ready to release it into the wild, but i was fixing a bug that Aureau found, and it seemed lame to spend time to take it out since it is mostly working (and you can just not turn it on if it is hosing you).  I need to make the project part of some google code repo at some point, but haven’t got that far either grin

Cheers!
-panda

ps: emotions? what emotions? hehe, just kidding.  mmmm taurine… wink

 Signature 

http://benbritten.com/blog/category/multitouch/

Profile
 
 
Posted: 27 August 2008 01:06 PM   [ Ignore ]   [ # 43 ]
Jr. Member
Avatar
RankRank
Total Posts:  182
Joined  2008-06-04

Superb it works great!  Now with a bit of refinement perhaps some some gesture integration is possible?  Like be able to twiddle knobs and dials with two fingers! And of course the right click.  For now i will just use ctrl.  Perhaps i will make a ctrl button with a flying lead from an old keyboard at the base of the touch screen. But for now this is perfect.

Thankyou very much indeed.  Once i have some legs for the screen i will post my setup.

 Signature 

}---)))@

Profile
 
 
Posted: 27 August 2008 06:14 PM   [ Ignore ]   [ # 44 ]
New Member
Avatar
Rank
Total Posts:  83
Joined  2008-03-23

Wow, i am glad it worked grin I wrote that code really quick, thinking that i would have time to go back and refactor.  (which I will, eventually) so, yay!

Definitely possible to add some gesture style stuff in there.  I probably wont have time to get back to it till monday, but I do want to make it cooler grin

what do you use for your VJing?  (software wise?)

also, is there some standard gesture for right-click?  (i should probably know this, the new mac trackpads all do this yeah? grin ) anyhow, it is still early and me brain no worky.

cheers!
-panda

 Signature 

http://benbritten.com/blog/category/multitouch/

Profile
 
 
Posted: 28 August 2008 02:42 AM   [ Ignore ]   [ # 45 ]
Jr. Member
Avatar
RankRank
Total Posts:  182
Joined  2008-06-04

I use Modul8 by garage cube to do video projection at clubs and festivals such as (this year) Glastonbury and Reading also a small fest called Beutiful Days, Our web site is down at the moment but normaly you can view our work on http://www.v-lux.net ill inform peeps of when its back up.  Modul8 is a modular based app which allows the user to mix together various forms of media ( mainly video loops ) up to 10 yes 10 video clips can be combined in one layer set and its not to proccessor hungry either.  Of all the VJJ aimed apps i have used it is by far the best. And its modular state allows for massive expansion with plugins coming from everywhere.

About the osx multitouch at the mo the trackpad only supports pinch swipe and zoom as the principly functions. also there is a very handy page scroll using two fingers which once you use once its hard to go back to the cursor keys!

Some sort of uniform gesture library is required.  I also think that a gesture learning function would be brilliant, so you can assign your own gestures to mouse functions or triggers.

Anyway keep suckling that Scarlet cow!!!

 Signature 

}---)))@

Profile
 
 
   
3 of 4
3