Advertisement

Latest SDF Activity

Understanding the wavy-like shape in alpha-testing magnification for text rendering

AliAbdulKareem said:
What I don't get about it, is why does it only happen on diagonal edges or so it seems?

If the edge is aligned to the grid axis, either X or Y remain constant. So if we sample along the edge we stay always at the same ‘error’. We're still on a hyperbola as you've figured out, but…

11,262 views
Advertisement

jwdevel said:
I think I want to do distance-based effects though (eg: ‘glow’ surrounding an object, per-pixel AA, and similar)

hmmm… maybe then just draw one quad per primitive for now? Would be most flexible and no need to think about acceleration structure like the grid. If perf becomes an issue yo…

8,222 views
How do you implement MSDF text rendering on OpenGL ?

Scale factor shouldn't be needed, the proper solution is to ask letters from a bigger font. Fonts are designed for a particular size, scaling them makes then look less good.

7,083 views
Advertisement
Advertisement