-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support sparse accessors in Model #10284
Comments
This would also be useful for animation with morph targets, since the weights are packed per keyframe. It gets even more cumbersome to pull the data when |
In #11961, @mramato pointed out a glTF which fails to load, and @javagl Identified lack of support for sparse accessors as the cause for the failure.
|
Correct me if I'm wrong @lilleyse, but supporting sparse accessors is a matter of updating the loader parsing and shouldn't be complex to support. |
Yeah it seems pretty straightforward. The simplest approach would be to expand the sparse accessor at load time. |
An example that I created for #12379 : MorphTestWithSparseAccessors 2024-12-21.zip It uses an artificially and intentionally sparse morph target for the It currently bails out with this message:
|
Things like
|
The old
Model
class didn't handle sparse accessors from the glTF spec. For better spec compliance, the newModelExperimental
should add this.Not sure the exact scope of how to implement this, but some thoughts:
GltfLoader
(or related loaders) would need more parsing logic for sparse accessorsGeometryPipelineStage
don't need to worry about whether the accessor was sparse or dense.The text was updated successfully, but these errors were encountered: