x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to get Pose information of an AnimationSequence

Hi,

I want to save pose information i.e, the location of each bone of a skeletal mesh while it's playing an animation sequence during runtime. About this I searched everywhere but not fruit. One way is to Save PoseSnapshot of an anim instance. And from the output Snapshot i can extract LocalTransforms which is completely inaccurate. LocalTransforms of each bone is off some random distance. I displayed local transforms on the screen along with the character as well as world location (fyi I used TransformFromBoneSpace function to convert transforms from local to world space) of each local transform in below images. Please check. LocalTransforms in SnapshotPose struct always contain some offset. alt text - How do I fix this? - Is there any alternative to achieve this? - Why the bone locations are little extruded outwards from their original position?

Product Version: UE 4.21
Tags:
more ▼

asked Mar 07 '19 at 10:10 AM in Blueprint Scripting

avatar image

Vinayaka_P
16 3 7

avatar image Vinayaka_P Mar 07 '19 at 10:11 AM

fyi, in images above i didn't use animations to keep things simple.

avatar image Vinayaka_P Mar 08 '19 at 04:54 AM

alt text I want this exact function in C++. Can someone help me finding this in engine source code?

stefani-bones.png (833.3 kB)
avatar image bad-wulf Mar 08 '19 at 10:55 PM

I haven't tried this and don't know if this is already built. The local transforms are likely going to be with respect to their parent bone. So for example to get the world transform of the hand you chain the transforms from the hand back to the root bone. This means multiplying the transforms in a chain from child to parent for any given bone you want the transform of in world coordinates.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Thanks bad-wulf for your response, your explaination makes sense.

GetSocketLocation given the name of socket/bone gives me perfect world location.....

more ▼

answered Mar 12 '19 at 04:26 AM

avatar image

Vinayaka_P
16 3 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question