facebookincubator / FBX2glTF

A command-line tool for the conversion of 3D model assets on the FBX file format to the glTF file format.
Other
2.07k stars 330 forks source link

Implement (Generate) Sparse Accessors #18

Open zellski opened 6 years ago

zellski commented 6 years ago

Especially when outputting animation data, leaning on sparse accessors could likely save a fair bit of space in the output file.

If we end up Draco-compression animations in the future, the value of sparse accessors goes down; long runs of zeros largely vanish in compressed form. Even in that situation, though, there are time- and memory-saving benefits on the client.

zellski commented 6 years ago

With morph targets in place, the priority of this has increased. Their storage in full form can be very inefficient.

zellski commented 6 years ago

With https://github.com/mrdoob/three.js/pull/12596 done, I'm bumping this to 1.0 requirement. Morph targets are insanely inefficient without sparse accessors.

jiamingfeng commented 5 years ago

Any update on this one? Is there an option to keep the original animation instead of baking it every frame?

zellski commented 5 years ago

Afraid not. If you have resources to help, pull requests are welcome.