Settings and diagnostics for offline skeletal animation retargeting. 更多...
#include <AnimClip.h>
Public 成员函数 | |
| void | addBoneMapping (const std::string &sourceBone, const std::string &targetBone) |
| Map one source bone to one target bone; replaces an existing mapping for that target. | |
| void | clearBoneMappings () |
| Remove all explicit bone mappings. | |
| void | setNormalizedNameMatching (bool enabled) |
| Enable exact-then-normalized automatic bone-name matching. | |
| bool | getNormalizedNameMatching () const |
| Return whether normalized automatic bone-name matching is enabled. | |
| void | setRootBones (const std::string &sourceBone, const std::string &targetBone) |
| Select the source and target pelvis/root used for proportional translation. | |
| void | setAutoRootScale (bool enabled) |
| Enable automatic root translation scaling from skeleton extents. | |
| bool | getAutoRootScale () const |
| Return whether automatic root scaling is enabled. | |
| void | setRootTranslationScale (float horizontal, float vertical) |
| Set additional horizontal and vertical multipliers for root translation. | |
| float | getRootHorizontalScale () const |
| Return the additional horizontal root translation multiplier. | |
| float | getRootVerticalScale () const |
| Return the additional vertical root translation multiplier. | |
| void | setUseSkeletonSpaceRotation (bool enabled) |
| Choose skeleton-space Bind correction instead of legacy local-space correction. | |
| bool | getUseSkeletonSpaceRotation () const |
| Return whether skeleton-space rotation correction is enabled. | |
| void | setSkinnedInteractionPreserve (bool enabled) |
| Enable MeshRet-inspired skinned interaction preservation after FK retarget. | |
| bool | getSkinnedInteractionPreserve () const |
| Return whether skinned interaction preservation is enabled. | |
| void | setInteractionContactThreshold (float distance) |
| Absolute source-space distance below which a sensor pair counts as interacting. Values <= 0 select 8% of the source skeleton extent. | |
| float | getInteractionContactThreshold () const |
| Return the configured interaction contact threshold (0 = auto). | |
| void | setInteractionCorrectionWeight (float weight) |
| Blend weight [0,1] applied to interaction IK corrections. | |
| float | getInteractionCorrectionWeight () const |
| Return the interaction IK blend weight. | |
| void | addInteractionIkChain (const std::string &rootBone, const std::string &midBone, const std::string &tipBone) |
| Register a two-bone IK chain used to realize tip-sensor corrections. | |
| void | clearInteractionIkChains () |
| Remove all explicitly registered interaction IK chains (auto-detect remains). | |
| int | getInteractionCorrectionCount () const |
| Number of frames that received at least one interaction IK correction last retarget. | |
| void | setNeuralModelPath (const std::string &path) |
| Filesystem path to a MeshRet-compatible ONNX model for neural skinned retarget. Empty path selects the builtin tensor MeshRet graph when animation_tensor is loaded. | |
| const std::string & | getNeuralModelPath () const |
| Return the configured neural model path (may be empty). | |
| void | setNeuralRetargetEnabled (bool enabled) |
| Prefer neural MeshRet inference when animation_tensor provides ISmrNeuralRetarget. Classical two-bone IK remains the active path when the provider is absent or not ready. | |
| bool | getNeuralRetargetEnabled () const |
| Return whether neural retarget is preferred when a provider is available. | |
| void | setNeuralBackend (const std::string &backend) |
| Backend hint: "auto" (default), "onnx", or "tensor". Unknown values are treated as "auto". | |
| const std::string & | getNeuralBackend () const |
| Return the neural backend hint. | |
| int | getNeuralInferenceCount () const |
| Non-zero when the last retarget used the neural MeshRet path. | |
| int | getMatchedBoneCount () const |
| Number of target bones mapped by the most recent retarget operation. | |
| int | getUnmatchedBoneCount () const |
| Number of target bones left at bind pose by the most recent operation. | |
| std::string | getUnmatchedTargetBone (int index) const |
| Name of an unmatched target bone, or empty for an invalid index. | |
友元 | |
| class | AnimClip |
| int | smrRefineRetargetedClip (const AnimClip &, AnimClip &, const AnimSkeleton *, const AnimSkeleton *, AnimRetargetProfile &) |
| Refine an FK-retargeted clip so source body-part proximity/contact is preserved on the target. | |
详细描述
Settings and diagnostics for offline skeletal animation retargeting.
Explicit bone mappings take precedence over automatic matching. Automatic matching first tries the exact name, then a normalized name with namespaces, punctuation and case removed (for example mixamorig:Hips matches hips). Script type: AnimRetargetProfile.
在文件 AnimClip.h 第 27 行定义.
成员函数说明
◆ addBoneMapping()
| void eve::animation::AnimRetargetProfile::addBoneMapping | ( | const std::string & | sourceBone, |
| const std::string & | targetBone | ||
| ) |
Map one source bone to one target bone; replaces an existing mapping for that target.
在文件 AnimClip.cpp 第 684 行定义.
◆ addInteractionIkChain()
| void eve::animation::AnimRetargetProfile::addInteractionIkChain | ( | const std::string & | rootBone, |
| const std::string & | midBone, | ||
| const std::string & | tipBone | ||
| ) |
Register a two-bone IK chain used to realize tip-sensor corrections.
在文件 AnimClip.cpp 第 726 行定义.
◆ clearBoneMappings()
| void eve::animation::AnimRetargetProfile::clearBoneMappings | ( | ) |
Remove all explicit bone mappings.
在文件 AnimClip.cpp 第 696 行定义.
◆ clearInteractionIkChains()
| void eve::animation::AnimRetargetProfile::clearInteractionIkChains | ( | ) |
Remove all explicitly registered interaction IK chains (auto-detect remains).
在文件 AnimClip.cpp 第 733 行定义.
◆ getAutoRootScale()
|
inline |
Return whether automatic root scaling is enabled.
在文件 AnimClip.h 第 43 行定义.
◆ getInteractionContactThreshold()
|
inline |
Return the configured interaction contact threshold (0 = auto).
在文件 AnimClip.h 第 70 行定义.
◆ getInteractionCorrectionCount()
|
inline |
Number of frames that received at least one interaction IK correction last retarget.
在文件 AnimClip.h 第 80 行定义.
◆ getInteractionCorrectionWeight()
|
inline |
Return the interaction IK blend weight.
在文件 AnimClip.h 第 74 行定义.
◆ getMatchedBoneCount()
|
inline |
Number of target bones mapped by the most recent retarget operation.
在文件 AnimClip.h 第 107 行定义.
◆ getNeuralBackend()
|
inline |
Return the neural backend hint.
在文件 AnimClip.h 第 102 行定义.
被这些函数引用 eve::animation::exposeAnimClipBindings() , 以及 eve::animation::SmrNeuralProvider::isReady().
◆ getNeuralInferenceCount()
|
inline |
Non-zero when the last retarget used the neural MeshRet path.
在文件 AnimClip.h 第 104 行定义.
◆ getNeuralModelPath()
|
inline |
Return the configured neural model path (may be empty).
在文件 AnimClip.h 第 88 行定义.
被这些函数引用 eve::animation::exposeAnimClipBindings() , 以及 eve::animation::SmrNeuralProvider::isReady().
◆ getNeuralRetargetEnabled()
|
inline |
Return whether neural retarget is preferred when a provider is available.
在文件 AnimClip.h 第 95 行定义.
被这些函数引用 eve::animation::exposeAnimClipBindings() , 以及 eve::animation::SmrNeuralProvider::isReady().
◆ getNormalizedNameMatching()
|
inline |
Return whether normalized automatic bone-name matching is enabled.
在文件 AnimClip.h 第 36 行定义.
◆ getRootHorizontalScale()
|
inline |
Return the additional horizontal root translation multiplier.
在文件 AnimClip.h 第 47 行定义.
◆ getRootVerticalScale()
|
inline |
Return the additional vertical root translation multiplier.
在文件 AnimClip.h 第 49 行定义.
◆ getSkinnedInteractionPreserve()
|
inline |
Return whether skinned interaction preservation is enabled.
在文件 AnimClip.h 第 63 行定义.
◆ getUnmatchedBoneCount()
|
inline |
Number of target bones left at bind pose by the most recent operation.
在文件 AnimClip.h 第 109 行定义.
被这些函数引用 eve::animation::exposeAnimClipBindings() , 以及 getUnmatchedTargetBone().
◆ getUnmatchedTargetBone()
| std::string eve::animation::AnimRetargetProfile::getUnmatchedTargetBone | ( | int | index | ) | const |
Name of an unmatched target bone, or empty for an invalid index.
在文件 AnimClip.cpp 第 710 行定义.
引用了 getUnmatchedBoneCount() , 以及 index.
◆ getUseSkeletonSpaceRotation()
|
inline |
Return whether skeleton-space rotation correction is enabled.
在文件 AnimClip.h 第 53 行定义.
◆ setAutoRootScale()
|
inline |
Enable automatic root translation scaling from skeleton extents.
在文件 AnimClip.h 第 41 行定义.
引用了 enabled.
◆ setInteractionContactThreshold()
| void eve::animation::AnimRetargetProfile::setInteractionContactThreshold | ( | float | distance | ) |
Absolute source-space distance below which a sensor pair counts as interacting. Values <= 0 select 8% of the source skeleton extent.
在文件 AnimClip.cpp 第 715 行定义.
引用了 distance.
◆ setInteractionCorrectionWeight()
| void eve::animation::AnimRetargetProfile::setInteractionCorrectionWeight | ( | float | weight | ) |
◆ setNeuralBackend()
|
inline |
Backend hint: "auto" (default), "onnx", or "tensor". Unknown values are treated as "auto".
在文件 AnimClip.h 第 100 行定义.
◆ setNeuralModelPath()
|
inline |
Filesystem path to a MeshRet-compatible ONNX model for neural skinned retarget. Empty path selects the builtin tensor MeshRet graph when animation_tensor is loaded.
在文件 AnimClip.h 第 86 行定义.
引用了 path.
◆ setNeuralRetargetEnabled()
|
inline |
Prefer neural MeshRet inference when animation_tensor provides ISmrNeuralRetarget. Classical two-bone IK remains the active path when the provider is absent or not ready.
在文件 AnimClip.h 第 93 行定义.
引用了 enabled.
◆ setNormalizedNameMatching()
|
inline |
◆ setRootBones()
| void eve::animation::AnimRetargetProfile::setRootBones | ( | const std::string & | sourceBone, |
| const std::string & | targetBone | ||
| ) |
Select the source and target pelvis/root used for proportional translation.
在文件 AnimClip.cpp 第 698 行定义.
◆ setRootTranslationScale()
| void eve::animation::AnimRetargetProfile::setRootTranslationScale | ( | float | horizontal, |
| float | vertical | ||
| ) |
Set additional horizontal and vertical multipliers for root translation.
在文件 AnimClip.cpp 第 703 行定义.
◆ setSkinnedInteractionPreserve()
|
inline |
Enable MeshRet-inspired skinned interaction preservation after FK retarget.
When enabled, close body-part sensor pairs on the source are recreated on the target via two-bone IK (classical DMI stand-in; no neural weights).
在文件 AnimClip.h 第 61 行定义.
引用了 enabled.
◆ setUseSkeletonSpaceRotation()
|
inline |
Choose skeleton-space Bind correction instead of legacy local-space correction.
在文件 AnimClip.h 第 51 行定义.
引用了 enabled.
友元及相关函数文档
◆ AnimClip
|
friend |
在文件 AnimClip.h 第 114 行定义.
◆ smrRefineRetargetedClip
|
friend |
Refine an FK-retargeted clip so source body-part proximity/contact is preserved on the target.
Classical stand-in for MeshRet's DMI alignment: detect close sensor pairs on the source, map them to the target, and pull tip bones with two-bone IK. Returns the number of frames that received at least one chain correction.
- 异常
-
Exception on null skeleton arguments. @thread Owner thread; not re-entrant on the same targetClip.
在文件 AnimSmr.cpp 第 344 行定义.
该类的文档由以下文件生成:
- src/modules/animation/AnimClip.h
- src/modules/animation/AnimClip.cpp