10
galena
5y

Be me, wanting to try out PyOpenGL.
Lets start by drawing a rectangle.
Nice.
And now add some text?!

NOPE CANT RENDER FROM TTF OR SOME OTHER STUPID SHIT! YOU NEED TO CREATE A BITMAP FONT. WHICH IS THE MOST INEFFECTIVE BS IVE EVER SEEN.
K but there is surely a library for Python which enables the usage of text in OpenGL? Yes but its last support was 12 years ago.
FFS WHAT IS THIS GARBAGE?
At the end i found out cpp uses freetype to convert each character of a font to a bitmap with the according spacing.
THIS SHOULD BE WAY SIMPLER!

Comments
  • 4
    Also converting the cpp implementation to pythons is a nightmare as I only know python.
  • 1
    You should try out Vulkan, you'd love it ;)
  • 0
    @12bitfloat Had a short peak at but felt like this will be worse than open gl.
  • 1
    On a more serious note: Yeah text rendering sucks. It's not clear to me whether you should be doing it on the gpu in the first place. But if you want to, check out this paper: https://github.com/Chlumsky/msdfgen
  • 1
    @JFK422 Vulkan is like trying to solve a rubiks cube while skydiving without a parachute. But it's absolutely awesome. So is OpenGL, you just have to learn it properly (and probably use a better language than Python)
Add Comment