logoalt Hacker News

Areliuslast Thursday at 1:46 AM1 replyview on HN

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.


Replies

woctordholast Thursday at 10:33 AM

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

show 1 reply