WaveFront .obj File Loader

I created a simple, easy to use class to load .obj files. For the time being, it doesn’t handle texture data (since I’m using shaders for all my materials). It returns an ofMesh object.

This has been updated to be able to parse .mtl files


I just tried it, compilation succeeded but nothing happened. Meshes return 0 vertices.

Any ideas ?


Can you post some code? Did you make sure to check “write normals” and “triangulate faces” when exporting from blender (assuming you’re using blender)?