News for hackers. Stuff that matters.
Re:It’s 2015 and drawing text is still hard by hyperion2010 on Tuesday August 04, 2015 @01:35PM (#10004880)
I have been building a tool for interactive data visualization using panda3d. Running absurd amounts hideously complex static geometry? No problem. Want to render short labels on a couple thousand objects? Draw calls aside, renderer slows to a crawl because it also uses the text geometry approach. Does anyone know if there are other approaches that work aside from the the SDF described in the article?
Re:It’s 2015 and drawing text is still hard by mattdesl on Tuesday August 04, 2015 @02:12PM (#10005158)
If you are OK with (a) processing font atlases offline and (b) simple languages (no complex text layout) then SDF fonts is a really great solution. It's fast, memory efficient, easy to anti-alias, and real-time effects (shadows, edge fuzz, etc) are easy to add.
Re:It’s 2015 and drawing text is still hard by mrec on Tuesday August 04, 2015 @01:39PM (#10004914)
If you don't need to scale/rotate your labels, SDF is massive overkill; a simple texture font (generating one quad per glyph) is fine.