question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Include draco decoder path by default?

See original GitHub issue

I find myself doing this on many scenes: <a-scene gltf-model="dracoDecoderPath: https://www.gstatic.com/draco/v1/decoders/;">

Would there be any value (or harm) in automatically including the Google CDN Draco decoder path in gltf-model System?

Example change could be: https://github.com/aframevr/aframe/blob/41547f59f3af57994f29b5da188d3a3d56847622/src/systems/gltf-model.js#L14 14 (old) dracoDecoderPath: {default: ''} 14 (new) dracoDecoderPath: {default: 'https://www.gstatic.com/draco/v1/decoders/'}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
donmccurdycommented, Nov 20, 2020

I would use a versioned URL — here’s what <model-viewer> does:

https://github.com/google/model-viewer/blob/9fecc68094b321b0546a19d28f93ff04e1f9d582/packages/model-viewer/src/features/loading.ts#L33-L34

My understanding is that it’s meant to be stable and available indefinitely — @FrankGalligan does this sound right?

0reactions
donmccurdycommented, Dec 4, 2022

Appears to be fixed by #5156, thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

DRACOLoader – three.js docs
Instantiate a loader const loader = new DRACOLoader(); // Specify path to a folder ... DRACOLoader will automatically use either the JS or...
Read more >
How to use DRACOLoader with GLTFLoader in ReactJs?
Here is how I got the Draco decoder path working. In your app's public folder, create a new folder called draco . Download...
Read more >
Optimizing 3D data with Draco Geometry Compression
Draco is released as C++ source code that can be used to compress 3D graphics as well as C++ and Javascript decoders for...
Read more >
useGltf - Threlte
Use a DRACO decoder for compressed glTF files, defaults to CDN loaded DRACO ... useGltf('/path/to/model.glb', { useDraco: '/custom/draco/decoders/path' }) ...
Read more >
Gitee 极速下载/google-draco
If you are using the URLs that include the v1/decoders substring within the ... The default target created from the build files will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found