Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17560

Using tinyobjloader library - material file is not loaded when loading object

$
0
0

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 …


Viewing all articles
Browse latest Browse all 17560

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>