I am having a hard time importing these obj and mtl files to load a model at three js.I try this code:
var loader = new THREE.OBJMTLLoader();
loader.load ("test.obj", "test.mtl"); loader.addEventListener("load", function (object) {scene.add(object);}, false);
Should i do something more? I found out something about importing scripts like js/OBJMTLLoader.js to the html.if so should i download them from somewhere?
this is the code i used.. In this example i check if the user select to insert a house model. The onProgress and onError functions state the completeness of the loader. I use OBJMTLLoader.js and DDSLoader.js