Skip to content

Commit

Permalink
Documents sample
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumeblanc committed May 22, 2024
1 parent ca1a4f0 commit ae401b2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion samples/motion_blend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,19 @@

## Description

Motion blending extends the concept of animation blending to root motion. It blends the motion resulting from the motion extraction process, in addition to blending animations.

## Concept

This sample is built on top of the animation blending sample. It blends three animations (walk, jog and run) and their corresponding root motions according to a single "speed" coefficient.

It uses animation and motion tracks converted using *2ozz tools, relying itself on `ozz::animation::offline::MotionExtractor`. It uses animation.tracks.motion settings as described in the reference configuration. See motion playback sample for more details.



At runtime, the position and rotation are sampled from the motion tracks each frame. They are accumulated to move the character transform (by delta motion each frame), allowing to continue moving when the animation loops.
The sample uses `ozz::sample::MotionAccumulator` and `ozz::sample::MotionSampler` utilities to help with the complexity of managing loops.

## Sample usage

## Implementation

0 comments on commit ae401b2

Please sign in to comment.