Code Monkey home page Code Monkey logo

Comments (1)

ziriax avatar ziriax commented on June 20, 2024

I started an experiment with curve compression a long time ago, but this was never released, as my customer didn't need it anymore, they used procedural IK animation in the end. It was a lot of fun, but not easy, it would require commercial support to get this done. Also, it was not compatible with GLTF itself, it used Chebyshev polynomials, but I would have liked to experiment with other techniques too, like Radial Basis Functions, wavelets, arithmetic coding, etc...

Another library from a professional game tool developer exists that tries to do that: https://github.com/nfrechette/acl-gltf

Note that in general you can't export Maya curves as is to GLTF, since GLTF just doesn't support these curves. Maya's (and almost all CG apps) uses curves that are actually 2D freeform curves, not the simply cubic polynomials that GLTF supports. The GLTF 2.0 spec mentions this:

Animations with non-linear time inputs, such as time warps in Autodesk 3ds Max or Maya, are not directly representable with glTF animations. glTF is a runtime format and non-linear time inputs are expensive to compute at runtime. Exporter implementations should sample a non-linear time animation into linear inputs and outputs for an accurate representation.

You really wouldn't want to do animation with simple cubic polynomials, that would be horrible for an artist I guess, as you can only control the slope of the curve, not a tangent vector, as you are used to.

No, Draco compression is not supported yet. You can easily apply that as a standalone tool no? A lot of other tools exist in the GLTF pipeline too.

from maya2gltf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.