How to connect to TUIO?
Posted: 29 January 2009 12:29 PM   [ Ignore ]
Rank
Joined  2009-01-29
Total Posts:  4
New Member

I got my first prototype table to work (I’m really glad, that it works smile ) and I want to
program some software. I downloaded TBeta and the Flash demos and everything works
fine. But I don’t want to programm my applications with Flash. I want to use some
Software for Games. So I tried to connect to the TUIO but it doesn’t work. I tried to
connect to TCP (IP: 127.0.0.1 | Port: 3333). Is that correct? Why doesn’t it work?
Please help a Multitouch-Beginner!

,-Megamag

EDIT: Sorry for my bad English, I’m from Germany^^

Profile
 
 
Posted: 29 January 2009 12:45 PM   [ Ignore ]   [ # 1 ]
Avatar
RankRank
Joined  2008-04-22
Total Posts:  204
Member

which language are you using ? , you should be able to do this using socket programming quite easily

 Signature 

sharathpatali.wordpress.com

Profile
 
 
Posted: 29 January 2009 12:47 PM   [ Ignore ]   [ # 2 ]
Rank
Joined  2009-01-29
Total Posts:  4
New Member

I tried it with Game Maker Language (GML).
I already tried to connect to a socket.
“tcpconnect(127.0.0.1,3333,true)”

Profile
 
 
Posted: 29 January 2009 12:49 PM   [ Ignore ]   [ # 3 ]
Avatar
RankRank
Joined  2007-03-15
Total Posts:  224
Member

use UDP not TCP

Profile
 
 
Posted: 29 January 2009 12:53 PM   [ Ignore ]   [ # 4 ]
Avatar
RankRank
Joined  2008-04-22
Total Posts:  204
Member

yup, udp is the way, btw which language is that i have never heard of it, is it similar to BASIC syntax

 Signature 

sharathpatali.wordpress.com

Profile
 
 
Posted: 29 January 2009 01:58 PM   [ Ignore ]   [ # 5 ]
Rank
Joined  2009-01-29
Total Posts:  4
New Member

@Sharath:
Yes, it’s a bit like Basic.

@Topic:
Now I’m using UDP, but sometimes a message appears, that sais:
“UDP Sstream not found”
And sometimes it works, but the recieved message is just “-1”.
Why?

Profile
 
 
Posted: 29 January 2009 11:23 PM   [ Ignore ]   [ # 6 ]
Avatar
RankRank
Joined  2008-04-22
Total Posts:  204
Member

I really don’t know how sockets are handled in GML, i feel you should keep the connection open indefinitely and not purge the connection, tuio is discreet in nature, but even if there is no touch, it still continuously sends “no touch on surface” kind of message.

 Signature 

sharathpatali.wordpress.com

Profile
 
 
Posted: 30 January 2009 09:52 AM   [ Ignore ]   [ # 7 ]
Rank
Joined  2009-01-29
Total Posts:  4
New Member

I’ve got an idea!
If someone can program a C++ or Java Client, which saves
the Data in a txt-File, I can use this with GML.

Profile
 
 
Posted: 30 January 2009 12:06 PM   [ Ignore ]   [ # 8 ]
Avatar
RankRankRank
Joined  2008-06-16
Total Posts:  330
Sr. Member

Hello,
the TUIO protocol is based on Open Sound Control (OSC), and usually send via UDP port 3333.
You basically need to decode the binary contents of a UDP packet following the OSC format,
and then generate events from the TUIO set & alive messages.

http://en.wikipedia.org/wiki/OpenSound_Control
http://mtg.upf.edu/reactable?tuio

I am afraid that there isn’t an OSC implementation for the Game Maker Language,
but if you can receive UDP packets, it should be not very difficult to decode OSC/TUIO messages.

good luck,
Martin.K

 Signature 

TUIO community site: http://www.tuio.org
reacTIVision framework: http://reactivision.sf.net
TUIO & reacTIVision CVS: http://sf.net/projects/reactivision
reacTIVision forum: http://sf.net/apps/phpbb/reactivision

Profile