The Future of Anti Aliasing? Will the Quincunx-Like Blur Technologies Return?

Discussion in 'Architecture and Products' started by Farid, Apr 10, 2006.

  1. KimB

    Legend

    Joined:
    May 28, 2002
    Messages:
    12,928
    Likes Received:
    230
    Location:
    Seattle, WA
    Well, you don't want to draw lines in professional applications that are thinner than pixels. So your first step would be to have the hardware draw the lines so that they are on the order of one pixel in width. That will help significantly, with just standard multisampling.

    But even better is the fact that it is relatively easy to do the antialiasing for lines analytically, with a much more robust filter pattern. From what I understand, this is what professional cards actually do.
     
  2. LeGreg

    Newcomer

    Joined:
    Nov 1, 2003
    Messages:
    239
    Likes Received:
    3
    [​IMG]

    The figure on the left is a triangle drawn on a grid of perfectly non overlapping square pixels and a "perfect filter" with infinite number of samples and gamma correction. Beyond a certain point all this computation power is wasted and the result doesn't come out as better than that.
     
  3. 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
    However, IIRC Nyquist's theory says the reconstruction needs to use sinc functions in order to achieve that. If you have something else, you have to have an even higher sampling rate => a wavelength > 2 pixels wide :-(
     
  4. 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
    No, you are not being dense. The whole point of the example was to show that a box filter is far from ideal!
     
  5. aths

    Newcomer

    Joined:
    Feb 8, 2002
    Messages:
    128
    Likes Received:
    3
    Location:
    Germany (at the Baltic Sea)
    With blurring, we will not have the nice and clear output as you show in the left figure. If I understand the fans of blurring right, the left figure is not the optimal result.


    With a digital output, I don't see the point to reconstruct the signal like an audio signal. The reconstruction filter gets us many additional results in-between to deliver an analogue signal. Lets say we have a digital photograph from a full-resolution rgb ccd chip. I see nothing to reconstruct, the photograph can just be displayed 1:1. High AA levels attempt to simulate more than one photon (light color) per pixel, to better reflect that the actual displayed is a little square. Correct me, if I am wrong, though.
     
    #85 aths, May 19, 2006
    Last edited by a moderator: May 19, 2006
  6. Xmas

    Xmas Porous
    Veteran Subscriber

    Joined:
    Feb 6, 2002
    Messages:
    3,344
    Likes Received:
    176
    Location:
    On the path to wisdom
    For that particular case more than 2 samples are unnecessary for a pixel-sized box filter. If the triangle is moving, however, more samples mean a more accurate representation. You forgot the explanation why the blurred edge in the right image should generally be considered better.

    Yes, if you have a very thin line and lots of samples, and that line goes through the pixel corners every Nth pixel, the line will have jaggies. Since the line is thin, it will only have a small influence on the final pixel color and therefore not be very visible – unless we do HDR rendering, where the contribution to the final pixel color could be huge.

    In the case of a line, one possible way to alleviate this is to widen the line to one pixel and use the original width as alpha value. But that comes with all the typical alpha blend drawbacks. Way more difficult for "real" polygons.
    For a general solution, you truly need a filter kernel that is larger than a pixel.


    Sampling theory says that if we have a band-limited signal and sample it at >2x the cutoff frequency, we can reconstruct the signal from the samples.
    But geometry is not band-limited, while we have a limited target resolution. So the best we can do is take as many samples as possible (and there will still be some aliasing), then low-pass and resample the sampled signal to the target resolution. Reconstruction happens on the screen surface and in our eyes and brain, though not with a sinc.

    So the goal is to find a resampling filter that is a reasonable low-pass filter, cheap to perform, and ultimately looks good.
     
  7. ERK

    ERK
    Regular

    Joined:
    Mar 31, 2004
    Messages:
    287
    Likes Received:
    10
    Location:
    SoCal
    Thanks, that was very clear.
     
  8. GuB

    GuB
    Newcomer

    Joined:
    May 15, 2014
    Messages:
    1
    Likes Received:
    0
    We are now in 2014 and "blur filter AA" are back. FXAA MLAA SMAA, etc... are all much smarter than Quincunx but the idea is similar : do not render more samples but use clever techniques to smooth out jaggies.
     
  9. Grall

    Grall Invisible Member
    Legend

    Joined:
    Apr 14, 2002
    Messages:
    10,801
    Likes Received:
    2,176
    Location:
    La-la land
    Pro tip: don't necro ancient threads to add nothing but useless fluff (FXAA etc are nothing new at this stage), unless you want to advertise yourself as a probable spammer account... :)
     
  10. tritosine5G

    Newcomer

    Joined:
    Aug 29, 2010
    Messages:
    143
    Likes Received:
    1
    ...hopefully not for long:lol:
     
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...