Trying to setup Draco #529
-
This is probably a question for @9inpachi ;-) I'm trying to get DRACOLoader working, by adding:
Obviously I've not managed, hence this discussion! The error I get is that
However it's here:
Any idea what I'm doing wrong? I was wondering if I need to declare that I need draco somewhere so it is available to the web app? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The loader is trying to load the file from the server but the server is not serving this file since it's an npm dependency and only exists in
There might be some other better options I don't know of. |
Beta Was this translation helpful? Give feedback.
The loader is trying to load the file from the server but the server is not serving this file since it's an npm dependency and only exists in
node_modules
. Our options here are:DRACOLoader
JS files in the app'sassets
folder and specify the path from assets:dracoLoader.setDecoderPath('assets/js/draco-loader/');
dracoLoader.setDecoderPath('https://cdn.jsdelivr.net/npm/[email protected]/examples/js/libs/draco/');
There might be some other better options I don't know of.