View motion_extraction sample source code.
Extracting root motion is the process of capturing character motion (translation and rotation) from an animation. This motion is re-applied at runtime to drive the character and its collision capsule. This sample allows to tweak motion extraction settings by exposing all the parameters available to the motion extraction utility.
Initializing WebGL
The samples relies ozz::animation::offline::MotionExtractor
utility to run motion extraction and exposes all its parameters.
The utility capture root motion from a raw animation into tracks (translation and rotation) that are use at runtime to sample character location using ozz::animation::offline::TrackSamplingJob
.
This samples allows to tweak motion extraction using all utility parameters:
ozz::animation::offline::MotionExtractor
utility, into a ozz::animation::offline::RawFloat3Track
for the position and ozz::animation::offline::RawQuaternionTrack
for the rotation.ozz::animation::offline::AnimationOptimizer
and ozz::animation::offline::TrackOptimizer
.ozz::animation::offline::AnimationBuilder
and ozz::animation::offline::TrackBuilder
.ozz::animation::offline::TrackSamplingJob
.