guillaumeblanc / ozz-animation

Open source c++ skeletal animation library and toolset
http://guillaumeblanc.github.io/ozz-animation/
Other
2.46k stars 302 forks source link

Gradient Band Interpolation Examples #26

Open kylawl opened 7 years ago

kylawl commented 7 years ago

This isn't really an issue, but I wanted to share it with ozz users.

Unity uses a cool animation blending technique for their blend spaces. https://docs.unity3d.com/Manual/BlendTree-2DBlending.html

It's known as Gradient Band Interpolation. Here is a very extensive masters paper on many animation topics from this guy Rune Johansen http://runevision.com/thesis/rune_skovbo_johansen_thesis.pdf. He wrote the Unity animation system.

At any rate, I've implemented the Gradient Band Interpolation for both Cartesian and Radial coordinates as this shadertoy https://www.shadertoy.com/view/XlKXWR that people might find useful.

/ Kyle

guillaumeblanc commented 7 years ago

Thanks for sharing Kyle ! I'm very happy that you use this project to share with people interested in the topic.

The thesis gives a very good conceptual and implementation insight on high level animation systems. It also shows a direction where ozz-animation tools could go, while remaining at a lower level: motion analysis, 2 joints IK, retargetting, gradient band interpolation utilities. Very interesting read !

Your shadertoy completes the thesis very well and seems like a good head start for anyone trying to implement Gradient Band Interpolation.

As I'm trying to bring back ozz website and documentation, your post actually gave me the idea to add a "reference" page to be able to share these kind of material with ozz users. I'll add your shadertoy if your ok.

Thanks again !

kylawl commented 7 years ago

By all means, share this stuff wherever you'd like 👍

guillaumeblanc commented 7 years ago

There it is: http://guillaumeblanc.github.io/ozz-animation/documentation/references/

Thanks again for sharing and giving me this idea of a reference page !

kylawl commented 7 years ago

Nice! On Tue, Mar 21, 2017 at 2:45 PM Guillaume Blanc notifications@github.com wrote:

There it is: http://guillaumeblanc.github.io/ozz-animation/documentation/references/

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/guillaumeblanc/ozz-animation/issues/26#issuecomment-288229156, or mute the thread https://github.com/notifications/unsubscribe-auth/AEuP1x7hmH2f1RbvNI8eKRTlQmWPPuwKks5roEUNgaJpZM4LqJ8I .

VinnyVicious commented 7 years ago

Amazing! :+1:

guillaumeblanc commented 7 years ago

I'm letting this issue opened in case someone is willing to implement a Gradient Band Interpolation sample.

kylawl commented 7 years ago

Do you have anything specific in mind? Would you want it as part of the existing blending example? Are there more animations available for the example skeleton? Strafing/Turning/Running backwards, maybe 9 pose aiming?

guillaumeblanc commented 7 years ago

I think it should be a new sample. If possible Gradient Band Interpolation would be an utility that could be reused on the user side. Unfortunately I don't have more animations available at the moment. I'd need to find a more complete set.

kylawl commented 6 years ago

I recently learned of this motion capture data-set from Carnegie Mellon which is freely available. http://mocap.cs.cmu.edu/

guillaumeblanc commented 6 years ago

Interesting! Have you found fbx files? The only link I found is broken.

kylawl commented 6 years ago

Apparently some kind soul converted them all to fbx and put them on the unity store.

https://www.assetstore.unity3d.com/en/#!/content/19991

That's the only source I know of in fbx form at the moment.

On Wed, Dec 13, 2017 at 1:02 PM, Guillaume Blanc notifications@github.com wrote:

Interesting! Have you found fbx files? The only link I found is broken.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/guillaumeblanc/ozz-animation/issues/26#issuecomment-351520939, or mute the thread https://github.com/notifications/unsubscribe-auth/AEuP14oy_sIyG9xLTuUumLbRhqxBI0Ceks5tADtIgaJpZM4LqJ8I .

ArnCarveris commented 2 years ago

@guillaumeblanc maybe this could be useful: https://www.mixamo.com/#/?page=1&query=walk&type=Motion%2CMotionPack

guillaumeblanc commented 2 years ago

These are great animation, but from my understanding they can't be redistributed.

ArnCarveris commented 1 year ago

@guillaumeblanc Hi, in this example: https://guillaumeblanc.github.io/ozz-animation/samples/blend/ is 1D blend space Is possible to make 2D or more blend space?

guillaumeblanc commented 8 months ago

BTW, the additive sample was extended (some time ago) with 2D blend space: https://guillaumeblanc.github.io/ozz-animation/samples/additive/

The missing point for a gradient band interpolation sample is definitely the lack of an animation data set.

ArnCarveris commented 8 months ago

This will help: https://theorangeduck.com/page/animation-blend-spaces-without-triangulation