PDA

View Full Version : need help in stopping the flickering in animation



nene
09-15-2003, 11:32 PM
Hi all,
I have an rathe huge object in the negative z axis and i wanted to animate it by rotating it in the x and y axis.

I have translate it to the point of origin(0,0) and rotate it and translate it back to the original position again.

problem is that i have flicker when i do this.

I have tried using a smaller object(eg. a cube) and the flicker dont appear.

can anyone advise me on this?

mikael_aronsson
09-16-2003, 01:29 AM
Doublebuffering enabled ?

Jan
09-16-2003, 03:15 AM
vsync disabled? If so, enable it, could be your problem.

nene
09-16-2003, 04:31 AM
yah i have enabled the double buffer. vsyn? what is that? how do i set it?

Description:
The object is constructed using glVertex. Another object that uses the same coordinates is drew next to and behind it. I just translate the latter object to the position next to and behind it.

when i tried to animate this object, it started to flicker ... i have tried to draw 2 simple cubes next to each other and thet did not flicker.

please help...

roffe
09-16-2003, 11:08 PM
Originally posted by nene:
when i tried to animate this object, it started to flicker ... i have tried to draw 2 simple cubes next to each other and thet did not flicker.

Flickering as seen when experiencing z-fighting? Does it flicker when just drawing a single object? Example image (http://www.sgi.com/software/opengl/advanced98/notes/node243.html) . If not, make sure you don't draw objects too close in depth. Don't abuse your zbuffer, push the near plane forward. If that doesn't work try glPolygonOffset (http://www.3dlabs.com/support/developer/GLmanpages/glpolygonoffset.htm) .


[This message has been edited by roffe (edited 09-17-2003).]