Home
Products
Community
Manuals
Contact
Login or Signup

GL_SMOOTH_POLYGON not working

BlitzMax Forums/BlitzMax OpenGL Programming/GL_SMOOTH_POLYGON not working

Hezkore(Posted 1+ years ago) #1
Can anyone tell me why glEnable(GL_POLYGON_SMOOTH) refuses to work?
I'm using the standard GLMax2D module and glEnable(GL_LINE_SMOOTH) works just fine!
But not glEnable(GL_POLYGON_SMOOTH) when using the DrawPoly function.


Noobody(Posted 1+ years ago) #2
Smoothing only works with GL_BLEND enabled, so that's the first thing to check (SetBlend(ALPHABLEND) maybe?).

Also, from what I recall, GL_POLYGON_SMOOTH is something you shouldn't really use - some graphics cards don't support it at all, and even if it works, you'll have to deal with artifacts such as visible 'cracks' between triangles.

Last edited 1+ years ago


Hezkore(Posted 1+ years ago) #3
SetBlend(ALPHABLEND) is enabled, and as I said, glEnable(GL_LINE_SMOOTH) works, shouldn't glEnable(GL_POLYGON_SMOOTH) work then?
Something's fishy around here...

And yeah, it may not be supported by every card, but that's why PC games have Options. :)
And I could fix the artifacts later on.

Either way, I find it really strange that it refuses to work. :/