5 ms·
Any tips for rendering text? I'm doing a similar project for Quake 2 with Julia[1]. I haven't tackled text yet, but I probably will need to soon. [1]: https://
by Jayschwa 14y ago
Any tips for rendering text? I'm doing a similar project for Quake 2 with Julia[1]. I haven't tackled text yet, but I probably will need to soon.
[1]: https://github.com/jayschwa/Quake2.jl https://github.com/jayschwa/Quake2.jl
- Jeaye 14y agoMy TTF rendering code is based off the examples provided here: http://en.wikibooks.org/wiki/OpenGL_Programming http://en.wikibooks.org/wiki/OpenGL_Programming
- georgemcbay 14y agoI highly recommend looking at signed distance maps for text rendering. Relatively easy to implement and gives very good results even when drastically scaling the text to different sizes. Potentially useful links: http://www.valvesoftware.com/publications/2007/SIGGRAPH2007_AlphaTestedMagnification.pdf http://www.valvesoftware.com/publications/2007/SIGGRAPH2007_... http://www.gamedev.net/topic/491938-signed-distance-bitmap-font-tool/ http://www.gamedev.net/topic/491938-signed-distance-bitmap-f... https://github.com/OpenGLInsights/OpenGLInsightsCode/tree/master/Chapter%2012%202D%20Shape%20Rendering%20by%20Distance%20Fields/demo https://github.com/OpenGLInsights/OpenGLInsightsCode/tree/ma...