-
-
Notifications
You must be signed in to change notification settings - Fork 129
Open
Labels
Description
When using the function get() in a video capture, the returned PImage is all black when using the P2D/P3D/OPENGL renderer. However, if I switch the renderer to JAVA2D it works fine.
Code to reproduce:
import processing.video.*;
Capture cam;
PImage img;
void setup() {
size(640, 480, P2D); // Change to JAVA2D to work
String[] cameras = Capture.list();
cam = new Capture(this, cameras[1]);
cam.start();
}
void draw() {
if (cam.available() == true) {
cam.read();
img = cam.get();
}
image(img, 0, 0);
}
I am using the macOS Monterey but it also happens using a Windows 10.