Hi -
I am currently trying to use the ofxObjLoader add-on and can’t find an example for how to map a MTL onto it. Any suggestions?
-Al
Hi -
I am currently trying to use the ofxObjLoader add-on and can’t find an example for how to map a MTL onto it. Any suggestions?
-Al
I always just remove the MTL file from the OBJ and then manually load the texture and bind it for drawing the geometry
ofMesh obj;
ofImage objTexture;
ofxObjLoader::load(obj);
objTexture.load("objtexture.png");
objTexture.getTextureReference().bind()
obj.draw();
objTexture.getTextureReference().unbind();
Hmm - that is interesting - I’m having a little trouble, since I think the MTL file in question draws on several PNGs.
Would it be possible to see an example of the ofxObjLoader in full-swing? The example only demonstrates wireframe.