Jump to content
  • Advertisement
Sign in to follow this  
Lilive

Antialiasing and Alpha blending

This topic is 4881 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

I want to draw a nice transluent Polygon or Ellipse in rotation. 1) If I use -- glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); -- glColor4f(0.0f,1.0f,1.0f,0.5f); the object's borders are very nice, but transluency is not excellent. 2) but if I use -- glBlendFunc(GL_SRC_ALPHA, GL_SRC_COLOR); -- glColor4f(0.0f,1.0f,1.0f,0.0f); transluency is prefect but borders are awfull... Is there a way to combine both functionalities ???

Share this post


Link to post
Share on other sites
Advertisement
Unfortunately I know no way to combine both. You could try the 'saturate' blending trick, but it requires an alpha buffer and I'm not sure it works with both antialiasing and traditional blending. Worth the try though.

If you want to anti-alias any generic scene, you might be interested in the multisampling feature. It requires a better hardware that polygon smoothing but also gives better results.

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!