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

Loading a ozz::animation::Skeleton to Offline #108

Closed circinusX1 closed 4 years ago

circinusX1 commented 4 years ago

Is there any way to serialize a ozz::animation::Skeleton file into into ozz::animation::offline::RawSkeleton. Thank you

guillaumeblanc commented 4 years ago

Hi,

There's no existing implementation doing the conversion this way (runtime to raw). But you can implement it. I'd recommend getting the help from the skeleton iterator. Note that you'll have to do the SoA to AoS conversion for the bind pose.

May I ask why you need this? It's not very usual indeed.

Cheers, Guillaume

circinusX1 commented 4 years ago

Hi, Thank you for your answer. I wanted to load a human from a ready ozz, instead building it skeleton into the raw-skeleton instead the millipede in the millipede example, and play with different animation over a human skeleton. Otherwise, How do I add or remove or exit existent animations on human skeletons. Thank you.

guillaumeblanc commented 4 years ago

Hi,

not exactly sure I understand your goal, but I can give a few hints:

Hope it helps, Guillaume

circinusX1 commented 4 years ago

Hi, That was very helpful. Thank you.

regards, Marius

On Mon, Sep 14, 2020 at 3:23 PM Guillaume Blanc notifications@github.com wrote:

Hi,

not exactly sure I understand your goal, but I can give a few hints:

Hope it helps, Guillaume

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/guillaumeblanc/ozz-animation/issues/108#issuecomment-692262411, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQTKLGKJYTX4IYCDYSOE4NLSFZUTDANCNFSM4RKIPECA .