Hey there.
When I open my collada file in MeshLab the result is:
But when I draw it in my Android application the result is this thing:
Code:
assimp.loadModel(ofToDataPath("3d/rayban.dae"), false);
assimp.disableMaterials(); // without this texture is black (???)
assimp.setRotation(0, 180.0f, 0.0f, 1.0f, 0.0f);
assimṕ.setRotation(1, 180.0f, 0.0f, 0.0f, 1.0f);
assimp.setPosition(0, -22.5, 7.5);
assimp.setScale(0.68, 0.68, 0.68);
…
ofFbo fbo3d;
fbo3d.allocate(width, height, GL_RGBA);
fbo3d.begin();
light.enable();
ofClear(0);
ofEnableDepthTest();
// Draw Model
assimp.drawFaces();
// Draw axis
ofSetLineWidth(10); ofDrawAxis(50); ofSetLineWidth(1);
ofDisableDepthTest();
light.disable();
fbo3d.end();
fbo3d.draw(x, y, w, h);
I appreciate any help.