# Data Driven Animation

**URL:** <https://forums.unrealengine.com/t/data-driven-animation/244966>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [August 11, 2021, 3:51am UTC](https://forums.unrealengine.com/t/data-driven-animation/244966 "2021-08-11T03:51:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![windnanzi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@windnanzi](https://forums.unrealengine.com/u/windnanzi)\
**Post date:** [August 11, 2021, 3:51am UTC](https://forums.unrealengine.com/t/data-driven-animation/244966/1 "2021-08-11T03:51:16Z")

</div>

Hi, I recently moved from unity to ue4 and I am doing research on data driven animation. basically, it is manipulating bone transform through given data [position, rotation etc].

This is a link similar to what i attempt to do but it is implmenting in unity.

> **[AI4Animation/AI4Animation/SIGGRAPH\_Asia\_2019 at master ·...](https://github.com/sebastianstarke/AI4Animation/tree/master/AI4Animation/SIGGRAPH_Asia_2019)**
>
> master/AI4Animation/SIGGRAPH\_Asia\_2019

I know there is two way to modify bone. 1. through animBP. 2. through uposablemeshcomponent

For last few weeks, I tried UPoseableMeshComponent to control bone by given rotation [tried assign FQaut and FVector(Euler)] through parsing bvh files. But the result is not i expected.  
this is what i got.  
 ![demo10](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/1/f159afecf3b8961614b5a4c8cbf5ba54f4548ca3.gif)

this is what it should look like in blender  
 ![demo9](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/5/f56abca9ea78f58a5be5f2d7f404446a87ba1cad.gif)

I feel despair cause i been stuck on this for almost a month. The result seem partly right but I believe there is a better way to solve this. I really need an working example that can show me the correct path for manipulating bones. Any advice would be appreciated.  
Thanks!

---

<div class="post-metadata">

**Author:** ![Rasie1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rasie1/32/88710_2.png) [@Rasie1](https://forums.unrealengine.com/u/Rasie1)\
**Post date:** [August 11, 2021, 11:43am UTC](https://forums.unrealengine.com/t/data-driven-animation/244966/2 "2021-08-11T11:43:51Z")

</div>

It’s kind of difficult to jump in your question quickly, but if you’re using standard animation assets (like, in fbx files), then, possibly, root motion settings in animation blueprint or/and animaiton asset can help you

---

<div class="post-metadata">

**Author:** ![windnanzi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@windnanzi](https://forums.unrealengine.com/u/windnanzi)\
**Post date:** [August 12, 2021, 12:34pm UTC](https://forums.unrealengine.com/t/data-driven-animation/244966/3 "2021-08-12T12:34:58Z")

</div>

Thanks for the advise. I did try to import a fbx motion into unreal and mark all bone’s rotation value in each frame. Then export the result as text file and read it again from another unreal editor.

This is the original motion like  
 ![upload-demo-originalmotion](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/5/f5d332559ca0a696a6701a07dc333f29dae6b0cd.gif)

This is my result read from other unreal editor  
 ![upload-demo-myresult](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/9/593a348148d8577a6b6525aa32aec0bcb6fbfda7.gif)

I can tell i am close to the answer, but there are some axis conversion i could not figure it out

---

<div class="post-metadata">

**Author:** ![windnanzi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@windnanzi](https://forums.unrealengine.com/u/windnanzi)\
**Post date:** [August 26, 2021, 6:59am UTC](https://forums.unrealengine.com/t/data-driven-animation/244966/4 "2021-08-26T06:59:14Z")

</div>

I solved this questions. It turns out to be something really stupid. If your trying to parse bvh files. When dealing with euler rotation in bvh, you need to convert angle in bvh to radius when using this function FQuat(FVector::RightVector, (angle) \* PI / 180.0) !!! this bug took me two weeks to find out, and solved in 1 minute!!!

---

<div class="post-metadata">

**Author:** ![Dutii](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dutii](https://forums.unrealengine.com/u/Dutii)\
**Post date:** [August 26, 2021, 7:34am UTC](https://forums.unrealengine.com/t/data-driven-animation/244966/5 "2021-08-26T07:34:36Z")

</div>

Sometimes it takes 2 weeks to write a line of code, but you got it done. Hopefully someone will see this in the future and maybe you can save them 2 weeks of head scratching.

---

<div class="post-metadata">

**Author:** ![MartinEddyIT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MartinEddyIT](https://forums.unrealengine.com/u/MartinEddyIT)\
**Post date:** [July 7, 2023, 10:55am UTC](https://forums.unrealengine.com/t/data-driven-animation/244966/6 "2023-07-07T10:55:58Z")

</div>

Im trying to convert the quadraped one from the 2022 paper to unreal, if you could throw any things you have figured out along the way please swing them!
