News for hackers. Stuff that matters.
Re:Ask HN: How can I make beautiful, professional programmat... by joeld42 on Friday January 20, 2023 @01:33AM (#34449872)
As a graphics programmer, my suggestion would be encoding the font into an SDF (signed distance field) texture atlas (there are a lot of tools out there to do this for atlasing text, but it's useful for effects too), then draw both words as SDF and blend between them, and render the words from that. You can use different blend functions and SDFs give you a lot of control and possibilities, and you can do stuff like bias the SDF (add a small positive number) to give it a more blobbly, softer appearance.

here's an example of animating some SDF shapes (the white line is what you'd render as the glyph outline) https://www.shadertoy.com/view/WtVyRt

feel free to email me if you get stuck, i might be able to make a shadertoy example or something

Re:Ask HN: How can I make beautiful, professional programmat... by poeticsilence on Saturday January 21, 2023 @04:31AM (#34465152)
This is also really fantastic. Very different from the other 'morphing', but perfect for representing when one letter transforms into another.