← Back to context

Comment by Arelius

14 days ago

Basically no... Analytic AA is a really hard problem for video games, and I know of no general purpose solutions.

For font and 2D vector rendering it's likely, in fact afaik, some solutions, such as Slug already do.

But for 3d rendering I don't know of any solutions.

For an intuition, consider two triangles that intersect the same pixel.

Consider if say one has 20% coverage and the other 30%, does that pixel have 50% coverage, 30% by one, 20% by one and 10% by another, or any other conceivable mix? It's very difficult to say without selecting specific points and sampling directly.

There're already games fully using SDF rendering, such as Dreams [0]. It even made a SIGGRAPH talk [1].

[0] https://en.wikipedia.org/wiki/Dreams_(video_game)

[1] https://www.youtube.com/watch?v=u9KNtnCZDMI

  • Whe SDFs are being used in games, SDFs don't really change the Analytical AA story much. SDFs are generally evaluated with ray marching, which is a form of discret sampling that has the same issue regarding coverage.

    I think dreams might be using splats? It's possible that something like splats combined with a form of OIT along with an art style that is tolerant to certain types of artifacts could use Analytical AA. I don't know the specifics on Dreams, but i'd be surprised if even they would be using AAA.