Skip to content
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

Added sparse blendshape support #257

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

vfxgordon
Copy link
Contributor

@vfxgordon vfxgordon commented May 15, 2020

Using the --blend-shape-sparse flag, FBX2glTF now correctly computes sparse arrays for blendshape storage, which seems to reduce the output file size by anywhere from 60-90%, particularly with large numbers of minimally different blendshapes.

gltf_validator seems perfectly happy with the sparse files and they load into various viewers fine.

Meshes with multiple primitives can generate empty accessors, however, such as when the blendshape is applied to one of the other primitives in the mesh, in this case a single element dummy bufferview gets used, since an accessor's sparse count has to be greater than 0 and the number of accessors has to match the number of morph targets.

Without the --blend-shape-sparse flag, FBX2glTF should operate exactly as before, he said, optimistically.

Also fixed the duplication of target names in the mesh.extras.targetNames array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants