For example in cutscenes, the users use FBoneContainer::SetDisableRetargeting to temporarily use a specific shared animation without retargeting. But the function does not work correctly.
We can fix this issue by the following code. Or we can solve their problem if they can change TranslationRetargeting dynamically for each character.
void DecompressPose(FCompactPose& OutPose, const FCompressedAnimSequence& CompressedData, const FAnimExtractContext& ExtractionContext, USkeleton* SourceSkeleton, float SequenceLength, EAnimInterpolationType Interpolation, bool bIsBakedAdditive, const TArray<FTransform>& RetargetTransforms, FName SourceName, const FRootMotionReset& RootMotionReset) { ... if (CompactPoseBoneIndex != INDEX_NONE) { RotationScalePairs.Add(BoneTrackPair(CompactPoseBoneIndex, TrackIndex)); // edit begin // Skip extracting translation component for EBoneTranslationRetargetingMode::Skeleton. //switch (TargetSkeleton->GetBoneTranslationRetargetingMode(TargetSkeletonBoneIndex)) EBoneTranslationRetargetingMode::Type Mode = RequiredBones.GetDisableRetargeting() ? EBoneTranslationRetargetingMode::Type::Animation : TargetSkeleton->GetBoneTranslationRetargetingMode(TargetSkeletonBoneIndex); switch(Mode) // edit end { case EBoneTranslationRetargetingMode::Animation: TranslationPairs.Add(BoneTrackPair(CompactPoseBoneIndex, TrackIndex)); break; ... }
With the checkbox set, the pose of the character has to be identical to the animation pose (i.e. hair not getting inside the head).
With the check box off, the pose will change from the animation pose and the hair will go inside the head.
result : The pose has the hair inside the head, with and without the check box
I have added two srreen shots showing the difference when it is working and when it is not
I am not able to find world outliner how to enable it?
How can i modify the param name in EQS node
Undefined sysmbol: typeinfo for AActor when cross-compile linux dedicated server on windows
Why does the system plugin 'UnrealBuildTool' error could not be found when the project is compiled?
How to achieve HLSL Multiple Render Target in Material blueprints?
Delay nodes occasionally don't fire the "Completed" output in a nativized build
When I open UE4 4.24.3 it appears that. Does anyone know how to solve?
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-173282 in the post.
0 |
Component | UE - Anim - Runtime |
---|---|
Affects Versions | 5.0, 5.1 |
Target Fix | 5.2 |
Fix Commit | 24077870 |
---|
Created | Jan 4, 2023 |
---|---|
Resolved | Feb 13, 2023 |
Updated | Apr 29, 2023 |