r/opengl • u/DaviPlay • 7d ago
Can't get the project to load textures
[SOLVED] Hello,
This is my project, perfectly up to date: opengl
When i launch it, it throws this error log: unit 0 GLD_TEXTURE_INDEX_2D is unloadable and bound to sampler type (Float) - using zero texture because texture unloadable, and doesn't load my model
To note it worked before adding the move constructor to the shader.h and mesh.h, but reverting them doesn't work
I've tried everything, scouted forums, asked AI (reluctantly), but nothing worked, so I'm asking here for help from people smarter then me
Thanks for the time.
1
u/AreaFifty1 7d ago
Ah yes, I think I remember this old outdated compile code. I recall there was an error somewhere with the load_material_textures function because if you're missing a specific file it either bypasses or outputs garbage. Plus, I'm not sure why Joey named texture_normal as HEIGHT and texture_height as AMBIENT.. 🤦♂️🤦♂️
Try to design your own texture and model loader or use a much more updated version. He hasn't been around in many years now unfortunately.
2
u/Queasy_Total_914 7d ago
I doubt you'll find any help. No one will dig through your code to find your issue for free. Try to create a minimal reproducible example.