I'm using tinyobjloader (https://github.com/tinyobjloader/tinyobjloader) library to load my Wavefront Object files, however there is a bit of an issue when it comes to loading the “material” .mtl file that contains the texture file paths for the textures that the object uses. I'm not exactly sure what the problem is, but I seem to be using everything correctly. Can anyone find the issue here, or recommend a different library?
In the code below I give the library the name of the object I'm loading and I also give it the base directory where …