Class Pose

Abstract interface for a skeletal animation pose.

class Pose
  : dlib.core.ownership.Owner;

Implementations should allocate and fill boneMatrices with up to 128 bone transforms. If the Pose object is set in GraphicsState, its bone matrices will be fed to mesh vertex shaders. A single bone matrix applies a bone's local transform to a model-space vertex.

Constructors

NameDescription
this (owner) Constructs a pose object.

Fields

NameTypeDescription
boneMatrices dlib.math.matrix.Matrix!(float,4L)[]Array of bone transformation matrices (max 128).
playing boolTrue if the animation is currently playing.
time TimeAnimation timing information.
valid boolTrue if the pose is valid and ready for use.

Methods

NameDescription
pause () Pauses animation playback.
play () Starts or resumes animation playback.
reset () Resets the animation time to zero.
update (t) Updates the pose for the given time.