In AnimationRunTime Library, we extract animation data based on Skeleton hierarchy, not ref pose hierarchy.
更多...
|
|
static void | AccumulateAdditivePose (FCompactPose &BasePose, const FCompactPose &AdditivePose, FBlendedCurve &BaseCurve, const FBlendedCurve &AdditiveCurve, float Weight, enum EAdditiveAnimationType AdditiveType) |
| | Accumulate Additive Pose based on AdditiveType
|
| |
| static void | AccumulateLocalSpaceAdditivePose (FCompactPose &BasePose, const FCompactPose &AdditivePose, FBlendedCurve &BaseCurve, const FBlendedCurve &AdditiveCurve, float Weight) |
| | Accumulates weighted AdditivePose to BasePose. 更多...
|
| |
| static void | AccumulateMeshSpaceRotationAdditiveToLocalPose (FCompactPose &BasePose, const FCompactPose &MeshSpaceRotationAdditive, FBlendedCurve &BaseCurve, const FBlendedCurve &AdditiveCurve, float Weight) |
| | Accumulate a MeshSpaceRotation Additive pose to a local pose. 更多...
|
| |
| static ETypeAdvanceAnim | AdvanceTime (const bool &bAllowLooping, const float &MoveDelta, float &InOutTime, const float &EndTime) |
| | Advance CurrentTime to CurrentTime + MoveDelta. 更多...
|
| |
|
static void | AppendActiveMorphTargets (const USkeletalMesh *InSkeletalMesh, const TMap< FName, float > &InMorphCurveAnims, TArray< FActiveMorphTarget > &InOutActiveMorphTargets, TArray< float > &InOutMorphTargetWeights) |
| | Combine CurveKeys (that reference morph targets by name) and ActiveAnims (that reference morphs by reference) into the ActiveMorphTargets array.
|
| |
|
static void | ApplyWeightToTransform (const FBoneContainer &RequiredBones, FTransformArrayA2 &Atoms, float Weight) |
| | Apply Weight to the Transform Atoms = Weight * Atoms at the end
|
| |
| static void | BlendPosesPerBoneFilter (FCompactPose &BasePose, const TArray< FCompactPose > &BlendPoses, FBlendedCurve &BaseCurve, const TArray< FBlendedCurve > &BlendCurves, FCompactPose &OutPose, FBlendedCurve &OutCurve, TArray< FPerBoneBlendWeight > &BoneBlendWeights, EBlendPosesPerBoneFilterFlags blendFlags, enum ECurveBlendOption::Type CurveBlendOption) |
| | Blend Poses per bone weights : The BasePoses + BlendPoses(SourceIndex) * Blend Weights(BoneIndex) Please note BlendWeights are array, so you can define per bone base This supports multi per bone blending, but only one pose as blend at a time per track PerBoneBlendWeights.Num() == Atoms.Num() 更多...
|
| |
| static void | BlendPosesTogether (TArrayView< const FCompactPose > SourcePoses, TArrayView< const FBlendedCurve > SourceCurves, TArrayView< const float > SourceWeights, FCompactPose &ResultPose, FBlendedCurve &ResultCurve) |
| | Blends together a set of poses, each with a given weight. 更多...
|
| |
| static void | BlendPosesTogether (TArrayView< const FCompactPose > SourcePoses, TArrayView< const FBlendedCurve > SourceCurves, TArrayView< const float > SourceWeights, TArrayView< const int32 > SourceWeightsIndices, FCompactPose &ResultPose, FBlendedCurve &ResultCurve) |
| | Blends together a set of poses, each with a given weight. 更多...
|
| |
| static void | BlendPosesTogetherIndirect (TArrayView< const FCompactPose *const > SourcePoses, TArrayView< const FBlendedCurve *const > SourceCurves, TArrayView< const float > SourceWeights, FCompactPose &ResultPose, FBlendedCurve &ResultCurve) |
| | Blends together a set of poses, each with a given weight. 更多...
|
| |
| static void | BlendPosesTogetherPerBone (TArrayView< const FCompactPose > SourcePoses, TArrayView< const FBlendedCurve > SourceCurves, const IInterpolationIndexProvider *InterpolationIndexProvider, TArrayView< const FBlendSampleData > BlendSampleDataCache, FCompactPose &ResultPose, FBlendedCurve &ResultCurve) |
| | Blends together a set of poses, each with a given weight. 更多...
|
| |
| static void | BlendPosesTogetherPerBone (TArrayView< const FCompactPose > SourcePoses, TArrayView< const FBlendedCurve > SourceCurves, const IInterpolationIndexProvider *InterpolationIndexProvider, TArrayView< const FBlendSampleData > BlendSampleDataCache, TArrayView< const int32 > BlendSampleDataCacheIndices, FCompactPose &ResultPose, FBlendedCurve &ResultCurve) |
| | Blends together a set of poses, each with a given weight. 更多...
|
| |
| static void | BlendPosesTogetherPerBoneInMeshSpace (TArrayView< FCompactPose > SourcePoses, TArrayView< const FBlendedCurve > SourceCurves, const UBlendSpaceBase *BlendSpace, TArrayView< const FBlendSampleData > BlendSampleDataCache, FCompactPose &ResultPose, FBlendedCurve &ResultCurve) |
| | Blends together a set of poses, each with a given weight. 更多...
|
| |
| static void | BlendTransformsByWeight (FTransform &OutTransform, const TArray< FTransform > &Transforms, const TArray< float > &Weights) |
| | Blend Array of Transforms by weight 更多...
|
| |
| static void | BlendTwoPosesTogether (const FCompactPose &SourcePose1, const FCompactPose &SourcePose2, const FBlendedCurve &SourceCurve1, const FBlendedCurve &SourceCurve2, const float WeightOfPose1, FCompactPose &ResultPose, FBlendedCurve &ResultCurve) |
| | Blends together two poses. 更多...
|
| |
| static void | BlendTwoPosesTogetherPerBone (const FCompactPose &SourcePose1, const FCompactPose &SourcePose2, const FBlendedCurve &SourceCurve1, const FBlendedCurve &SourceCurve2, const TArray< float > &WeightsOfSource2, FCompactPose &ResultPose, FBlendedCurve &ResultCurve) |
| | Blends together a set of poses, each with a given weight. 更多...
|
| |
| static void | ConvertBoneSpaceTransformToCS (const FTransform &ComponentTransform, FCSPose< FCompactPose > &MeshBases, FTransform &InOutBoneSpaceTM, FCompactPoseBoneIndex BoneIndex, EBoneControlSpace Space) |
| | Convert a FTransform in a specified bone space to ComponentSpace. 更多...
|
| |
| static void | ConvertCSTransformToBoneSpace (const FTransform &ComponentTransform, FCSPose< FCompactPose > &MeshBases, FTransform &InOutCSBoneTM, FCompactPoseBoneIndex BoneIndex, EBoneControlSpace Space) |
| | Convert a ComponentSpace FTransform to specified bone space. 更多...
|
| |
| static void | ConvertMeshRotationPoseToLocalSpace (FCompactPose &Pose) |
| | Convert a MeshSpaceRotation pose to Local Space. 更多...
|
| |
|
static void | ConvertPoseToAdditive (FCompactPose &TargetPose, const FCompactPose &BasePose) |
| | Convert TargetPose into an AdditivePose, by doing TargetPose = TargetPose - BasePose
|
| |
| static void | ConvertPoseToMeshRotation (FCompactPose &LocalPose) |
| | Convert LocalPose into MeshSpaceRotations. 更多...
|
| |
|
static void | ConvertPoseToMeshSpace (const TArray< FTransform > &LocalTransforms, TArray< FTransform > &MeshSpaceTransforms, const FBoneContainer &RequiredBones) |
| | Convert LocalTransforms into MeshSpaceTransforms over RequiredBones.
|
| |
|
static void | ConvertTransformToAdditive (FTransform &TargetTrasnform, const FTransform &BaseTransform) |
| | convert transform to additive
|
| |
|
static void | CreateMaskWeights (TArray< FPerBoneBlendWeight > &BoneBlendWeights, const TArray< FInputBlendPose > &BlendFilters, const USkeleton *Skeleton) |
| | Create Mast Weight for skeleton joints, not per mesh or per required bones You'll have to filter properly with correct mesh joint or required boens The depth should not change based on LOD or mesh or skeleton They still should contain same depth
|
| |
| static void | EnsureParentsPresent (TArray< FBoneIndexType > &BoneIndices, const FReferenceSkeleton &RefSkeleton) |
| | Utility for taking an array of bone indices and ensuring that all parents are present (ie. 更多...
|
| |
|
static void | FillWithRefPose (TArray< FTransform > &OutAtoms, const FBoneContainer &RequiredBones) |
| | Fill ref pose
|
| |
|
static FTransform | GetComponentSpaceRefPose (const FCompactPoseBoneIndex &CompactPoseBoneIndex, const FBoneContainer &BoneContainer) |
| | Get Reference Component Space Transform
|
| |
| static const FTransform & | GetComponentSpaceTransformWithCache (const FReferenceSkeleton &InRefSkeleton, const TArray< FTransform > &InBoneSpaceTransforms, int32 BoneIndex, TArray< FTransform > &CachedTransforms, TArray< bool > &CachedTransformReady) |
| | Calculate the component-space bone transform for the specified bone. 更多...
|
| |
|
static void | GetKeyIndicesFromTime (int32 &OutKeyIndex1, int32 &OutKeyIndex2, float &OutAlpha, const float Time, const int32 NumFrames, const float SequenceLength) |
| | Get Key Indices (start/end with alpha from start) with input parameter Time, NumFrames from % from StartKeyIndex, meaning (CurrentKeyIndex(float)-StartKeyIndex)/(EndKeyIndex-StartKeyIndex) by this Start-End, it will be between 0-(NumFrames-1), not number of Pos/Rot key tracks
|
| |
| static int32 | GetStringDistance (const FString &First, const FString &Second) |
| | Calculate distance how close two strings are. 更多...
|
| |
| static void | LerpBoneTransforms (TArray< FTransform > &A, const TArray< FTransform > &B, float Alpha, const TArray< FBoneIndexType > &RequiredBonesArray) |
| | Lerp for BoneTransforms. 更多...
|
| |
| static void | LerpPoses (FCompactPose &PoseA, const FCompactPose &PoseB, FBlendedCurve &CurveA, const FBlendedCurve &CurveB, float Alpha) |
| | Lerp for FCompactPose. 更多...
|
| |
| static void | LerpPosesPerBone (FCompactPose &PoseA, const FCompactPose &PoseB, FBlendedCurve &CurveA, const FBlendedCurve &CurveB, float Alpha, const TArray< float > &PerBoneWeights) |
| | Lerp for FCompactPose. 更多...
|
| |
| static void | LerpPosesWithBoneIndexList (FCompactPose &PoseA, const FCompactPose &PoseB, FBlendedCurve &CurveA, const FBlendedCurve &CurveB, float Alpha, const TArray< FCompactPoseBoneIndex > &BoneIndices) |
| | Lerp for FCompactPose. 更多...
|
| |
| static void | RetargetBoneTransform (const USkeleton *MySkeleton, const FName &RetargetSource, FTransform &BoneTransform, const int32 SkeletonBoneIndex, const FCompactPoseBoneIndex &BoneIndex, const FBoneContainer &RequiredBones, const bool bIsBakedAdditive) |
| | Retarget a single bone transform, to apply right after extraction. 更多...
|
| |
In AnimationRunTime Library, we extract animation data based on Skeleton hierarchy, not ref pose hierarchy.
Ref pose will need to be re-mapped later