Three.js: GLTF2Loader -- support for CUBICSPLINE interpolation

Created on 13 Jul 2017  路  6Comments  路  Source: mrdoob/three.js

I've noticed that GLTF2Loader is undergoing fairly rapid iteration. Is there work in progress on supporting the new interpolation modes, most interestingly CUBICSPLINE? Of all the improvements from GLTF1 to GLTF2, getting away from densely sampled animation transforms (and the resulting enormous model files) is perhaps the most exciting.

If nobody else is working on this, we may end up taking a pass on it.

Enhancement

Most helpful comment

CUBICSPLINE interpolation added with https://github.com/mrdoob/three.js/pull/11825. If you have a test model available, might be good to verify.

All 6 comments

Is there work in progress on supporting the new interpolation modes, most interestingly CUBICSPLINE?

Not started yet, no. Please do feel free to work on this. 馃檪

/cc @takahirox

Regarding the ongoing iteration, my own roadmap currently is:

  1. Supporting experimental Draco mesh compression extension for glTF
  2. KHR_cmnBlinnPhong extension
  3. Refactoring to allow glTF extensions to be authored without modifying GLTF2Loader itself.

CUBICSPLINE interpolation added with https://github.com/mrdoob/three.js/pull/11825. If you have a test model available, might be good to verify.

Great work! I believe the Blender folks are adding support for spline interpolation in their exporter shortly. Meanwhile I might hack up a tiny test-file by hand.

Unfortunately it looks like CUBICSPLINE interpolation will need some more work. I tried passing the glTF data directly into the three.js keyframe track and that wasn't it. Will need to read up on how both systems work and adapt the input data accordingly. See: #12233.

Aha, understood. You need a little McCurdy-minion to help you out.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

konijn picture konijn  路  3Comments

clawconduce picture clawconduce  路  3Comments

jlaquinte picture jlaquinte  路  3Comments

zsitro picture zsitro  路  3Comments

akshaysrin picture akshaysrin  路  3Comments