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.
IndexProgramming Questions & HelpVideo Capture,  Movie Playback,  Vision Libraries › Same Capture source, 2 different outputs
Page Index Toggle Pages: 1
Same Capture source, 2 different outputs (Read 333 times)
Same Capture source, 2 different outputs
Mar 27th, 2008, 5:12am
 
There's probably an easy solution to this problem, I'm just not seeing it.

To be brief, I'm creating a program that captures from the camera. There is a background, and a foreground made of 'blocks' (think BreakOut or BrickOut). Currently I can display the capture in the background and in the bricks as solid colors. I want to be able to have the images 'paused' unless one of 2 keys are pressed, in which case either the background will 'play' or the bricks will 'play,' but not both.

My main question is this: can I save a 'capture' in some sort of variable, like PImage? So far I haven't had much luck. The best I've been able to do is have the background playing while the bricks are paused, but the other key makes both play.

Am I making sense? I hope so.

The code is fairly dense, with lots of classes, but if need be, I can upload them.
Page Index Toggle Pages: 1