Closed circinusX1 closed 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
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.
Hi,
not exactly sure I understand your goal, but I can give a few hints:
Hope it helps, Guillaume
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:
- If you want to play existing animations on a skeleton you can start with playback http://guillaumeblanc.github.io/ozz-animation/samples/playback/ sample. You'd need to provide a runtime ozz::animation::Skeleton and ozz::animation::Animations. At runtime you're not expected to use Raw data so this shall be the default the way to go.
- To switch animation, then you shall load them all, and only sample (ozz::animation::SamplingJob) the one you need at a time.
- If you want to blend multiple animations on the same skeleton, then have a look to the blending http://guillaumeblanc.github.io/ozz-animation/samples/blend/ sample.
- If you want to use raw data (RawSkeleton and RawAnimation) then I'd say optimize http://guillaumeblanc.github.io/ozz-animation/samples/optimize/ sample is an easier starting point.
- If you want to generate Raw data directly from fbx2ozz or gltf2ozz then you can use these options when importing assets: here https://github.com/guillaumeblanc/ozz-animation/blob/master/src/animation/offline/tools/reference.json#L10 for skeletons, here https://github.com/guillaumeblanc/ozz-animation/blob/master/src/animation/offline/tools/reference.json#L30 for animations. More info in the doc http://guillaumeblanc.github.io/ozz-animation/documentation/toolset/.
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 .
Is there any way to serialize a ozz::animation::Skeleton file into into ozz::animation::offline::RawSkeleton. Thank you