javascript - three.js importing .obj file error -
i'm trying import .obj file application through objloader.js script.
var loader = new three.objloader(); // load resource loader.load('models/broad_leaf_straight_trunk.obj', function(object){ object.traverse(function(child){ if(child instanceof three.mesh){ scene.add(object); }; }); });
the result of import raise following error
error: unexpected line: 'mtllib broad leaf straight trunk.mtl'
is there error in code?
Comments
Post a Comment