BBTouch,code,multitouch

BBTouch r157 now with a bit less suck07 Oct

Hey All,

I just commited a few more files, bringing BBTouch up to r157. I had been running 152 all week with no trouble, but Sandor managed to find a handful of bugs (of course, right when he is trying to use it at a show :-) so I made some changes and hopefully it is a bit better.

The biggest changes between 152 and 157 are that I fixed some very minor UI issues where the TUIO settings fields were not being properly disabled so you could change them out from under the OSC objects (causing some odd behavior). But the big one was that in some circumstances BBTouch would boot up and the filter settings (and the dark blobs pref) would be basically disconnected from the detector objects. no matter how much you changed them they didnt really affect anything. In any case, with 157 that is all fixed.

That is all for now :-)

I should be posting the newest BBTUIOTest.app soon, once I get it all back together.

cheers!
-b

No TweetBacks yet. (Be the first to Tweet this post)

9 Responses to “BBTouch r157 now with a bit less suck”

  1. thescreamingdrills 9 October 2008 at 5:01 pm #

    I was putting in random numbers to see what would happen and whatever I put in for the last Threshold Kernel Size crashed BBTouch. Here’s the output:

    Oct 8 23:56:46 Logan [0x0-0x11a11a].com.BB.BBTouch[9400]: OpenCV ERROR: One of arguments’ values is out of range (Neighborhood size must be >=3 and odd (3, 5, 7, …))
    Oct 8 23:56:46 Logan [0x0-0x11a11a].com.BB.BBTouch[9400]: in function icvAdaptiveThreshold_MeanC, ../../../cv/src/cvadapthresh.cpp(58)

    So it’s really more my mistake, but it might be useful to have something there, or maybe text indicating what numbers are expected.

  2. Ben 9 October 2008 at 5:07 pm #

    Hey Drills,
    Ahh.. i see the problem. I have the constraints set to be odd numbers greater than 0, when really they should be 3 or better. My bad :-)

    Good catch! :-) I will fix that in the next rev. but for now, just don’t go below 3 :-)

    -b

  3. mrgasparov 16 October 2008 at 12:43 am #

    Hey Ben!

    Amazing piece of software you developed! Simple, effective and… for the Mac!

    Been messing around with BBTouch and Processing for a few days, got everything working fine but was wondering if it’s possible to send blob radius (such as the info in the test view) over TUIO. Is this information extracted with the blob detection or is it infered by some other method?

    Thanks a lot, will keep you posted on the advances of my little project!

    Keep up the good work,
    Pedro.

  4. Ben 16 October 2008 at 6:48 am #

    Hey Pedro,

    thanks for the kind words :-) There have been a few requests for this over at NUIGroup, and initially i said ‘no’, but I have thought about it some more and I think it is absolutely do-able, it is just a matter of deciding how to go about it.

    Currently the TUIO spec does not include the ability to send radius, but I think that the reactivision guys are working on a new updated spec, so I will go and have a look at that. If that is not a solution, it is trivial to add a radius command to the TUIO data stream (the other TUIO clients should ignore it). So that is also a possible solution.

    Anyhow, I will do a bit more research and see what I can do.

    Cheers!
    -b

  5. ajlovegrove 20 October 2008 at 7:25 am #

    Hi Ben,

    I hope you’ve been keeping off the red bull!!! I have a nice crashy problem that i hope you can fix!

    No matter what i do i cant get BBtouch 158 not to crash when i press the Cam settings Button. It doesn’t matter which camera or variations of camera i plug in it just crashes.

    Ive tried trashing the preferences both the com.BB.BBTouch.plist and the com.yourcompany.BBTouch.plist but this has no effect.

    Heres the console:
    19/10/2008 22:17:14 BBTouch[894] SGSetChannelUsage() returned -32767
    19/10/2008 22:17:31 com.apple.launchd[111] ([0x0-0xb80b8].com.BB.BBTouch[894]) Exited abnormally: Floating point exception

    Any help would be very gratefully received. I have probably not done something V simple! You know, like not switching it on and off again!!!

    Cheers.

  6. Ben 20 October 2008 at 7:42 am #

    Hey AJ,

    it looks like it is not starting up the sequence grabber properly when you load BBTouch (that is the SGSetchannel error) and then it looks like about 15 seconds later, you hit the settings button and it fails ungracefully because there is no channel to set the settings on. (I really should add a check for that eh? :-) So the problem is that for some reason BBTouch does not get the cam on first try like it should be.

    try this: in your Application Support folder/BBTouch/ trash the cam settings file. (be sure BBTouch is not running at the time) there may be something off in there.

    After that, go ahead and reboot your whole system. very occasionally when I have trouble like that with the camera, i can never get it to come back without a reboot.

    first thing after reboot: try BBTouch. (ie make sure that you dont have any other apps open that could possibly be trying to use the camera)

    if that doesn’t work, let me know and I will have a closer look into the code. There is something definitely going on in the sequence grabber code. One problem is that much of that code has been deprecated by Apple, but the equivalent functionality has not been exposed in the QTKit, so right now it is sorta in this limbo where it all ‘should’ work, but there are a few really crazy bugs that pop up very occasionally. (making them very hard to track down :-) but there is no alternative yet.

    Cheers!
    -b

  7. ajlovegrove 24 October 2008 at 11:58 pm #

    Hi Ben,

    Thanks that sorted it out, now works perfectly.

    Cheers

  8. ajlovegrove 30 October 2008 at 7:19 pm #

    Hey Ben,

    As you probably know nuigroup has released tbeta, Cerupcat has been having issues getting the firefly mv to work with tbeta on os x and on windows.

    As it works seemlesly with bbtouch i wondered if you might be able to shed some light on it?

    Do you have a firewire cam and if so does it work with tbeta?

    Any way just thought id ask!

    Cheers and keep of that redbull!

  9. Ben 31 October 2008 at 9:01 am #

    Hey AJ,

    I have heard about the new beta but have been too busy to even download it :-( That said, do you know what libs they are using to access the firewire stream in tbeta? I know it is a cross-platform solution so I wonder if they are using one of the POSIX 1394 libs or if they are checking for the architecture and then running some hardware specific code?

    Anyhow, I have a fire-i cam, the same as many many NUIGroupers, so I am sure that if that didn’t work you would have heard about it by now :-)

    In any case, the sequence grabber code that I am using is all in one object: CSGCamera, (which I actually got originally from another open source project, and updated it for BBTouch).. so have a look in there for the specifics of how I am handling the camera input stream. (ie, I am letting the system deal with it :-)

    none of that is probably helpful :-) hopefully soon i will have a few free minutes to download the tbeta stuff :-)

    Cheers!
    -b

Leave a Reply

You must be logged in to post a comment.

About

meMy full name is Ben Britten Smith.

I go by Ben Britten because Ben Smith is a bit too common and using my full name is a mouthful.

I live in Melbourne, Australia and service clients all over the globe.

Contact

Have some questions?

Feel free to contact me directly at support@benbritten.com with any questions you might have about any of the applications I support.

Thanks!

PHVsPjxsaT48c3Ryb25nPndvb19hYm91dDwvc3Ryb25nPiAtIGFib3V0LXdpZGdldDwvbGk+PGxpPjxzdHJvbmc+d29vX2FkX2JlbG93X2ltYWdlPC9zdHJvbmc+IC0gaHR0cDovL2JlbmJyaXR0ZW4uY29tL3dwLWNvbnRlbnQvdGhlbWVzL3ZpYnJhbnRjbXMvaW1hZ2VzL2FkNDY4LmpwZzwvbGk+PGxpPjxzdHJvbmc+d29vX2FkX2JlbG93X3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