We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Capture Application (Read 503 times)
Capture Application
Apr 6th, 2006, 11:58pm
 
I've had a reasonably successful show with my camera tracking Tetris game. No crazy tracking libraries, just a scan of capture.pixels[] with a 4 step jump and then return the brightest column of pixels (we give the player a white chef's coat to wear). A hot tip for you all is that capture cards combined with a video camera are very good for the job. We used an Osprey one (would retail about £80) and unlike the webcams I've tried it has zero impact on the performance of Processing. Ran in conjunction with the opengl library it gives you some super sexy results.

Just a quickie question about the capture list. I want to put this game's source code online after my show closes tomorrow. But I'd like to have it downloadable as an application, just so people can plug in a cam and play without having to port in 5 tabs of code and look at the longest list of global variables I've ever written. (Things were getting pretty annoying sifting through the classes so I just wrote a huge list of static final variables for my settings.)

Would I be able to use the capture.list() to make a device selection menu? I'm guessing the String it delivers could give devices to use with split(). Likely a need to catch exceptions too. Plausible? Please tell me what you think.
Page Index Toggle Pages: 1