fullScreen(P2D); not working with GLCapture,

edited August 2017 in Raspberry PI

longtime forum reader first time poster. Hopefully I am doing this correctly, thanks for your patience. my program runs fine with display width at 1080, tested on bigger display and does not work.

I am using: Raspberry Pi 3b. logitech webcam.

1st problem: GL Video examples work using fullScreen(P2D). The image examples using (P3D) can go full screen; but I can not get the capture example to work in fullscreen even if I am not loading the camera to the canvas. The largest I can get it to display is 1280 width which is the highest my camera will capture. is this related? is there a work around. size(displayWidth, displayHeight, P2D) works best but there are some weird behaviors on the tv but works great on my mac-book-pro.

2nd problem: when I run a sketch the camera works the first time, then I close the sketch. When I open it and I get a error ArrayIndexOutOfBoundsException:0 but I only have one camera so its [0]. OR I get no capture devices found. when I hit play again it works just fine.
it finds the devices every other time with out error, Dependably 50% of the time. I tried adding an exit() to see if I needed to turn off the cameras and that does not help, any other suggestions?

I have combed the forums here is a related threads to P2D and fullscreen issues. - https://github.com/processing/processing/issues/5046 - https://github.com/processing/processing/issues/4561

again they work for everything but the capture event.

thanks for any advice.

-t

Answers

Sign In or Register to comment.