Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
galena71366yAlso converting the cpp implementation to pythons is a nightmare as I only know python.
-
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
-
@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)
Related Rants
-
thremedy10As a child: Look Ma, no training wheels! As an adult: Look Ma, no mouse!
-
DangerousDev25Microsoft is investing in Git, VSCode, Electron, Github, Bash-on-Windows. Things that decentralize and help pr...
-
PacRat23Aardwolf is very fun and i suggest y'all play it a bit if you're looking for better ways to slack off at work ...
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!
rant
freetype
text
opengl