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 & HelpOpenGL and 3D Libraries › OPENGL renderer and WebCam on Mac
Page Index Toggle Pages: 1
OPENGL renderer and WebCam on Mac? (Read 1296 times)
OPENGL renderer and WebCam on Mac?
Feb 6th, 2010, 5:15pm
 
Hi all,

I'm not sure if this is a known issue, I've searched around and didn't find something relevant. Is it possible to use a webcam with the OPENGL renderer? It doesn't seem to work on my machine. (mac os x 10.6.2, built-in iSight)

Any ideas?

Thanks...
Re: OPENGL renderer and WebCam on Mac?
Reply #1 - Feb 21st, 2010, 5:18pm
 
You must use this in setup() to use your webcam with OpenGL.

Code:
hint(ENABLE_OPENGL_4X_SMOOTH); 



Or if you don't want to use the anti-aliasing at all, add this in setup()

Code:
hint(DISABLE_OPENGL_2X_SMOOTH); 



The 2X AA is enabled by default in Processing and prevents the use of the video library with a webcam on Snow Leopard.
Page Index Toggle Pages: 1