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 › video buffer not clearing
Page Index Toggle Pages: 1
video buffer not clearing? (Read 1217 times)
video buffer not clearing?
Jun 14th, 2005, 11:25pm
 
every once in a while, it seems that the openGL video buffer (on the video card, prolly?) is not cleared properly (even after closing processing).  i get areas of black that, as far as i can tell, are just not being updated at all.  these areas are often in the shape of pixels from a different sketch that was just open.

not sure what's causing it, it seems to be related to certain sketches but i'm still trying to figure this out.  the only way i've found so far to remedy it is to reboot...is there a way to perhaps clear the video card's buffer with code?

i'm on an XP box with an NVIDIA Quadro FX 3000....
-d

edit:  seems that this happens to GL sketches with no background() call.  putting background() in, running, closing, and removing the background() call seems to clear the buffer.
Re: video buffer not clearing?
Reply #1 - Jun 15th, 2005, 3:57pm
 
right, gl's buffer by default contains garbage (just an opengl thing), so you'll prolly just need to call background() when using gl. although there should be a default gray background, so i'll take a peek and see why that's not happening.
Re: video buffer not clearing?
Reply #2 - Jun 20th, 2005, 6:39pm
 
yep, just calling background() once on the first frame consistently takes care of it, so not a big issue.
Page Index Toggle Pages: 1