Email or username:

Password:

Forgot your password?
Nikita Lisitsa

I've finally fixed a longstanding bug with animations in my engine! If I don't make Blender sample animations at each frame when exporting to glTF, they looked funny and really wonky. Turned out I missed one term in cubic spline interpolation formula 🙃

I've also added some preprocessing code that flips rotation quaternions so that two successive keyframes are always on the same hemisphere. Is this something people actually do?

2 comments
Nikita Lisitsa

Here's the fix, btw. `td` is the duration between two input keyframes.

Nikita Lisitsa

Oh, and since I don't need to sample animations on export now, they only contain the actual original keyframes, which reduced the size of the .glb file from 1.5 Mb to 600 Kb. I'm still shocked that animations take so much space, but I'll happily accept a 2.5x reduction 🥰

Go Up