processing-video icon indicating copy to clipboard operation
processing-video copied to clipboard

Capture.start() fails without default renderer

Open codeanticode opened this issue 11 years ago • 0 comments

When using some webcams in P2D/P3D modes, the call of Capture#start() never returns. Works fine with the default renderer. Have tested this on multiple machines with the same camera. Capture.list() never returns either.

Processing 2.1 OSX 10.8 Creative GestureCam (Intel/Creative Labs Gesture Recognition Camera).

Sample code to reproduce:

import processing.video.*;

Capture video;

void setup() {
  size(640, 680, P3D); // without the renderer argument, works fine.
  video = new Capture(this, 640, 480, 30);
  video.start(); // this function never returns
  println("Capture#start() returned.");
}

void draw() {
  background(33);
  if (video.available()) video.read();
  image(video, 0, 0);
}

(copied from https://github.com/processing/processing/issues/2247)

codeanticode avatar Jul 22 '14 20:07 codeanticode