How does Font Rendering Work? | Game Engine Concepts #1

Опубликовано: 26 Август 2020
на канале: GamesWithGabe
23,212
518

Join the Discord:   / discord  

How does font rendering work in OpenGL (or DirectX, or Vulkan, etc)? What are the best techniques? Should you go with signed distance field rendering, font bitmap generation, or use the .ttf mathematical notation in the GPU? I attempt to answer these questions in this tutorial, giving a high-level overview of the simplest way to achieve font rendering (and efficient). I also touch on how to achieve more complex techniques to render fonts with greater fidelity, and have some articles and papers linked below to help aid you in that regard.

Links to My Java Implementation
FontTexture: https://github.com/ambrosiogabe/Untit...
CharInfo: https://github.com/ambrosiogabe/Untit...
FontRenderer: https://github.com/ambrosiogabe/Untit... (This is only here for reference I really don't like the way this class is coded, however I will udpate it with a better implementation once I get around to it :) ).

Articles & Papers
Generating Fonts in Java: https://lwjglgamedev.gitbooks.io/3d-g...
STB_Truetype: https://github.com/nothings/stb/blob/...
Stack Overflow: https://stackoverflow.com/questions/5...
Valve's Paper on SDF: https://steamcdn-a.akamaihd.net/apps/...
Will Dobbie on Vector Textures: http://wdobbie.com/post/gpu-text-rend...
Rendering of General Vector Graphics: http://hhoppe.com/ravg.pdf

---------------------------------------------------------------------
Website: https://ambrosiogabe.github.io/
Github: https://github.com/ambrosiogabe

Here are some books I recommend if you want to learn about game engine development more thoroughly. I do not profit off any of these sales, these are just some books that have helped me out :)

My Recommended Game Engine Books:
Game Engine Architecture: https://www.gameenginebook.com/
Game Physics Cookbook (Read this before the next physics book): https://www.amazon.com/Game-Physics-C...
Game Physics (Ian Millington): https://www.amazon.com/Game-Physics-E...
Game Programming Patterns (Free): https://gameprogrammingpatterns.com/

My Recommended Beginning Game Programming Books:
JavaScript Game Design: https://www.apress.com/gp/book/978143...

My Recommended Java Books:
Data Structures/Algorithms: https://www.amazon.com/Data-Structure...
LWJGL (Free, but I haven't read this thoroughly): https://lwjglgamedev.gitbooks.io/3d-g...

Outro Music: https://www.bensound.com/royalty-free...


Смотрите видео How does Font Rendering Work? | Game Engine Concepts #1 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь GamesWithGabe 26 Август 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 23,212 раз и оно понравилось 518 людям.