Animation import helpers. 更多...
#include <AnimImporter.h>
静态 Public 成员函数 | |
| static AnimSkeleton * | loadSkeleton (const aiScene *scene) |
| Build skeleton from the scene node hierarchy (depth-first). | |
| static AnimClip * | loadClip (const aiScene *scene, const AnimSkeleton *skeleton, int animIndex=0) |
| Load clip by index; maps node-name channels onto skeleton bones. | |
| static AnimSkeleton * | loadSkeletonFromModel (const model3d::ModelData *model) |
| ModelData wrappers (AnimImporterModel.cpp; requires model3d). | |
| static AnimClip * | loadClipFromModel (const model3d::ModelData *model, const AnimSkeleton *skeleton, int animIndex=0) |
| Loads clip from model. | |
| static int | getAnimationCountFromModel (const model3d::ModelData *model) |
| Returns the animation count from model. | |
| static std::string | getAnimationNameFromModel (const model3d::ModelData *model, int animIndex) |
| Returns the animation name from model. | |
| static int | getAnimationCount (const aiScene *scene) |
| Assimp scene helpers (AnimImporterAssimp.cpp; requires model3d). | |
| static std::string | getAnimationName (const aiScene *scene, int animIndex) |
| Returns the animation name. | |
| static std::string | exportAnimationFixtureText (const AnimSkeleton *skeleton, const AnimClip *clip) |
| Serialize skeleton + clip to a compact text format (no mesh). Used to ship Mixamo-derived test fixtures without redistributing skins. | |
| static void | importAnimationFixtureText (const std::string &text, AnimSkeleton **skeletonOut, AnimClip **clipOut) |
| Load skeleton+clip from fixture text (new'd; caller owns). | |
| static void | importAnimationFixtureTextFile (const std::string &path, AnimSkeleton **skeletonOut, AnimClip **clipOut) |
Load from an *.anim.txt fixture path. | |
详细描述
Animation import helpers.
Compact *.anim.txt fixtures (export/import*) always link with the animation module. Assimp aiScene / ModelData loaders live in optional bridge TUs (AnimImporterAssimp.cpp, AnimImporterModel.cpp) compiled only when OPTIONAL_DEPS model3d is present.
在文件 AnimImporter.h 第 30 行定义.
成员函数说明
◆ exportAnimationFixtureText()
|
static |
Serialize skeleton + clip to a compact text format (no mesh). Used to ship Mixamo-derived test fixtures without redistributing skins.
在文件 AnimImporter.cpp 第 24 行定义.
引用了 b, clip, eve::animation::AnimSkeleton::getBindPositionX(), eve::animation::AnimSkeleton::getBindPositionY(), eve::animation::AnimSkeleton::getBindPositionZ(), eve::animation::AnimSkeleton::getBindRotationW(), eve::animation::AnimSkeleton::getBindRotationX(), eve::animation::AnimSkeleton::getBindRotationY(), eve::animation::AnimSkeleton::getBindRotationZ(), eve::animation::AnimSkeleton::getBindScaleX(), eve::animation::AnimSkeleton::getBindScaleY(), eve::animation::AnimSkeleton::getBindScaleZ(), eve::animation::AnimSkeleton::getBoneCount(), eve::animation::AnimSkeleton::getBoneName() , 以及 eve::animation::AnimSkeleton::getParent().
◆ getAnimationCount()
|
static |
Assimp scene helpers (AnimImporterAssimp.cpp; requires model3d).
在文件 AnimImporterAssimp.cpp 第 116 行定义.
引用了 scene.
被这些函数引用 getAnimationCountFromModel(), getAnimationName() , 以及 loadClip().
◆ getAnimationCountFromModel()
|
static |
Returns the animation count from model.
在文件 AnimImporterModel.cpp 第 19 行定义.
引用了 getAnimationCount() , 以及 model.
◆ getAnimationName()
|
static |
Returns the animation name.
在文件 AnimImporterAssimp.cpp 第 121 行定义.
引用了 a, getAnimationCount() , 以及 scene.
被这些函数引用 getAnimationNameFromModel().
◆ getAnimationNameFromModel()
|
static |
Returns the animation name from model.
在文件 AnimImporterModel.cpp 第 23 行定义.
引用了 getAnimationName() , 以及 model.
◆ importAnimationFixtureText()
|
static |
◆ importAnimationFixtureTextFile()
|
static |
Load from an *.anim.txt fixture path.
在文件 AnimImporter.cpp 第 173 行定义.
引用了 importAnimationFixtureText() , 以及 path.
被这些函数引用 eve::animation::Animation::newClipFromAnimationFixtureText(), eve::animation::Animation::newSkeletonFromAnimationFixtureText() , 以及 eve::animation::AnimClipRegistry::reloadPath().
◆ loadClip()
|
static |
Load clip by index; maps node-name channels onto skeleton bones.
- 备注
- Requires the model3d/Assimp bridge TU.
在文件 AnimImporterAssimp.cpp 第 77 行定义.
引用了 bone, c, clip, eve::animation::AnimSkeleton::findBone(), getAnimationCount(), scene , 以及 eve::animation::AnimClip::setDuration().
被这些函数引用 loadClipFromModel().
◆ loadClipFromModel()
|
static |
◆ loadSkeleton()
|
static |
Build skeleton from the scene node hierarchy (depth-first).
- 备注
- Requires the model3d/Assimp bridge TU.
在文件 AnimImporterAssimp.cpp 第 63 行定义.
被这些函数引用 loadSkeletonFromModel().
◆ loadSkeletonFromModel()
|
static |
ModelData wrappers (AnimImporterModel.cpp; requires model3d).
在文件 AnimImporterModel.cpp 第 8 行定义.
引用了 loadSkeleton() , 以及 model.
被这些函数引用 eve::animation::Animation::newSkeletonFromModel() , 以及 eve::avatar::VrmRuntime::prepare().
该类的文档由以下文件生成:
- src/modules/animation/AnimImporter.h
- src/modules/animation/AnimImporter.cpp
- src/modules/animation/AnimImporterAssimp.cpp
- src/modules/animation/AnimImporterModel.cpp