#GLTFLoader with draco finishes loading (onProgress) but never reaches onLoad to add to scene
5 messages · Page 1 of 1 (latest)
Hm, so it never prints "HERE!" but also never prints "An error occurred..." ? That shouldn't happen, does the model work in online viewers? Possible to share the model?
Hey! i did test it online and it loaded there, i figured out a way to make it work! it seems my path to the decoders was wrong? i changed it to
dracoLoader.setDecoderPath("node_modules/three/examples/jsm/libs/draco/");
which seems odd and probably wont work once my app is built, but it works locally right now...
What is the path supposed to be?
it seems the common approach is to copy the draco folder to the public folder?
Yeah, I think you'd usually need to copy the Draco files into a public or static folder for your app. The exact name of the folder would depend on your app and the build (Vite, Webpack, Parcel, etc.) configuration.