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…
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.
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.
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.)
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.
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.
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.
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.
@arnage....
the calibration happens with configapp.exe in the touchlib bins.... .. 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.
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.