Anyway I don’t mean to bash your work; it’s *great* to finally see an analytic SDF rasterizer. There are just lots of tradeoffs here…
-
-
Replying to @pcwalton @iainmerrick
I not only never said it was good for everything, I never said it was good for anything!
2 replies 0 retweets 0 likes -
Iain in particular works on text-heavy mobile games, though, so his comment that you replied to had that context.
1 reply 0 retweets 0 likes -
It’s funny to say things like “almost perfect for all applications” and then to be reminded that some people don’t even work on games :)
1 reply 0 retweets 3 likes -
Replying to @iainmerrick @nothings
Web browsers have grown to encompass pretty much every field of software development. It’s the best and worst thing about working on them :)
2 replies 0 retweets 1 like -
I was skeptical about MSDF, seemed like it needs big textures, only makes a difference at huge font sizes and probably worse at small sizes…
1 reply 0 retweets 0 likes -
…but when I tried it, small text looks OK! And 64x64 glyphs seem OK for Latin fonts so I could maybe fit all my fonts in one 2K texture. Huh
1 reply 0 retweets 0 likes -
Replying to @iainmerrick @nothings
BTW, I’d like to see someone work out how to do exact area coverage based antialiasing for SDFs. Distance is only a coarse approximation.
1 reply 0 retweets 0 likes -
(Maybe two SDFs, one for X distance and Y distance, multiplied together somehow, would work? Handwaving here…)
1 reply 0 retweets 0 likes -
I like
@nothings' oversampled text: https://github.com/nothings/stb/tree/master/tests/oversample … I believe it works with mipmaps (with LOD bias) so it scales well too.2 replies 0 retweets 0 likes
I don’t think that’s the same thing. That’s subpixel positioning, not AA.
-
-
It's not an SDF, but it's a way to use subpixel scaling and positioning with a normal bitmap without adding bilinear filtering blurriness
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.