XII Release 0.1.0
Loading...
Searching...
No Matches
xiiAnimationPreview Class Reference

#include <AnimationPreview.h>

Public Member Functions

xiiResult Build (const xiiSkeletonResource &skeleton, const xiiMeshResourceDescriptor &mesh, const xiiAnimationClipResource *pClip=nullptr, double fNormalizedPosition=0.0)
 Copyright (c) Theophilus Eriata. All Rights Reserved.
xiiResult UpdateMesh (xiiSkinnedMeshComponent &component, const xiiAnimationClipResourceHandle &hClip={}, double fNormalizedPosition=0.0, const xiiSkeletonResourceHandle &hSkeletonOverride={})
xiiArrayPtr< const xiiMat4 > GetSkinningMatrices () const
const xiiAnimationPose & GetPose () const

Detailed Description

Editor-owned pose sampling and mesh palette mapping for rest-pose and clip previews. Uses runtime animation resources without advancing world simulation. Scratch capacity is reused. No resource pointers survive a call; each update observes the currently loaded definitions.

Member Function Documentation

◆ Build()

xiiResult xiiAnimationPreview::Build ( const xiiSkeletonResource & skeleton,
const xiiMeshResourceDescriptor & mesh,
const xiiAnimationClipResource * pClip = nullptr,
double fNormalizedPosition = 0.0 )

Copyright (c) Theophilus Eriata. All Rights Reserved.

Samples a clamped normalized time using the runtime clip sampler, or the rest pose. Mesh bone names resolve skeleton joints; mesh bone indices determine palette slots. Invalid times, missing joints, duplicate palette slots, and invalid matrices fail and clear output.

◆ UpdateMesh()

xiiResult xiiAnimationPreview::UpdateMesh ( xiiSkinnedMeshComponent & component,
const xiiAnimationClipResourceHandle & hClip = {},
double fNormalizedPosition = 0.0,
const xiiSkeletonResourceHandle & hSkeletonOverride = {} )

Acquires the mesh and its default skeleton (or an explicitly selected skeleton), samples, and updates a world-owned component. The caller holds world write access. Loading/missing resources fail and clear stale pose data. A mesh without a default skeleton permits bind-pose preview only; clip preview fails.


The documentation for this class was generated from the following files:
  • /home/runner/work/XII/XII/Source/Editor/EditorEngineProcessFramework/Animation/AnimationPreview.h
  • /home/runner/work/XII/XII/Source/Editor/EditorEngineProcessFramework/Animation/Implementation/AnimationPreview.cpp