Skip to content

Trying to setup Draco #529

Answered by 9inpachi
EdwardMoyse asked this question in Q&A
Dec 16, 2022 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

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:

  1. Put the DRACOLoader JS files in the app's assets folder and specify the path from assets: dracoLoader.setDecoderPath('assets/js/draco-loader/');
  2. Use the URL from jsDelivr: 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.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@EdwardMoyse
Comment options

EdwardMoyse Dec 19, 2022
Maintainer Author

@9inpachi
Comment options

@EdwardMoyse
Comment options

EdwardMoyse Jan 9, 2023
Maintainer Author

Answer selected by EdwardMoyse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants