PDA

View Full Version : Antialiasing



Mreal
09-30-2002, 09:59 AM
I have problems antialiasing polygon.I do glEnable(GL_POLYGON_SMOOTH)
and when i pass GL_SRC_ALPHA_SATURATE and GL_ONE to
glBlendFunc()
everything dissapears???
with other parameters passed to glBlendFun()
i see my objekt but it's not antialiased(most cases it's transparent)
So the question is WHY??
And i'll be thankfull to any body who tells me what exactly all theese params mean:
GL_ZERO
GL_ONE
GL_DST_COLOR
GL_SRC_COLOR
GL_ONE_MINUS_DST_COLOR
GL_ONE_MINUS_SRC_COLOR
GL_SRC_ALPHA
GL_ONE_MINUS_SRC_ALPHA
GL_DST_ALPHA
GL_ONE_MINUS_DST_ALPHA
GL_SRC_ALPHA_SATURATE

P.S. I've had no problems antialiasin line

dslater
10-01-2002, 06:31 AM
To do polygon antialiasing of polygons, you also have to sort your polygons and draw them from back to front.

Mreal
10-02-2002, 07:54 AM
What do you mean?
I've got only one object - auxSolidCube() or something like this.So i dontmanually set polygons, i only call this aux function.