GL_SMOOTH_POLYGON not working
BlitzMax Forums/OpenGL Module/GL_SMOOTH_POLYGON not working
| ||
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. |
| ||
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 2011 |
| ||
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. :/ |