9 of 9
9
TUIO tcp proxy
Posted: 14 April 2009 04:54 PM   [ Ignore ]   [ # 121 ]
Rank
Joined  2009-03-19
Total Posts:  23
New Member

Hi,

sorry for this stupid question but I just have to get this out of my head.  I am trying to implement toxy into my project because I need better performance.  My application is currently having problems handling all the incoming data for multiple fiducials.  I have been using the TUIOLib-0_5.swc until now and I am guessing that I save some CPU cycles if I will use toxy and the altered TUIO classes.

But there is this one thing that I am not sure of.  Do I need, or do I not need to have osc.exe?  I find conflicting information in this thread regarding that.

If I am using toxy_win (1.2) do I still have to have osc.exe somewhere and configure toxy to launch it?

Best,
Sammi

Profile
 
 
Posted: 14 April 2009 05:18 PM   [ Ignore ]   [ # 122 ]
Avatar
RankRank
Joined  2008-03-02
Total Posts:  107
Member

osc.exe is tuio provider, toxy uses information from osc.exe. So in short you need osc.exe (which sends tuio messages to toxy wich forwards from udp to tcp port).
You don’t need to configure nothing as it should work out of the box.

Profile
 
 
Posted: 14 April 2009 05:45 PM   [ Ignore ]   [ # 123 ]
Rank
Joined  2009-03-19
Total Posts:  23
New Member

Aha,

so because right now I am using TUIOSimulator (and eventually reactiVision) I will never need OSC.exe because the simulator and reactiVision are tuio providers wink

Best,
Sammi

Profile
 
 
Posted: 14 April 2009 05:55 PM   [ Ignore ]   [ # 124 ]
Rank
Joined  2009-03-19
Total Posts:  23
New Member

Ok, now I am getting the events for fingertracking just fine but as soon as I try to use the fiducials in the TUIOSimulator I get crap.

Here is just a little trace from within the processMessage() method in TUIO.as

I just did trace(path,type); within the method right after the two variables where declared.

If I am just using fingers I get clean output like this:

/tuio/2Dcur set
/tuio/2Dcur fseq
/tuio/2Dcur alive
/tuio/2Dcur set
/tuio/2Dcur fseq
/tuio/2Dcur alive
/tuio/2Dcur set
/tuio/2Dcur fseq
/tuio/2Dcur alive
/tuio/2Dcur set
/tuio/2Dcur fseq
/tuio/2Dcur alive
/tuio/2Dcur set
/tuio/2Dcur fseq
/tuio/2Dcur alive
/tuio/2Dcur set
/tuio/2Dcur fseq
/tuio/2Dcur alive
/tuio/2Dcur set
/tuio/2Dcur fseq
/tuio/2Dcur alive
/tuio/2Dcur set
/tuio/2Dcur fseq
/tuio/2Dcur alive

But as soon as I drag a fiducial onstage I get this crap:

/tuio/2Dobj set
 ??h>
tuio/2Do
/tuio/2Dobj alive
/tuio/2Dobj set
 ??Y>
ô¦>æÚ¿ tuio/2Do
/tuio/2Dobj alive
/tuio/2Dobj set
 ÍÌL>
UÕ>UU? tuio/2Do
/tuio/2Dobj alive
/tuio/2Dobj set
 “"B>
ÌÌ>«ªª¾ tuio/2Do
/tuio/2Dobj alive
/tuio/2Dobj set
 ¼»;>
ÈÂ>?^¾ tuio/2Do
/tuio/2Dobj alive
/tuio/2Dobj set
 ??9>
tuio/2Do
/tuio/2Dobj alive
/tuio/2Dobj set

Would that tell me that object tracking is not supported in the modified TUIO.as??  Because the TUIOSimulator works just fine and I had fiducial tracking working fine when I was using TUIOLib-0_5.swc.

Best,
Sammi

Profile
 
 
Posted: 15 April 2009 03:14 AM   [ Ignore ]   [ # 125 ]
Avatar
RankRank
Joined  2008-03-02
Total Posts:  107
Member

Well I didn’t make the actionscript part, so I’m not sure. And I don’t know even if the toxy forwards fiducials ok. I’ll take a look this days to see if that’s programmed in toxy.

Profile
 
 
Posted: 15 April 2009 04:56 AM   [ Ignore ]   [ # 126 ]
Rank
Joined  2009-03-19
Total Posts:  23
New Member

After I have looked at it better is seems like the code isn’t there for fiducials.

The TUIOLib-0_5.swc has code for it, but unfortunalety, it is all XML based.

Can it be that we do not have an AS3 library that can read all osc data forwarded by toxy? I have looked at the TUIOLib code and I think a qualified AS3 developer could extend it to support the raw data from toxy instead of the xml data from flosc.  I wish I was that developer but I don’t think I can.

Best,
Sammi

Profile
 
 
Posted: 15 April 2009 08:57 AM   [ Ignore ]   [ # 127 ]
Avatar
RankRank
Joined  2007-03-15
Total Posts:  224
Member

TouchGateway parses the raw TUIO packets but it doesn’t raise events for fiducials either, but it will be quite easy to raise those events, check out the code here…

http://www.touchgateway.com/

Profile
 
 
Posted: 12 June 2009 08:28 PM   [ Ignore ]   [ # 128 ]
Rank
Joined  2009-06-11
Total Posts:  3
New Member

I’m new to all of this, so feel free to correct me if I’m not understanding the purpose.  But if all this does is redirect from a set UDP port to a TCP port… why not just use NAT forwarding?  Not sure about windows, but that’s a basic Linux command and requires nothing more than the OS.

Profile
 
 
Posted: 13 June 2009 09:09 AM   [ Ignore ]   [ # 129 ]
Rank
Joined  2009-03-19
Total Posts:  23
New Member

I am no specialist either.  But if it was as simple as that then some must have tried that already!

Best,
Sammi

Profile
 
 
Posted: 10 October 2010 03:35 AM   [ Ignore ]   [ # 130 ]
Rank
Joined  2008-08-26
Total Posts:  59
New Member

I think, it’s good use for win7 and flash.

Profile
 
 
   
9 of 9
9
 
‹‹ MIDI      OSC LIST OF MESSAGES ? ››