Alternative AA methods and their comparison with traditional MSAA*

Discussion in 'Rendering Technology and APIs' started by mitran, Nov 15, 2009.

  1. Humus

    Humus Crazy coder
    Veteran

    Joined:
    Feb 6, 2002
    Messages:
    3,217
    Likes Received:
    77
    Location:
    Stockholm, Sweden
    It's optimized brute force. Give it sufficiently dense geometry and performance goes down to SSAA. For every bit of extra coverage precision you need you double the memory consumption. That's pretty darn brute force to me and hardly an elegant solution.
     
  2. CNCAddict

    Regular

    Joined:
    Aug 14, 2005
    Messages:
    290
    Likes Received:
    2
    FXAA demo looks good, but if you zoom way out so the fence is single pixel width....the AA disappears and you end up with crappy IQ. Are there any fast AA methods that will work with sub pixel features? It would be nice to prevent the awful shimmering moire patterns on things like fences/grates at a distance.
     
  3. MfA

    MfA
    Legend

    Joined:
    Feb 6, 2002
    Messages:
    7,610
    Likes Received:
    825
    Humus, you can merge MSAA fragments from the same surface.

    Given sufficiently high frequency scenery the assumption that neighbouring pixels are a good approximation of underlying surfaces goes down the shitter too.
     
  4. Laa-Yosh

    Laa-Yosh I can has custom title?
    Legend Subscriber

    Joined:
    Feb 12, 2002
    Messages:
    9,568
    Likes Received:
    1,455
    Location:
    Budapest, Hungary
    Post processes are no replacement for extra samples. As shader and geometry details keep increasing, everyone will see the difference. Post AA will make everything blurry eventually, and break down on a lot of things.
    MSAA isn't the final answer either, of course.
     
  5. CNCAddict

    Regular

    Joined:
    Aug 14, 2005
    Messages:
    290
    Likes Received:
    2
    Hmm, it would actually be much better if somehow the AA algorithm had knowledge of high frequency geometry..and would purposely blurr them out at a distance. Blurring is much preferable to that horrible shimmering on distant objects that would be too small to see detail on anyhow.
     
  6. jlippo

    Veteran

    Joined:
    Oct 7, 2004
    Messages:
    1,744
    Likes Received:
    1,090
    Location:
    Finland
    What you are asking is basically pre-filtered geometry. (think mipmapping.)

    One example of this can be seen in gigavoxel papers.
    http://artis.imag.fr/Publications/2009/CNLSE09/
     
  7. CNCAddict

    Regular

    Joined:
    Aug 14, 2005
    Messages:
    290
    Likes Received:
    2
    WOW, thanks Jippo. The GigaVoxel paper is really helpful!
     
  8. Simon F

    Simon F Tea maker
    Moderator Veteran

    Joined:
    Feb 8, 2002
    Messages:
    4,563
    Likes Received:
    171
    Location:
    In the Island of Sodor, where the steam trains lie
    You do have to be careful that you don't run into problems with different patterns per pixel for cases where the additional noise on the edge can actually make it look worse.
     
  9. Andrew Lauritzen

    Andrew Lauritzen Moderator
    Moderator Veteran

    Joined:
    May 21, 2004
    Messages:
    2,629
    Likes Received:
    1,227
    Location:
    British Columbia, Canada
    The issue is that you need a bunch of samples before that starts becoming true... like 16+ typically, and people are barely willing to spring for the cost of 4 these days let alone more.

    You definitely can vary the sample locations per pixel at little cost by as Simon notes unless you have some minimum number of samples you can easily do more harm than good.

    Given "sufficiently dense geometry" rasterization itself is inelegant and expensive. The point is you need non-grid sampling or you simply have to do way too much work to get a sufficiently antialiased result. Given a target quality, stochastic/jittered/irregular samples require less work, are "more efficient" and thus I would argue more elegant than uniform sampling.

    And yeah, tiny triangles are sucky. But they're sucky throughout the entire current rendering pipeline, not just AA. I'd argue it's still not totally clear that rasterizing tiny triangles are an efficient way to increase quality either. They certainly aren't on current GPUs.

    I'll further note that "deferred MSAA" does not suffer from having to shade at sample frequency at triangle edges. Indeed you use similar planarity tests (or whatever) to decide where you want to do the extra shading. But the latter point is key... you do have to adaptively do some extra shading or else your quality is just going to be poor. You just don't have to dumbly do it at every internal triangle edge.
     
    #829 Andrew Lauritzen, Apr 8, 2011
    Last edited by a moderator: Apr 8, 2011
  10. 3dcgi

    Veteran Subscriber

    Joined:
    Feb 7, 2002
    Messages:
    2,493
    Likes Received:
    474
    Agreed. I don't remember the exact experiment, but years ago I varied samples per pixel in a c model and ran some game scenes and the noise seems worse than normal aliasing to me. I only looked at single frames though so maybe motion would have changed my opinion. I didn't test higher than 16x AA.
     
  11. MfA

    MfA
    Legend

    Joined:
    Feb 6, 2002
    Messages:
    7,610
    Likes Received:
    825
    What was the name of that method which stored 3 samples + coverage masks per pixel again? Maybe with DX10.1 and DX11 hardware it's time to dust that shit off again and take a new look.
     
  12. 3dcgi

    Veteran Subscriber

    Joined:
    Feb 7, 2002
    Messages:
    2,493
    Likes Received:
    474
  13. MfA

    MfA
    Legend

    Joined:
    Feb 6, 2002
    Messages:
    7,610
    Likes Received:
    825
    Ah yes, that's the one ... from the good old days.
     
  14. MJP

    MJP
    Regular

    Joined:
    Feb 21, 2007
    Messages:
    566
    Likes Received:
    187
    Location:
    Irvine, CA
    This morning at work I took a look at the FXAA shader, and spent an hour or two cleaning it up and and integrating it into our engine. It has most of your normal post-AA issues (edges still crawl, and since it's based on luminosity it just totally misses edges that don't have a strong gradient in the green channel), but I'd say it compares favorably to MLAA or DLAA. Definitely not bad for a drop-in solution!
     
  15. Ruskie

    Veteran

    Joined:
    Mar 7, 2010
    Messages:
    1,291
    Likes Received:
    1
    You tried it on consoles or?If yes,than is the cost always fixed ~1.3ms?
     
  16. assen

    Veteran

    Joined:
    May 21, 2003
    Messages:
    1,377
    Likes Received:
    19
    Location:
    Skirts of Vitosha
    An hour or two? You must have done something interesting to it, care to share?
     
  17. MJP

    MJP
    Regular

    Joined:
    Feb 21, 2007
    Messages:
    566
    Likes Received:
    187
    Location:
    Irvine, CA
    Oh nothing interesting...mostly just fitting it into our shader permutation system and changing the way it handles gamma correction. :razz:
     
  18. nAo

    nAo Nutella Nutellae
    Veteran

    Joined:
    Feb 6, 2002
    Messages:
    4,400
    Likes Received:
    440
    Location:
    San Francisco
    While storage grows linearly with the number of visibility samples memory BW doesn't thanks to caching and compression. MSAA is also a robust/predictable algorithm, with well understood failure modes. Other algorithms..not so much :)

    No doubt it's possible to do better, but I wouldn't characterize MSAA in such negative terms. First HW implementations were definitely using brute force, current implementations are way smarter. Moreover one can do clever things on top of MSAA, see Andrew's work with deferred shading, IIRC also adopted by DICE for BF3.

    Said that I am also looking with interest at what this new wave of alternative AA methods will bring to the table.
     
    #838 nAo, Apr 10, 2011
    Last edited: Apr 11, 2011
  19. Ruskie

    Veteran

    Joined:
    Mar 7, 2010
    Messages:
    1,291
    Likes Received:
    1
    http://www.iryoku.com/aacourse/#top

    Seems like there will be alot of new AA solutions @siggraph
     
  20. Laa-Yosh

    Laa-Yosh I can has custom title?
    Legend Subscriber

    Joined:
    Feb 12, 2002
    Messages:
    9,568
    Likes Received:
    1,455
    Location:
    Budapest, Hungary
    Wow, that's a lot of different methods, it'll be interesting to see if we can find a clear winner.
     
Loading...

Share This Page

  • About Us

    Beyond3D has been around for over a decade and prides itself on being the best place on the web for in-depth, technically-driven discussion and analysis of 3D graphics hardware. If you love pixels and transistors, you've come to the right place!

    Beyond3D is proudly published by GPU Tools Ltd.
Loading...