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.
Page Index Toggle Pages: 1
OpenGl + layers (Read 1740 times)
OpenGl + layers
Jun 12th, 2009, 9:54am
 
Hi All,
I’m trying to control a slider in a openGl sketh, but when i zoom the draws it goes over the slider. How can I control the layers with the aim to have always the sliders in front?
Thanks a lot for the help
David
Re: OpenGl + layers
Reply #1 - Jun 12th, 2009, 10:28am
 
hint(DISABLE_DEPTH_TEST);
http://processing.org/reference/hint_.html

Basically, if you disable the z-order test, the last thing drawn on screen will be visible.

To re-enable z-order (for 3d stuff), use hint(ENABLE_DEPTH_SORT).
Re: OpenGl + layers
Reply #2 - Jun 12th, 2009, 11:10am
 
Thanks a lot!
Re: OpenGl + layers
Reply #3 - Jun 27th, 2009, 7:14pm
 
Thank you, very efficient...!
Page Index Toggle Pages: 1