I'm encountering a major issue with loading a model into Three.js. To start off, I downloaded https://github.com/mrdoob/three.js/ and extracted it onto my local WebMatrix server. Most of the examples run smoothly, except for the ones that are crucial for me.
When I try to access webgl_loader_collada.html, I receive the following error:
GET http://localhost:26238/three.js-master/examples/models/collada/monster/monster.dae 404 (Not Found)
Similarly, trying to load webgl_loader_obj.html gives me:
GET http://localhost:26238/three.js-master/examples/obj/male02/male02.obj 404 (Not Found)
I've made sure that ColladaLoader.js is in the same folder as well.
For instance, attempting to load a Collada file like this presents an issue:
var loader = new THREE.ColladaLoader();
loader.load("monster.dae", function loadCollada(collada) {
var model = collada.scene;
model.scale.set(0.1, 0.1, 0.1);
model.rotation.x = -Math.PI/2;
model.updateMatrix();
scene.add(model);
});
This results in:
GET http://localhost:26238/monster.dae 404 (Not Found)
ColladaLoader.js:108 load ColladaLoader.js:108
init webgl.html:43
onload webgl.html:107
While I can successfully load models using the JSON loader, I need other formats to be operational as well.
I'm at a standstill. It is imperative for this to function properly, yet I am unable to identify the root of the problem. Even after copying code from functioning examples, it remains unsuccessful.