Touchlib and Max/MSP… How to?
Posted: 20 March 2008 06:27 AM   [ Ignore ]
New Member
Rank
Total Posts:  3
Joined  2008-03-20

Hello.
First of all, massive thanks for all efforts you people have made here. It is priceless resource for me in developing my own multitouch system (which is not finished yet though)
In order to complete my first prototype, I desperately need your help at this point.
I completed my project a year ago, which was a single touch based system. Now it’s time to step forward - multitouch.
My primary implementing application was Max/MSP and my project was done only with max/msp. It makes me quite unfamiliar with OSC world - communicating with other software.
Recently I found a max patches for blob tracking done by other genius here. Problem is...I’d like to use Touchlib for blob tracking and send information to max/msp for further process.
Can anyone give me a simple instruction how to achieve it?
As far as I understand, vision.bat send osc messages to somewhere and open sound control object in Max/MSP is supposed to receive them through port 3333. That’s all I can figure out.
Massive thanks in advance.

Han.
http://www.projectscriabin.com

Profile
 
 
Posted: 23 March 2008 02:44 PM   [ Ignore ]   [ # 1 ]
Jr. Member
Avatar
RankRank
Total Posts:  215
Joined  2007-01-18

you need a receiving patch for MAX which receives the OSC on the right port. Not only that has to be right, also the send and receive strings need to match. I have no clue what these are but if you fing them it should look like “/something ... /blob whatever.

 Signature 

~ Another shameless attempt to increase the postcount… ~

Profile
 
 
Posted: 23 March 2008 03:10 PM   [ Ignore ]   [ # 2 ]
Administrator
Avatar
RankRankRankRankRankRank
Total Posts:  1508
Joined  2007-04-08

You can get a TUIO object for MAX/MSP at the reactivision site here: http://reactable.iua.upf.edu/?software

That should unpack the messages from touchlib. I’ve used the TUIO one for PD. It basically will unpack giving you blob ID, x, y location of cursor for each blob. So you still have some work to do in order to make it all useful.

 Signature 

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

Profile
 
 
Posted: 24 March 2008 12:10 AM   [ Ignore ]   [ # 3 ]
New Member
Rank
Total Posts:  3
Joined  2008-03-20

Thanks for your replies!
As you recommended, I’ve tried using the TUIO object downloaded from reactable site for Max/MSP client.
When I use reactivistion+Max/MSP combo, it works greatly, identifying all the messages from reactivision in Max/MSP.
Touchlib+Max/MSP combo, however, does not communicating each other.

Process I took is as follow…
1. Configure Touchlib program by running configure.bat
2. run Vision.bat to activate OSC.
3. Open TUIO_MaxMSP.pat in Max/MSP to test communication between each other. (I installed TuioClient external for Max, of course)
4. Nothing happens. :(

Is there anything vital I’m missing in my process?

Many thanks for your time for helping me out!

Han.

Profile
 
 
Posted: 24 March 2008 02:31 AM   [ Ignore ]   [ # 4 ]
Administrator
Avatar
RankRankRankRankRankRank
Total Posts:  1508
Joined  2007-04-08

are you running both configapp and osc at the same time? Make sure you’re only running osc. Make sure you’re also listening on the right port on tuio max object. I think it’s 3333 or 3000. Can’t remember. Let me know if that helps. It should work similar to reactivision.

 Signature 

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

Profile
 
 
Posted: 24 March 2008 06:04 AM   [ Ignore ]   [ # 5 ]
New Member
Rank
Total Posts:  3
Joined  2008-03-20

Thanks cerupcat for your fast reply! smile

Yes. Once I finished configuration part, I save and quit that process and run only OSC.exe. Default port is, as you said, 3333 and “TuioClient” object in Max uses 3333 port by default.
Fact I’ve found so far is that port 3333 is obviously open and listening from touchlib. I checked it through “Udpreceive” object in max.
TuioClient object, however, is NOT responding at all… :(
In addition, form of messages from touchlib is quite different from that of reacitivision. hmm....

Could it be probably software version problem? I’m using Max/MSP 4.5.5 with Jitter on Window platform.

Many thanks in advance.

Han.

Profile
 
 
Posted: 24 March 2008 11:26 PM   [ Ignore ]   [ # 6 ]
Administrator
Avatar
RankRankRankRankRankRank
Total Posts:  1508
Joined  2007-04-08

Hmm ok. I don’t have MAX installed right now. I’ll try installing tonight or tomorrow and see if I can test this out for you. Plus, I might lke to start working in max for the sound stuff I want to do. I wish PD had export as exe type thing max does =\

 Signature 

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

Profile