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.

Draco compression doesn't work with Sparse Accessors

See original GitHub issue

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 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:

  1. Download + unpack FacialAnimation.sparse.zip 2… Run gltf-transform draco FacialAnimation.sparse.glb FacialAnimation.sparse.draco.glb
  2. 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: 210714-160556994

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
donmccurdycommented, Sep 17, 2021

Proposed fix in #355, support for writing sparse accessors tracked in https://github.com/donmccurdy/glTF-Transform/issues/351.

1reaction
donmccurdycommented, Jul 25, 2021

Still investigating why the output is broken here – see https://github.com/google/draco/issues/720#issuecomment-886135249.

Read more comments on GitHub >

github_iconTop 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 >

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