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

morph target #74

Closed zhaishengfu closed 5 years ago

zhaishengfu commented 5 years ago

Do you want to implement the morph target functionality?

guillaumeblanc commented 5 years ago

It's not planned. ozz support for geometry import is very limited, as I tend to focus on skeletal animation features. It could go alongside skinning in ozz geometry lib though. It would require quite a lot of work to have something solid and coherent: import data, build/pack it for optimal size and performance, implement runtime algorithms...

Cheers, Guillaume

kylawl commented 5 years ago

I'm not a fan of this as a feature in ozz. I feel it has limited utility as skinning, morphing and runtime operating on model data in general is too tied to rendering to be library-able unless you're providing a more complete rendering solution.

Maybe pairing OZZ with something like BGFX - https://github.com/bkaradzic/bgfx is probably more suitable solution to this problem?

/ Kyle

On Mon, Sep 23, 2019 at 12:53 PM Guillaume Blanc notifications@github.com wrote:

It's not planned. ozz support for geometry import is very limited, as I tend to focus on skeletal animation features. It could go alongside skinning in ozz geometry https://github.com/guillaumeblanc/ozz-animation/tree/master/include/ozz/geometry/runtime lib though. It would require quite a lot of work to have something solid and coherent: import data, build/pack it for optimal size and performance, implement runtime algorithms...

Cheers, Guillaume

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/guillaumeblanc/ozz-animation/issues/74?email_source=notifications&email_token=ABFY7V7N75BAAQQ7NDZHAXLQLENDXA5CNFSM4IXJB622YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7MB65I#issuecomment-534257525, or mute the thread https://github.com/notifications/unsubscribe-auth/ABFY7VYSNQDBGEDJSVXEVKLQLENDXANCNFSM4IXJB62Q .

guillaumeblanc commented 5 years ago

I agree it would need to be renderer agnostic to be done in ozz. ozz won't provide a rendering solution that's for sure.

Skinning in ozz is renderer agnostic (thus cpu only!). Maybe it's doable for morphing as well, I actually don't know. Anyway I agree it's much more adapted to a rendering library that already operate on model data.