Using WhiteNoise’s Flash apps with TouchLib
Posted: 02 April 2007 01:19 PM   [ Ignore ]
Rank
Joined  2007-02-19
Total Posts:  55
New Member

Can someone write a brief walkthrough on how to execute the flash apps?

1. I run OSC.exe (touchlib)
2. I run “Run.exe” Within the TUIO\FLOSC directory
3. - Now what?

Also, is there any additional way to calibrate these apps? Should they already be calibrated from previous calibration w/ configapp?

Profile
 
 
Posted: 02 April 2007 02:52 PM   [ Ignore ]   [ # 1 ]
Rank
Joined  2007-03-16
Total Posts:  40
New Member

I’m not sure if you have flash player 9 (with as3 preview) but you need it (or at least I did) and i also installed flash 9 pro with as3 preview to edit the files. (see frontpage!)

It’s working for me the way you already described. The only thing i’m not really sure about is if you need to calibrate to your own resolution (i’ve got a very low res cam...and i’ve got some buggy results myself… ). It also can be my slow pc…

Profile
 
 
Posted: 01 October 2007 11:55 AM   [ Ignore ]   [ # 2 ]
Rank
Joined  2007-08-24
Total Posts:  33
New Member

I tried running the flash examples. But Flosc displays an exception as follows. Any ideas?

C:\vvvv\Sample Projects\touchlibflash TUIO (Working)\touchlibflash\FLOsc>java -j
ar FlashOSC.jar 3333 3000
Attempting to start OSC / Flash Gateway server
OscServer created…
TcpServer created…
Exception in thread “Thread-0” java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at Bytes.copy(Bytes.java:243)
at OscServer.parseOscPacket(OscServer.java:125)
at OscServer.run(OscServer.java:71)

When I start the Flash application, Photo.swf. No photos were displayed.

Any help shall be appreciated.

Profile
 
 
Posted: 01 October 2007 12:01 PM   [ Ignore ]   [ # 3 ]
Avatar
RankRankRankRankRankRank
Joined  2007-04-08
Total Posts:  2539
Dedicated
Armage - 01 October 2007 11:55 AM

I tried running the flash examples. But Flosc displays an exception as follows. Any ideas?

C:\vvvv\Sample Projects\touchlibflash TUIO (Working)\touchlibflash\FLOsc>java -j
ar FlashOSC.jar 3333 3000
Attempting to start OSC / Flash Gateway server
OscServer created…
TcpServer created…
Exception in thread “Thread-0” java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at Bytes.copy(Bytes.java:243)
at OscServer.parseOscPacket(OscServer.java:125)
at OscServer.run(OscServer.java:71)

When I start the Flash application, Photo.swf. No photos were displayed.

Any help shall be appreciated.

Yeah, the reason no photots are displayed is because you are getting that exception. It’ll say “connected” in FLOSC when it is working properly. Make sure the order you are launching applications is FLOSC first, then OSC, and lastly the flash application. Make sure you have the latest java update. Also, if you’re not using the newer version of FLOSC, you can find it in the flash section. Hope that helps.

 Signature 

MTmini, MTbiggie, & Audiotouch creator & Community Core Vision Co-founder

Follow on:
My Blog | Facebook | Twitter | Youtube

Profile
 
 
Posted: 01 October 2007 12:20 PM   [ Ignore ]   [ # 4 ]
Rank
Joined  2007-08-24
Total Posts:  33
New Member

I think the error is realted to

http://nuigroup.com/forums/viewthread/87/

What I did was to use a cigarette lighter as the blob.

Actually, when I started the Photo.swf.

FLOSC was still showing
C:\vvvv\Sample Projects\touchlibflash TUIO (Working)\touchlibflash\FLOsc>java -j
ar FlashOSC.jar 3333 3000
Attempting to start OSC / Flash Gateway server
OscServer created…
TcpServer created…

But still no photo appeared.

(I tried the latest FLOSC, apparently the command line for us to see the error message. Have started another thread on this.)

Profile
 
 
Posted: 01 October 2007 12:47 PM   [ Ignore ]   [ # 5 ]
Rank
Joined  2007-08-24
Total Posts:  33
New Member

I tried all the other apps in the folder like Ripples, Paint and etc…
All not working, so I installed Flash Player 9 from Adobe on my Browser. :( Didn’t work.

Any suggestions?

Profile
 
 
Posted: 02 October 2007 12:05 PM   [ Ignore ]   [ # 6 ]
Rank
Joined  2007-07-14
Total Posts:  37
New Member

I start the server first, then the vision batch file. Keep on eye on the vision’s command line, make some test presses on the touch screen and see if you get a “Press detected” message. If you do, this means vision is working ok and should be sending messages to flosc. Go back to the flosc command line and check there are no errors. Last line for me is “TcpServer created...”.

Now start your flash app. Try the photo one, ripples doesn’t work for me.

Also, make sure your screen is calibrated.

Hope that helps

 Signature 

Touch Is Everything

Profile
 
 
Posted: 03 October 2007 06:55 AM   [ Ignore ]   [ # 7 ]
Rank
Joined  2007-08-24
Total Posts:  33
New Member

I could see coordinates appearing in OSC.exe command display.

Im not too sure if calibration has to the with the flash application at this stage, calibration is for correcting the effects of lens distortion right?

I think it has something to do with a local install of flash player 9, since it is written in AS3. Correct me if I am wrong. I only have flash player 9 installed on Internet Explorer.

Im still using Flash Pro 8.

Profile
 
 
Posted: 03 October 2007 07:33 AM   [ Ignore ]   [ # 8 ]
Rank
Joined  2007-08-31
Total Posts:  54
New Member

open your swf double-clicking it, then check what version of flashplayer standalone projector are you using (Menu: Help->About Flash Player..). If your swf application has AS3 code it won’t work in a player below version 9. If you have version 9 installed on Internet explorer, just open internet explorer and drag inside the swf file. It should work.

Profile
 
 
Posted: 04 October 2007 09:44 AM   [ Ignore ]   [ # 9 ]
Avatar
RankRankRank
Joined  2007-09-07
Total Posts:  270
Sr. Member

@arnage....
the calibration happens with configapp.exe in the touchlib bins.... smile .. even i took a while to figure out the whole process… here’s how i did it

- delete the old config.xml (or rename it ... just in case)
- run the configapp.exe
- once you have selected the camera for input you will have 6 screens showing the feed from the cam..
- first select ther rectify screen and press"b" to remove the background.
- now play with the brightness/contrast with your fingers on the table to make sure they are visible properly.
- once the finger spot are weel read in rectify screen, press enter keeping the rectify screen as active window. this will take you to calibration mode.
- now press “c” to start calibration. it will ask you to touch specific points and once you are donw press “escape”. this will save a new config.xml ans end the configapp.exe

now its almost done.

- run OSC.exe this will run on your latest settings.
- run flosc (if you havee the run.bat version its preset to port 3333 so dont bother. if u r using the new java app version of flosc then set the OSC port to 3333 and start the server)
- make sure you have the latest Flash player and AS3 installed.
- make the flash app fullscreen. it should run just fine.

hope this helps you. cheers!!!

deej

http://therealdesktop.blogspot.com

 Signature 

cheers!!!

deej
http://therealdesktop.blogspot.com

Profile
 
 
Posted: 04 October 2007 10:33 AM   [ Ignore ]   [ # 10 ]
Rank
Joined  2007-08-31
Total Posts:  54
New Member
deej - 04 October 2007 09:44 AM

due to lack of any sort of documentation .. even i took a while to figure out the whole process…

sorry to say but… it’s documented in the wiki and so it’s also in the touchlib page at “Getting Started”

http://nuigroup.com/touchlib/tutorials/

wink

Profile
 
 
Posted: 04 October 2007 12:54 PM   [ Ignore ]   [ # 11 ]
Avatar
RankRankRank
Joined  2007-09-07
Total Posts:  270
Sr. Member

whoops!!! sorry… i shall edit n re post !!! smile i meant no documentaion with the package!!!!

 Signature 

cheers!!!

deej
http://therealdesktop.blogspot.com

Profile
 
 
Posted: 04 October 2007 01:43 PM   [ Ignore ]   [ # 12 ]
Rank
Joined  2007-08-24
Total Posts:  33
New Member

nacho, if I don’t execute OSC and FLOSC; would the FLICKR flash application (or other SWF apps) still show the picture?

I am trying to find out the actual coz of why those flash apps arent showing anything.

Profile
 
 
Posted: 04 October 2007 02:33 PM   [ Ignore ]   [ # 13 ]
Avatar
RankRankRankRankRankRank
Joined  2007-04-08
Total Posts:  2539
Dedicated
Armage - 04 October 2007 01:43 PM

nacho, if I don’t execute OSC and FLOSC; would the FLICKR flash application (or other SWF apps) still show the picture?

I am trying to find out the actual coz of why those flash apps arent showing anything.

Have you enabled the security options for the swf files? They won’t work or show up completely if the security is not setup. Right click the swf when it’s open, go to “settings” and on then go to “advanced.” A webpage will come up and you need to go to global security settings” and put the folder or files in the “allow” setting.

 Signature 

MTmini, MTbiggie, & Audiotouch creator & Community Core Vision Co-founder

Follow on:
My Blog | Facebook | Twitter | Youtube

Profile
 
 
Posted: 04 October 2007 11:23 PM   [ Ignore ]   [ # 14 ]
Rank
Joined  2007-08-24
Total Posts:  33
New Member

Cheers cerupcat smile

It was the security settings.

I tested out Ripples and Photo and it is showing without the OSC and FLOSC.

Paint just appear as a dark grey screen with “White Noise’s Multitouch Point” at the bottom.

Thank you.

Profile