How to get polygon antialiasing to work?

Matthew Mitchell picture Matthew Mitchell · Jan 8, 2010 · Viewed 8.8k times · Source

I'm using these function calls:

glEnable(GL_BLEND)
glEnable(GL_POLYGON_SMOOTH)
glBlendFunc(GL_SRC_ALPHA_SATURATE, GL_ONE) 

It doesn't work and won't render.

glEnable(GL_BLEND)
glEnable(GL_POLYGON_SMOOTH)
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)

It doesn't anti-alias.

Answer

tkerwin picture tkerwin · Jan 8, 2010

Try glHint(GL_POLYGON_SMOOTH_HINT, GL_NICEST)