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 flicker problem
Page Index Toggle Pages: 1
OpenGL flicker problem (Read 1003 times)
OpenGL flicker problem
Aug 29th, 2007, 2:07pm
 
Hey,

I am trying to create a generative program something like tendrils and i want to use the OpenGL library but i've got a weak graphics card and when i put the background call in the setup function i get a flicker effect and when i put it in the draw function it overwrites the past segments(lose, lose). Is there a work around?

Thanks,
Tarig
Re: OpenGL flicker problem
Reply #1 - Aug 29th, 2007, 5:27pm
 
use arrays or the ArrayList or Vector class to keep track of the current objects that are alive.

then run background and the code for drawing all objects in the draw() function..

each object should be a class, with variables for positioning, moving, size, or whatever you need.. you'll also need a drawing function, and some code to make it move around

good luck

seltar
Page Index Toggle Pages: 1