载入中...
搜索中...
未找到
AnimClip.h
浏览该文件的文档.
76 void addInteractionIkChain(const std::string& rootBone, const std::string& midBone, const std::string& tipBone);
115 friend int smrRefineRetargetedClip(const AnimClip&, AnimClip&, const AnimSkeleton*, const AnimSkeleton*,
184 bool setRotationKey(int boneIndex, int keyIndex, float time, float x, float y, float z, float w);
223 [[nodiscard]] eve::Result<void> validateNotifyContract(const std::vector<std::string>& requiredNames) const;
292 int compress(float positionError = 0.001f, float rotationErrorDegrees = 0.1f, float scaleError = 0.001f);
299 AnimClip* retarget(const AnimSkeleton* sourceSkeleton, const AnimSkeleton* targetSkeleton) const;
307 AnimClip* retargetWithProfile(const AnimSkeleton* sourceSkeleton, const AnimSkeleton* targetSkeleton,
332 void collectEvents(float previousTime, float currentTime, bool loop, std::vector<std::string>& out) const;
363 static void sampleVec3(const std::vector<Vec3Key>& keys, float time, float& x, float& y, float& z, bool& ok);
Move-only, checked operation results for the common layer.
Keyframed skeletal animation clip (local TRS tracks per bone). Script type: AnimClip.
Definition AnimClip.h:145
int getSyncMarkerCount() const
Return the number of locomotion sync markers.
Definition AnimClip.h:232
int getTrackCount() const
Return the number of allocated bone tracks, including empty tracks.
Definition AnimClip.h:196
AnimClip & operator=(const AnimClip &)=delete
AnimClip(const AnimClip &)=delete
Single-clip (or cross-fading) 3D animation player. Script type: AnimPlayer.
Definition AnimPlayer.h:30
Evaluated local (and optional world) pose for an AnimSkeleton. Script type: AnimPose.
Definition AnimPose.h:17
Settings and diagnostics for offline skeletal animation retargeting.
Definition AnimClip.h:27
const std::string & getNeuralBackend() const
Return the neural backend hint.
Definition AnimClip.h:102
float getInteractionContactThreshold() const
Return the configured interaction contact threshold (0 = auto).
Definition AnimClip.h:70
int getNeuralInferenceCount() const
Non-zero when the last retarget used the neural MeshRet path.
Definition AnimClip.h:104
void setNeuralRetargetEnabled(bool enabled)
Prefer neural MeshRet inference when animation_tensor provides ISmrNeuralRetarget....
Definition AnimClip.h:93
void setUseSkeletonSpaceRotation(bool enabled)
Choose skeleton-space Bind correction instead of legacy local-space correction.
Definition AnimClip.h:51
const std::string & getNeuralModelPath() const
Return the configured neural model path (may be empty).
Definition AnimClip.h:88
int getInteractionCorrectionCount() const
Number of frames that received at least one interaction IK correction last retarget.
Definition AnimClip.h:80
float getRootVerticalScale() const
Return the additional vertical root translation multiplier.
Definition AnimClip.h:49
int getUnmatchedBoneCount() const
Number of target bones left at bind pose by the most recent operation.
Definition AnimClip.h:109
void setSkinnedInteractionPreserve(bool enabled)
Enable MeshRet-inspired skinned interaction preservation after FK retarget.
Definition AnimClip.h:61
bool getUseSkeletonSpaceRotation() const
Return whether skeleton-space rotation correction is enabled.
Definition AnimClip.h:53
bool getAutoRootScale() const
Return whether automatic root scaling is enabled.
Definition AnimClip.h:43
float getRootHorizontalScale() const
Return the additional horizontal root translation multiplier.
Definition AnimClip.h:47
bool getNeuralRetargetEnabled() const
Return whether neural retarget is preferred when a provider is available.
Definition AnimClip.h:95
void setAutoRootScale(bool enabled)
Enable automatic root translation scaling from skeleton extents.
Definition AnimClip.h:41
int getMatchedBoneCount() const
Number of target bones mapped by the most recent retarget operation.
Definition AnimClip.h:107
void setNeuralModelPath(const std::string &path)
Filesystem path to a MeshRet-compatible ONNX model for neural skinned retarget. Empty path selects th...
Definition AnimClip.h:86
void setNormalizedNameMatching(bool enabled)
Enable exact-then-normalized automatic bone-name matching.
Definition AnimClip.h:34
bool getSkinnedInteractionPreserve() const
Return whether skinned interaction preservation is enabled.
Definition AnimClip.h:63
float getInteractionCorrectionWeight() const
Return the interaction IK blend weight.
Definition AnimClip.h:74
bool getNormalizedNameMatching() const
Return whether normalized automatic bone-name matching is enabled.
Definition AnimClip.h:36
void setNeuralBackend(const std::string &backend)
Backend hint: "auto" (default), "onnx", or "tensor". Unknown values are treated as "auto".
Definition AnimClip.h:100
3D bone hierarchy + bind-pose local TRS for skeletal animation. Independent of ik::Skeleton3D (FABRIK...
Definition AnimSkeleton.h:16
Baked motion-matching feature database from one or more AnimClips. Feature layout per frame: [0....
Definition MotionDatabase.h:39
Definition Animation.cpp:58
int smrRefineRetargetedClip(const AnimClip &sourceClip, AnimClip &targetClip, const AnimSkeleton *sourceSkeleton, const AnimSkeleton *targetSkeleton, AnimRetargetProfile &profile)
Refine an FK-retargeted clip so source body-part proximity/contact is preserved on the target.
Definition AnimSmr.cpp:344