frankie
frankie

Reputation: 728

Artifacts while drawing quads

I am currently drawing some geometry with "modern OpenGL" using QUAD and QUADSTRIP primitives.

I have faced with strange artifacts. My quads actually tessellates with visible triangles. Hope you'll see while lines across quads.

enter image description here

Any ideas?

Upvotes: 0

Views: 413

Answers (2)

datenwolf
datenwolf

Reputation: 162164

The culprit most likely is that you enabled polygon smooth antialiasing (still supported in compatibility profile), i.e. did glEnable(GL_POLYGON_SMOOTH) + some blending function. Artifacts like the one you observe are the reason, nobody really bothered to use that method of antialiasing.

However, it may very well be, that you did enable antialiasing in your graphics driver settings and the AA method used doesn't play along nicely with your program.

Upvotes: 3

BDL
BDL

Reputation: 22162

Modern OpenGL (3.1+ Core Profile) does not support QUADS or QUADSTRIPS. Check for example here for allowed primitive types.

Upvotes: 4

Related Questions