BBtouch TUIO cursor control? 
Posted: 29 July 2008 07:42 AM   [ Ignore ]
Jr. Member
Avatar
RankRank
Total Posts:  182
Joined  2008-06-04

Hi,

Thanks for all the help so far.  I am currently looking for a way to control the cursor in osx using bbtouch just for a single touch interface using my FTIR setup, Has anyone got some way of doing this? 

Any help on the topic would be gratefully received.

 Signature 

}---)))@

Profile
 
 
Posted: 29 July 2008 10:39 AM   [ Ignore ]   [ # 1 ]
Jr. Member
Avatar
RankRank
Total Posts:  103
Joined  2008-06-26

Hey AJ,

lol… just posted this at Ben’s blog… Anyhow you can check it out - maybe it helps....

“...here is a little application stripped together from some stuff i found on the web (http://lists.apple.com/archives/quartzcomposer-dev/2008/Feb/msg00079.html) and my things…

You can assign the TUIO stuff instead of the mouse for X and Y. Rotate i quess will work for now only with fiducials (since you have to use 2 fingers for rotate and scale in MT and there is no code fo that in this QC composition). Simply assign a key value to the structure Key Member (xpos or ypos for example) and connect that wherever you want (can). Please note that you have to pass through TUIO infos from a tracker or from the TOIUsimulator to the QC TUIOclient before you can see some values inside of QC…

http://workflow.cd-cologne.de/download/QC_surface.zip

Otherwise: far as i could test that all the AS3 stuff is working well with BBTouch…

Cheers,

 Signature 

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

Profile
 
 
Posted: 29 July 2008 04:20 PM   [ Ignore ]   [ # 2 ]
Jr. Member
Avatar
RankRank
Total Posts:  182
Joined  2008-06-04

Thanks for the input Sandor i have looked at the QC comp and it works well.  As soon as i can get Flash to work again ( Damned macromedia!! ) i will look at some of the action script stuff.

 Signature 

}---)))@

Profile
 
 
Posted: 29 July 2008 09:18 PM   [ Ignore ]   [ # 3 ]
New Member
Rank
Total Posts:  88
Joined  2008-05-17

I haven’t had much luck so far with QC, still a lot of things I don’t understand. But I was able to get a very simple single touch patch together, I put it into a wiki here:

http://nuigroup.com/wiki/Quartz_Composer_with_BBTouch/

Hopefully this will be a good starting point for some.

 Signature 

Nuigroup wiki

Profile
 
 
Posted: 30 July 2008 04:08 AM   [ Ignore ]   [ # 4 ]
New Member
Avatar
Rank
Total Posts:  83
Joined  2008-03-23

Hey drills!

that is great! (the tutorial) altho i am ashamed to admit that I haven’t done it yet (I am ‘inbetween surfaces’ at the moment grin and i have no MT input right now :-(

I guess i should get another camera since the little surface is so damn handy for testing (it is like a slightly oversize MTMini)

Anyhow, great work on the tutorial, i will link it from the blog.

AJ: it looks like the single cursor thing can be done in QC, but do you mean using BBtouch to generate mouse events? if so, then i need to add something to do that. (which i can do if people are interested in it, I will add it to ‘the list’ grin

Cheers!
-panda

 Signature 

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

Profile
 
 
Posted: 30 July 2008 04:36 AM   [ Ignore ]   [ # 5 ]
Jr. Member
Avatar
RankRank
Total Posts:  103
Joined  2008-06-26

Ben, far as i can judge BBTouch will pass over ALL tracked points to the TUIOpatch in QC. This is for multiple fiducials and also for multiple tracked fingers/blobs. There will be a clear structure what you can use in the QC composition. See the attached images - i am using the TUIOsimulator for this. Sinve we don’t have an MT framework fpr OSX/QC, i suppose that what we need first is a kind of a “multi-mouse-cursor” thingie (but i’m not experienced enough in progging to realy say if that would be the right way...).

Cheers,

Image Attachments
multicursor.jpgfiducials.jpg
 Signature 

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

Profile
 
 
Posted: 30 July 2008 05:19 AM   [ Ignore ]   [ # 6 ]
New Member
Avatar
Rank
Total Posts:  83
Joined  2008-03-23

Hey Sandor,

Yeah, i have been looking into it a little bit, I have been trying to figure out how to do gestures properly in QC. 

the problem is that you need to be able to do hit-testing on all the input objects to do a proper gesture. (ie two fingers down on two separate objects is just two dragging gestures, but two points down on the same object is a rotate/scale)

I think it is do-able in a QC patch, but i need to get stuck into the QC world before I can say for sure.  QC is awesome, and i think it is a valuable tool, but it is things like these that I am so much more confortable just programming up a nice Cocoa app with grin

In any case, i am definitely looking onto some more BBTouch <-> QC integration.

 Signature 

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

Profile
 
 
Posted: 30 July 2008 06:16 AM   [ Ignore ]   [ # 7 ]
Jr. Member
Avatar
RankRank
Total Posts:  182
Joined  2008-06-04

Thanks Panda, Sandor & drills, Panda having just a single touch interface to use as a cursor would be great much like an interactive white board or traditional touch screen, I would like to be able to control normal applications using my finger as the cursor. So obviously tap on an icon blah blah.  This will then lead to multi touch implementation at a later date, for now Blob down equals left click, blob x,y cord equals cursor cord.

I will look at the other stuff posted on this topic later,

Cheerio!

 Signature 

}---)))@

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

Drills i used your tut on wiki and it works great also adding a key member with angle gives you the fiducial rotate function!

 Signature 

}---)))@

Profile
 
 
Posted: 05 August 2008 10:08 AM   [ Ignore ]   [ # 9 ]
New Member
Avatar
Rank
Total Posts:  70
Joined  2008-06-01

Don’t know if this will help anyone, but after searching for a while I found some code that should control the cursor.  I figure it wouldn’t be too difficult to run this when the first point is detected.  Unfortunately haven’t had much success with my table and getting the laser plane working.  So, if someone has a chance to test this out let me know if it works.

moveMouseCursorTo:(float)x:(float)y {
    CGPoint coord 
CGPointMake(xy);
    
CGWarpMouseCursorPosition(coord);
}

Not sure if this causes an actual “click” or if it just moves the cursor.  Regardless, it should offer some sort of starting point in raw Cocoa instead of QC.

EDIT: to be clear, this is a Carbon library function called within Cocoa code.

 Signature 

Elemental Multitouch Project ~ http://eleme.ntal.ws/

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

hey Ignigena, thanks for that!  this will save me the time of trying to track it down when i finally get to that point grin (still building the distortion filters at the moment)

Cheers!
-panda

 Signature 

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

Profile