1 of 3
1
Has anyone used OSC yet direct to Flash 10.1 and Air 2.0? 
Posted: 01 January 2010 01:22 PM   [ Ignore ]
RankRankRank
Joined  2009-05-05
Total Posts:  340
Sr. Member

Apparently Flash 10.1 and AIR 2.0 can now support direct TUIO OSC UDP without that weird conversion process.  has anyone tried this out yet? what i needed in the flash apps to do this?

I have a table with Flash apps but i want the table to be able to also use the Windows 7 driver but i cannot do both since CCV makes u choose between OSC tuio UDP and tuio for flash which converts from UDP to TCP and then sent to the flash apps.

it would be nice to have the flash apps work off regular tuio feed.

Also if anyone has done this i was also wondering if they noticed improvements in performance. there is no conversion anymore so i am feeling its faster and i read the reports by adobe but would like to hear from the community for real world responses.

Profile
 
 
Posted: 01 January 2010 05:00 PM   [ Ignore ]   [ # 1 ]
Avatar
RankRankRankRank
Joined  2009-04-14
Total Posts:  945
Elite

there is a mod of ccv that allows to send both to tuio and flash… check my blog…

 Signature 

One more but very useful blog : http://cktouch.fr.nf/
Rear DI + Windows Seven + Surface = So Nice…

Profile
 
 
Posted: 02 January 2010 05:26 PM   [ Ignore ]   [ # 2 ]
RankRankRank
Joined  2009-05-05
Total Posts:  340
Sr. Member

yeah i have seen it, but i am worried that running both will further increase processing power. any ideas about the original question regarding new Flash and Air?

Profile
 
 
Posted: 05 January 2010 03:41 PM   [ Ignore ]   [ # 3 ]
Avatar
RankRankRank
Joined  2008-06-16
Total Posts:  314
Sr. Member

there are plans to add a TUIO/UDP input module to the TUIO AS3 reference implementation,
at the moment this library already supports TUIO/TCP and TUIO/FLC, adding another module should be trivial.
http://code.google.com/p/tuio-as3/

@machinegun: the Flash mode in CCV is still the old Flash XML encapsulation, which is now obsolete

 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
 
 
Posted: 06 January 2010 12:16 AM   [ Ignore ]   [ # 4 ]
RankRankRank
Joined  2009-05-05
Total Posts:  340
Sr. Member

So as of right now you cannot use OSC UDP mode in CCV for flash (i need to continue to click “Tuio for flash” option), is this correct?

Profile
 
 
Posted: 26 January 2010 06:00 PM   [ Ignore ]   [ # 5 ]
Avatar
RankRankRank
Joined  2007-09-13
Total Posts:  314
Sr. Member

How hard should it be to convert the Touchlib Flash framework to support TUIO/FLC of TUIO/UDP?

On a side note, all of the TUIO/TCP implementations I’ve tried perform actually worse than Flosc. I’m hoping the new methods will change that.

Profile
 
 
Posted: 29 January 2010 09:58 PM   [ Ignore ]   [ # 6 ]
Rank
Joined  2009-09-25
Total Posts:  4
New Member

The benefit of using XML is that it is c++ accelerated.  I have yet to look into the source that drives the TUIO/TCP method, but one way of potentially speeding up the parsing, if you are only passing native objects into flash, is to build the parser in c and embed it into your app using alchemy.  Adobe open sourced the alchemy code base and I’ve been toying with the idea of implementing their AMF protocol to pass objects to and from embedded c libraries and as3.  Could be a community effort at that point as that would not be an easy task.

Chris

Profile
 
 
Posted: 05 February 2010 10:03 AM   [ Ignore ]   [ # 7 ]
Avatar
Rank
Joined  2007-12-08
Total Posts:  79
New Member

I’ve been able to get another custom OSC working with Flash 10.1 and I can probably make the necessary changes to the TUIO Actionscript class.  Is there someone who is pretty familiar with the TUIO OSC binary format and wants to help me out?

Profile
 
 
Posted: 10 February 2010 11:10 AM   [ Ignore ]   [ # 8 ]
Avatar
Rank
Joined  2010-02-09
Total Posts:  10
New Member
Martin Kaltenbrunner - 05 January 2010 03:41 PM

there are plans to add a TUIO/UDP input module to the TUIO AS3 reference implementation,
at the moment this library already supports TUIO/TCP and TUIO/FLC, adding another module should be trivial.
http://code.google.com/p/tuio-as3/

@Martin:

Just wondering whether there has been any progress on adding the TUIO/UDP input module? I’ve created a UDPConnector class that implements IOSCConnector as well as a new udp package that contains modified OSCSocket and OSCEvent classes based on the new DatagramSocket in AIR 2.0 however, I’m struggling to test whether it all works properly since I couldn’t even get the TCP/FLC demo to work (I’ve only been playing with all this for a couple days). Before I found out about your library I had a shot at building my own UDP connection and managed to get the raw TUIO OSC data from CCV into my AIR app no problem.

If you want any of my code then just ask but as you said yourself, adding UDP support should be trivial - any idea when you might have this ready?

Cheers,

 Signature 

Andy McDonald
PhD Student / Research Assistant
Centre for Advanced Textiles
Glasgow School of Art

Profile
 
 
Posted: 10 February 2010 03:00 PM   [ Ignore ]   [ # 9 ]
Avatar
Rank
Joined  2010-02-09
Total Posts:  10
New Member

Hi again,

OK… so I played about with the code a bit more and I think I’ve got CCV speaking to AIR directly through a UDP connection (instead of TCP or FLC). I’ve attached a UDP_Example.zip file that contains a modified version of the ‘tuio-as3’ library (0.5 release). As I mentioned before, all I have done is added a UDPConnector class within the org.tuio.osc package as well as an org.tuio.udp package that contains new OSCSocket and OSCEvent classes. In order to get this to work make sure CCV is sending out OSC rather than TCP (by clicking the checkbox or pressing ‘t’wink and that you are targeting AIR 2.0 (by downloading the beta from Adobe Labs and following these instructions)

I’ve not yet got my multi-touch surface setup yet so I’ve only tested it with the standard video feed from CCV - anyone fancy testing it with a working setup to see how it compares to the TCP / FLC methods? Gimme a shout if you run into any problems.

Cheers,

File Attachments
UDP_Example.zip  (File Size: 67KB - Downloads: 35)
 Signature 

Andy McDonald
PhD Student / Research Assistant
Centre for Advanced Textiles
Glasgow School of Art

Profile
 
 
Posted: 10 February 2010 06:12 PM   [ Ignore ]   [ # 10 ]
Avatar
Rank
Joined  2007-12-08
Total Posts:  79
New Member

@Andy,

Thanks for posting this. 

-Matt

Profile
 
 
Posted: 10 February 2010 06:36 PM   [ Ignore ]   [ # 11 ]
Avatar
RankRankRankRank
Joined  2006-11-09
Total Posts:  1017
Administrator

I second that… @Andy… Very interesting thanks look forward to trying this out.

 Signature 
Profile
 
 
Posted: 11 February 2010 12:41 PM   [ Ignore ]   [ # 12 ]
Avatar
Rank
Joined  2010-02-09
Total Posts:  10
New Member

I managed to hack together a very basic table and I can confirm that the UDP connection between CCV and AIR does work. As I do not have anything to compare it to (since I’ve never tried the other methods), it’s difficult to judge the performance - all I can say is that I am very happy with the responsiveness and it certainly feels quicker than the flash-based demos I have seen online.

 Signature 

Andy McDonald
PhD Student / Research Assistant
Centre for Advanced Textiles
Glasgow School of Art

Profile
 
 
Posted: 12 February 2010 09:28 PM   [ Ignore ]   [ # 13 ]
RankRankRank
Joined  2009-05-05
Total Posts:  340
Sr. Member

yeah but air limits only two fingers

Profile
 
 
Posted: 13 February 2010 04:09 AM   [ Ignore ]   [ # 14 ]
Avatar
Rank
Joined  2010-02-09
Total Posts:  10
New Member

That is only if you work with the built in multi-touch gestures (which are pretty limited anyway). You are free to create your own high level gesture recognition or just work directly with the low level data coming out of CCV. In any case, UDP is simply a faster way to get data from CCV into your AIR app, what you do with that data is a separate matter - the capabilities / limitations of AIR are the same regardless of what type of connection is used.

 Signature 

Andy McDonald
PhD Student / Research Assistant
Centre for Advanced Textiles
Glasgow School of Art

Profile
 
 
Posted: 13 February 2010 04:52 AM   [ Ignore ]   [ # 15 ]
Avatar
RankRankRankRankRankRank
Joined  2007-04-08
Total Posts:  2293
Moderator

Very Cool Andy, thanks for contributing.

Cityguru, there’s no reason this can’t be implemented with the Touchlib TouchAPI so that all the touchevents still work and the rotate/scale/move classes all still work. You really dont need the built in gesture events from flash because we already implement those things in our own API.

 Signature 

Follow me on:
My Website - Youtube - Twitter - Linkedin

Profile
 
 
   
1 of 3
1