Jump to content
  • Advertisement
Sign in to follow this  
thorpe

Best way to implement antialiasing

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

Here is my situation: I am using Radeon 9800 Pro cards under linux. - I have a scene where I have some lines and flat texture polygons of various shapes. - Some textures are partly 100% transparent (loaded as from .png) and I want the edges of these antialiased. They are painted onto rectangular squares so the polygon edges doesn't resemble the edges I want antialiased. - Pretty much nothing is moving. Which is the best way for me to implement AA?

Share this post


Link to post
Share on other sites
Advertisement
Unfortunately, Radeon cards don't support supersample antialiasing. Instead they use multisampling, which, while it is accessible through OpenGL, only antialiases the edges of polygons.

Your best bet is to use blending and trilinear filtering to render the transparent polygons. Remember to sort them by depth (possibly with a radix sort) and render them after everything else.

Quote:
Or you could anti-alias the texture itself using 33% and 67% transparancy.

I'm not sure how that achieves antialiasing. That's just changing the opacity of the texture.

Share this post


Link to post
Share on other sites
Ok, I guess I'll make the textures opaque then and code the polygons into my program. Seems like less trouble, or what do you think?

Which extension am I suppossed to use to and where can I download it? (Radeon9800Pro under linux)


Best Regards, Johan Torp

Share this post


Link to post
Share on other sites
Quote:
Original post by benjamin bunny
Quote:
Or you could anti-alias the texture itself using 33% and 67% transparancy.

I'm not sure how that achieves antialiasing. That's just changing the opacity of the texture.

I suppose he means doing it around the edges. I.e. instead of just having 0% and 100% transparency, you could also have other transparencies at edges.

So if you have the following (1 being opaque and 0 being transparent.)
0000001111
1111110000

You could do like this instead (x being, say, 60% transparent):
00000x1111
111111x000


This will of course only work if you use blending instead of alpha testing.

Share this post


Link to post
Share on other sites
Has nobody done multisampling in linux? I'm having real trouble finding good examples or documentation =(

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!