Include draco decoder path by default?
See original GitHub issueI 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:
- Created 3 years ago
- Comments:13 (12 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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?
Appears to be fixed by #5156, thank you!