Anti-Aliasing Analysis, Part 1: Settings And Surprises

Texture Transparency: Nvidia’s TAAA And AMD’s Adaptive Anti-Aliasing

You might think that MSAA sounds like an ideal balance between performance and image quality. And, for the most part, it does an excellent job. However, there is an aliasing problem the method does not address: texture transparencies.

When it comes to PC games, most of the objects you see and interact with are made of three-dimensional meshes. These meshes are composed of the three-sided polygons we call triangles. The more curved and detailed an object is, the more of those polygons you need in order for it to appear smooth and realistic. Unfortunately, when the game is rendered, every triangle in the scene adds to the workload—each one needs to be processed in order to demonstrate how it is textured, how light reflects off of it, and even how it casts a shadow. In order to keep frame rates high, game developers try to keep the number of polygons per frame within a certain budget. The idea is to stay under a ceiling, providing good-enough visuals, while delivering smooth performance. AMD and Nvidia are trying to help developers raise that bar using tessellation, but that's a conversation for another day.

Problems arise in a scene where there are a large number of small, detailed objects that would require incredibly complex meshes. Imagine the number of polygons required to represent the countless leaves in a forest. How about the detailed wires in a chain-link fence or the blades of grass in an open field? Even with today’s graphics power, these tasks could cripple a PC. The solution is to use texture transparencies.

A transparent texture simulates finely detailed, three-dimensional objects with a two-dimensional picture accompanied by a transparent alpha mask. Let’s use the chain-link fence as an example, an object that many first person-shooters have. Here’s an image that shows the fence texture (transparent areas appearing as a checkerboard), how the scene geometry appears, and how the scene looks in the game:

As you can see, transparent textures do a great job of adding detail to the scene without a lot of added geometry. The problem is that MSAA has no effect on an aliasing problem unless it’s on the edge of a polygon, and a transparent texture has no polygon edges inside of it:

Supersampling will anti-alias transparent textures, but not without the big performance penalty mentioned previously. What we need is a high-performance method to anti-alias these textures.

With the GeForce 7-series cards, Nvidia introduced a feature it called transparency adaptive anti-aliasing, abbreviated as TAAA. Nvidia has two implementations of TAAA, one using a multisampling method (TrMSAA) and one using a supersampling method (TrSSAA).

Recall that MSAA is only performed on pixels that contain the edge of a polygon. With TAAA enabled, pixels that contain an object with a transparent texture are also flagged. Nvidia’s driver settings allow you to choose between anti-aliasing the transparent texture at the same level that MSAA is applied to the rest of the scene, or to supersample the transparent texture with two, four, or eight samples.

We should also mention the limitations of Nvidia’s TAAA. In theory, TrSSAA should work in almost every situation. But our test results show it most often works in DirectX 10 and 11 game engines. TrMSAA, on the other hand, is limited to DirectX 9, and we’ve found that, in practice, it rarely works.

The Radeon counterpart to TAAA is called adaptive anti-aliasing, released shortly after the GeForce 7 with AMD's Radeon X1000-series cards. It works similarly, except that AMD’s implementation is limited to supersampling, with the number of samples tied to the anti-aliasing level of the scene. Like Nvidia’s TrMSAA, AMD’s adaptive anti-aliasing only works with DirectX 9 game engines, and does not often work in practice. AMD let us know that the feature can be used in DirectX 10 and 11 applications if the developer specifically supports it. It lists S.T.A.L.K.E.R.: Clear Sky, S.T.A.L.K.E.R.: Call of Pripyat, and Metro 2033 as games that take advantage of the feature. However, when we tried it in our tests, it didn’t appear to work in Metro 2033.

Transparency Anti-aliasing Image Comparisons

As you can see, transparency anti-aliasing can make a big difference in image quality. Both Nvidia's and AMD’s transparent anti-aliasing techniques do a great job here, although the thickness of the fence does vary between the options.

On a final note, a DirectX 10/11 technique called alpha-to-coverage can apply hardware anti-aliasing to a transparent texture. The screenshots above feature an older game engine to demonstrate transparent textures that show a lot of improvement with TAAA and adaptive anti-aliasing, but a lot of new game titles do a much better job of rendering fences and foliage with fewer aliasing artifacts. Having said that, we find there are usually some instances of aliased textures in even the newest game titles, so transparency anti-aliasing remains a useful and important tool.

  • atikkur
    PERTAMAX gan. .
  • burnley14
    Awesome article. I am unfortunately not one of the elite few who know all the ins and outs of graphics performance, so this was very enlightening for me.
  • dragonsqrrl
    Great article, very informative. I've never really used forced anti-aliasing through the driver, and from what I've read it doesn't really sound like a good idea anyway, given the fact that most modern games provide adequate AA levels through in-game settings (these are usually better optimized as well). Seems like forced driver level AA is pretty hit-or-miss. With a few rare exceptions it just doesn't seem like it's worth the effort.

    ...went to the link for Tom's Geforce3 article. The good old Geforce3, now that takes me back.
  • tallguy1618
    This is definitely one of the better articles I've read
  • what are you talking about?
    we can still force Supersampling
    as of 266.58 on Nvidia cards
  • army_ant7
    Why does it say here, (go to the next page of this article), that it internally renders the frame at a resolution 4 times greater? But according to the 2nd page of this article, it says that at x4 AA it only internally renders a frame at a resolution 2 times greater.
  • JimmiG
    Great article, but this is really something Nvidia and AMD will have to fix together with game developers...

    The settings I select in the driver control panel should apply without me having to worry about coverage samples, multi samples, DirectX versions or the alignment of the planets. It should just work.

    Similarly, any self-respecting game made in the last 6-8 years should have proper anti-aliasing options in its in-game menu. Not just an On/Off switch, but the full range of AA settings available with the video card being used.
  • BulkZerker
    MrBonkBonkwhat are you talking about?we can still force Supersampling as of 266.58 on Nvidia cards

    IF the game lets it! Drivers trying to force AA doens't mean the game will allow it. If the game doesnt' support it your not goting to get tehy type of AA.

    Either way this AA fragmentation is almost as bad as all these custom versions of Driod.
  • Assmar
    Maybe I'm wrong, but no Batman or Mass Effect 2 forced AA settings?
  • heycarnut

    Nvidia article is wrong, or at the very least semantically sloppy.

    4X samples generally means doubling of resolution for both axes. 4*(x*y)==(2*x)*(2*y).