Jump to content
  • Advertisement
Sign in to follow this  
666_1337

Polygon smooth issue

This topic is 4995 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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!