Sign in to follow this  

Polygon smooth issue

This topic is 4693 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,

I'm sure I'm not the only one who has got problems antialialing triangles with GL_POLYGON_SMOOTH. I heard people saying it can be solved by correctly setting up the triangles' edge flags, but that doesn't affect anything for me. this is how it looks like ( POLYGON_SMOOTH_HINT is NICEST for both - edgeflags are correct ):

magnificated
larger scene

Anyone knows how i can fix this ( If I render things in far to near order is still see triangles that should be occluded )?

thanks in advance.
        Alonso

Share this post


Link to post
Share on other sites
How are you generating the triangles and their vertices? I've seen the same problem when I independantly generated the vertices for each vertex and saw similar results.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
AFAIK, you have to have a very specific blending mode turned on to use edge antialiasing (I can't remember which one). I think it ultimately ends up coming with too many restrictions to be usable, at least in games. I don't know of any games that use it.

Share this post


Link to post
Share on other sites
From the blue book :
Quote:
Polygon antialiasing is optimized using blend function (GL_SRC_ALPHA_SATURATE, GL_ONE) with polygons sorted from nearest to farthest.

Please note that you need an alpha buffer to make it working.

[Edited by - vincoof on February 10, 2005 5:31:31 PM]

Share this post


Link to post
Share on other sites

This topic is 4693 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this