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 › How to disable automatic opengl calls in Draw()
Page Index Toggle Pages: 1
How to disable automatic opengl calls in Draw() (Read 412 times)
How to disable automatic opengl calls in Draw()
Jul 25th, 2008, 5:13am
 
I figured out what my issue was in one of my other posts:

http://processing.org/discourse/yabb_beta/YaBB.cgi?board=OpenGL;action=display;num=1215821577

Basically Processing was making calls to:
gl.glEnable(GL.GL_COLOR_MATERIAL);
gl.glColorMaterial(GL.GL_FRONT_AND_BACK, GL.GL_AMBIENT_AND_DIFFUSE);
gl.glColorMaterial(GL.GL_FRONT_AND_BACK, GL.GL_SPECULAR);

at the beginning of every draw loop, and it was screwing with my sketch is there any way to disable this?
Re: How to disable automatic opengl calls in Draw(
Reply #1 - Jul 25th, 2008, 8:51am
 
I don't think it's possible, no.

Processing needs to do those to make OpenGL mode give the same results as P3D mode with the normal built in processing commands.
Re: How to disable automatic opengl calls in Draw(
Reply #2 - Jul 25th, 2008, 9:42pm
 
Hm... maybe

gl.glDisable(GL.GL_COLOR_MATERIAL);

or ->http://processing.org/discourse/yabb_beta/YaBB.cgi?board=OpenGL;action=display;num=1209764312
Page Index Toggle Pages: 1