Draco compression doesn't work with Sparse Accessors
See original GitHub issueDescribe the bug I’m not entirely sure if the title is accurate, but it seems that draco compression via gltf-transform a) doesn’t keep sparse accessors and thus results in bigger files than passed in b) breaks the file, error “Offset is outside the bounds of the DataView”.
To Reproduce Steps to reproduce the behavior:
- Download + unpack
FacialAnimation.sparse.zip
2… Run
gltf-transform draco FacialAnimation.sparse.glb FacialAnimation.sparse.draco.glb
- Open the resulting file in https://sandbox.babylonjs.com/
Expected behavior Resulting file should probably be smaller and still work.
Additional context While Babylon rejects the file, threejs/model-viewer play the file (but show the validation errors), with interesting results:
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Developers - Draco compression doesn't work with Sparse Accessors -
Describe the bug. I'm not entirely sure if the title is accurate, but it seems that draco compression via gltf-transform a) doesn't keep...
Read more >Feature Matrix
Compress the primitives using the Draco compression. Quality can be adapted in the preferences menu. Changes are visible in the viewport.
Read more >pygltflib - PyPI
Python library for reading, writing and managing 3D objects in the Khronos Group gltf and gltf2 formats.
Read more >UX3D_hohenester – Page 2 - Gestaltor
Rendering issue with incorrect volume extension; Update iridescence extension ... and loading a different asset; Draco mesh compression on shared accessors ...
Read more >glTF2Asset.inl source code [qtquick3d/src/3rdparty/assimp/src ...
Context and extra context help the user identify the problem if there's ... 353, // If accessor uses the same size as draco...
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
Proposed fix in #355, support for writing sparse accessors tracked in https://github.com/donmccurdy/glTF-Transform/issues/351.
Still investigating why the output is broken here – see https://github.com/google/draco/issues/720#issuecomment-886135249.