aa problem

BlitzMax Forums/BlitzMax Beginners Area/aa problem

ninjarat(Posted 2006) [#1]
having trouble doing antialiasing on polygons. Line smoothing works just fine but how do I do it with polygons?


ImaginaryHuman(Posted 2006) [#2]
you have to set the blend mode to alpha saturation and have a destination alpha channel, afaik


ninjarat(Posted 2006) [#3]
How do I do that?


ImaginaryHuman(Posted 2006) [#4]
Not sure if you need dest alpha but I think so. see the opengl docs about setting the blend mode. no idea about dx.


ImaginaryHuman(Posted 2006) [#5]
e.g

glEnable(GL_BLEND)
glBlend(GL_SRC_ALPHA_SATURATE,GL_ONE)

that may not be the right combo but its along those lines, and this is gl only.