Hi everyone,
I’m having an issue with the path of the DracoLoader as I understood from the other discussions related to the DRACOLoader:
const loader = new GLTFLoader();
// Instantiate a loader
const dracoLoader = new DRACOLoader();
// Specify path to a folder containing WASM/JS decoding libraries.
dracoLoader.setDecoderPath("/examples/jsm/libs/draco/");
loader.setDRACOLoader(dracoLoader);
loader.load(
"/draco.glb",
(gltf) => {
console.log(gltf);
},
(xhr) => {
console.log((xhr.loaded / xhr.total) * 100 + "% loaded");
},
(err) => {
console.error("An error happened", err);
},
);
as you can see it’s a copy paste of the GLTFLoader guide besides my model path.
I tried basicly every path suggested by the other discussions but I couldn’t make it work.
What am I missing?
Thanks in advance to everyone answering.