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 overlay interfering with lighting
Page Index Toggle Pages: 1
OpenGL overlay interfering with lighting (Read 786 times)
OpenGL overlay interfering with lighting
May 19th, 2009, 3:07pm
 
I'm trying to do an overlay over OpenGL and when I use the following code the lighting changes. I'm using the default lights(). Any ideas?

Code:
camera();
hint(DISABLE_DEPTH_TEST);

strokeWeight(5);
stroke( 0, 30, 100);
fill( 230, 230, 255 );
ellipse( 100, p.height-300, p.width - 200, 250);
fill( 0 );
textFont(nameFont);
text(current.name, 240, p.height - 230);
textFont(textFont);
text(current.text, 200, p.height - 200);
fill(255);
noStroke();
hint(ENABLE_DEPTH_TEST);
Re: OpenGL overlay interfering with lighting
Reply #1 - May 19th, 2009, 3:44pm
 
Try this...
Code:

ambientLight(255, 255, 255, 0,0,0);
Page Index Toggle Pages: 1