Greetings all!
Trying to solve what i think is a relatively simple problem. I'm following the GLGraphics GSVideo Capture example and I'm getting stuck trying to access the pixels from the GLTexture once i've polled the camera. This is what i'm trying so far:
- //in setup()
- vStream = new GSCapture(this,width,height);
- frame = new GLTexture(this);
- vStream.setPixelDest(frame);
- vStream.start();
- //in draw()
- if(vStream.available())
- {
- vStream.read();
- frame.putPixelsIntoTexture();
- frame.loadPixels();
Looks pretty straightforward, but when I try to iterate through frame.pixels, the values are all 0. Am i missing something obvious? Any info is appreciated.
1