载入中...
搜索中...
未找到
eve::animation::MotionDatabase类 参考

Baked motion-matching feature database from one or more AnimClips. Feature layout per frame: [0..1] root velocity xz [2..7] trajectory pos xz at +0.33/+0.66/+1.0s (character space) [8..10] trajectory facing dir xz + yaw sin/cos packed as (fx,fz) for +1.0s [11..] selected joint world positions (xyz each) Script type: MotionDatabase. 更多...

#include <MotionDatabase.h>

struct  Frame
 

Public 成员函数

 MotionDatabase (AnimSkeleton *skeleton)
 
 ~MotionDatabase ()=default
 
 MotionDatabase (const MotionDatabase &)=delete
 
MotionDatabaseoperator= (const MotionDatabase &)=delete
 
AnimSkeletongetSkeleton () const
 
void addFeatureBone (int boneIndex)
 Include bone world position in pose features (by index).
 
void addFeatureBoneByName (const std::string &name)
 
void setRootBone (int boneIndex)
 Bone used for trajectory / velocity features (default 0). Mixamo clips typically want hips (mixamorig:Hips).
 
int getRootBone () const
 
void setRootBoneByName (const std::string &name)
 
void addClip (AnimClip *clip)
 
int getClipCount () const
 
void bake ()
 Bake all clips into searchable frames. Call after addClip / feature bones.
 
bool isBaked () const
 
int getFrameCount () const
 
int getFeatureSize () const
 
float getFrameTime (int frameIndex) const
 
int getFrameClipIndex (int frameIndex) const
 
AnimClipgetClip (int clipIndex) const
 
int getFeatureBoneCount () const
 
int getFeatureBone (int index) const
 
void getFeature (int frameIndex, float *out, int outCount) const
 Copy feature vector into out[0..featureSize).
 
const FrameframeAt (int index) const
 

详细描述

Baked motion-matching feature database from one or more AnimClips. Feature layout per frame: [0..1] root velocity xz [2..7] trajectory pos xz at +0.33/+0.66/+1.0s (character space) [8..10] trajectory facing dir xz + yaw sin/cos packed as (fx,fz) for +1.0s [11..] selected joint world positions (xyz each) Script type: MotionDatabase.

在文件 MotionDatabase.h22 行定义.

构造及析构函数说明

◆ MotionDatabase() [1/2]

eve::animation::MotionDatabase::MotionDatabase ( AnimSkeleton skeleton)
explicit

◆ ~MotionDatabase()

eve::animation::MotionDatabase::~MotionDatabase ( )
default

◆ MotionDatabase() [2/2]

eve::animation::MotionDatabase::MotionDatabase ( const MotionDatabase )
delete

成员函数说明

◆ addClip()

void eve::animation::MotionDatabase::addClip ( AnimClip clip)

在文件 MotionDatabase.cpp48 行定义.

◆ addFeatureBone()

void eve::animation::MotionDatabase::addFeatureBone ( int  boneIndex)

Include bone world position in pose features (by index).

在文件 MotionDatabase.cpp17 行定义.

引用了 b , 以及 eve::animation::AnimSkeleton::getBoneCount().

被这些函数引用 addFeatureBoneByName() , 以及 bake().

◆ addFeatureBoneByName()

void eve::animation::MotionDatabase::addFeatureBoneByName ( const std::string &  name)

◆ bake()

void eve::animation::MotionDatabase::bake ( )

◆ frameAt()

const MotionDatabase::Frame & eve::animation::MotionDatabase::frameAt ( int  index) const

◆ getClip()

AnimClip * eve::animation::MotionDatabase::getClip ( int  clipIndex) const

在文件 MotionDatabase.cpp54 行定义.

引用了 getClipCount().

◆ getClipCount()

int eve::animation::MotionDatabase::getClipCount ( ) const
inline

在文件 MotionDatabase.h45 行定义.

被这些函数引用 bake() , 以及 getClip().

◆ getFeature()

void eve::animation::MotionDatabase::getFeature ( int  frameIndex,
float *  out,
int  outCount 
) const

Copy feature vector into out[0..featureSize).

在文件 MotionDatabase.cpp205 行定义.

引用了 f , 以及 frameAt().

◆ getFeatureBone()

int eve::animation::MotionDatabase::getFeatureBone ( int  index) const

在文件 MotionDatabase.cpp71 行定义.

引用了 getFeatureBoneCount().

◆ getFeatureBoneCount()

int eve::animation::MotionDatabase::getFeatureBoneCount ( ) const
inline

在文件 MotionDatabase.h58 行定义.

被这些函数引用 getFeatureBone().

◆ getFeatureSize()

int eve::animation::MotionDatabase::getFeatureSize ( ) const
inline

在文件 MotionDatabase.h52 行定义.

◆ getFrameClipIndex()

int eve::animation::MotionDatabase::getFrameClipIndex ( int  frameIndex) const

◆ getFrameCount()

int eve::animation::MotionDatabase::getFrameCount ( ) const
inline

在文件 MotionDatabase.h51 行定义.

被这些函数引用 frameAt() , 以及 eve::animation::MotionMatcher::search().

◆ getFrameTime()

float eve::animation::MotionDatabase::getFrameTime ( int  frameIndex) const

◆ getRootBone()

int eve::animation::MotionDatabase::getRootBone ( ) const
inline

在文件 MotionDatabase.h41 行定义.

◆ getSkeleton()

AnimSkeleton * eve::animation::MotionDatabase::getSkeleton ( ) const
inline

在文件 MotionDatabase.h30 行定义.

被这些函数引用 eve::animation::MotionMatcher::MotionMatcher().

◆ isBaked()

bool eve::animation::MotionDatabase::isBaked ( ) const
inline

◆ operator=()

MotionDatabase & eve::animation::MotionDatabase::operator= ( const MotionDatabase )
delete

◆ setRootBone()

void eve::animation::MotionDatabase::setRootBone ( int  boneIndex)

Bone used for trajectory / velocity features (default 0). Mixamo clips typically want hips (mixamorig:Hips).

在文件 MotionDatabase.cpp34 行定义.

引用了 eve::animation::AnimSkeleton::getBoneCount().

被这些函数引用 setRootBoneByName().

◆ setRootBoneByName()

void eve::animation::MotionDatabase::setRootBoneByName ( const std::string &  name)

在文件 MotionDatabase.cpp42 行定义.

引用了 eve::animation::AnimSkeleton::findBone(), name , 以及 setRootBone().


该类的文档由以下文件生成: