Build independent clip poses without changing playback, events, root motion or skin caches. 更多...
#include <AnimInspection.h>
Public 成员函数 | |
| AnimInspectionBuilder (std::vector< AnimInspectionTime > times) | |
| Own an explicit schedule; validation happens atomically in build(). | |
| Result< std::vector< AnimInspectionFrame > > | build (const AnimClip &clip, const AnimSkeleton &skeleton, const AnimSkin &skin) const |
| Evaluate all requested poses into independent palettes or return a diagnostic. | |
详细描述
Build independent clip poses without changing playback, events, root motion or skin caches.
Times are explicit: callers resolve fps and looping before construction. Up to 16 samples, 4096 skeleton bones and 4096 skin joints. Clamped clip endpoints include the final pose even for a looping source clip. Root motion stays in the sampled pose; no graph, IK or procedural solver runs. @thread Owner thread with immutable inputs for the entire build; no callbacks or retained references. @lifetime The builder owns its schedule; returned frames own all data and survive source destruction.
在文件 AnimInspection.h 第 28 行定义.
构造及析构函数说明
◆ AnimInspectionBuilder()
|
explicit |
Own an explicit schedule; validation happens atomically in build().
在文件 AnimInspection.cpp 第 11 行定义.
成员函数说明
◆ build()
| Result< std::vector< AnimInspectionFrame > > eve::animation::AnimInspectionBuilder::build | ( | const AnimClip & | clip, |
| const AnimSkeleton & | skeleton, | ||
| const AnimSkin & | skin | ||
| ) | const |
Evaluate all requested poses into independent palettes or return a diagnostic.
- 参数
-
clip Borrowed clip, authored against the supplied skeleton's track indices. skeleton Borrowed skeleton; all skin joint indices and names must match it. skin Borrowed skin binding; its mutable palette and deformation caches remain unchanged.
- 返回
- Fully owning frames, or InvalidArgument for time, identity, size or finite-value violations. @cost Up to 16 pose evaluations plus joint matrix products per build; reuse the returned frames.
- 注解
- Same inputs are repeatable within a build; cross-platform float comparisons use tolerance.
在文件 AnimInspection.cpp 第 13 行定义.
引用了 bone, bones, clip, element, eve::Diagnostic::error(), eve::Result< T >::failure(), frame, eve::animation::Mat4::fromTRS(), eve::animation::AnimSkeleton::getBoneCount(), eve::animation::AnimSkin::getBoneCount(), eve::animation::AnimSkeleton::getBoneName(), eve::animation::AnimSkin::getInverseBindElement(), eve::animation::AnimSkin::getSkeletonBone(), eve::animation::AnimSkin::getSkinBoneName(), eve::animation::Mat4::identity(), eve::InvalidArgument, matrix, message, eve::animation::Mat4::mul(), pose, previous, eve::Result< T >::success(), time , 以及 value.
该类的文档由以下文件生成:
- src/modules/animation/AnimInspection.h
- src/modules/animation/AnimInspection.cpp