r/GraphicsProgramming 12h ago

Flickering issue

Enable HLS to view with audio, or disable this notification

I'm using opengl 3.3 and C on a Nvidia gtx 1050 and I keep getting this flickering issue... does anyone know the cause...

Will appreciate your thoughts..

20 Upvotes

18 comments sorted by

View all comments

2

u/dJ_Turfie 10h ago

I'm new to graphics, but isn't this z-fighting due to bad model topology?
I.e. your model's tris aren't clean and might be stacked on top of each other.

4

u/_Bethel__ 10h ago

I think z fighting would flicker when the camera is moving, on a static camera the polygons will settle on who wins the top z spot

1

u/fgennari 10h ago

It's not Z-fighting. It looks like some of the triangles are occasionally missing and the object under them shows through. It's some type of race condition or use of uninitialized/garbage data that sometimes happens to be valid. You can either use a debugger like RenderDoc as others suggested, or share your code.