# About model animation

**URL:** <https://forum.babylonjs.com/t/about-model-animation/26502>\
**Category:** Questions\
**Created:** [January 6, 2022, 7:28am UTC](https://forum.babylonjs.com/t/about-model-animation/26502 "2022-01-06T07:28:21Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![yi\_jin](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/yi_jin/32/20881_2.png) [@yi\_jin](https://forum.babylonjs.com/u/yi_jin)\
**Post date:** [January 6, 2022, 7:28am UTC](https://forum.babylonjs.com/t/about-model-animation/26502/1 "2022-01-06T07:28:21Z")

</div>

I want to try facial animation in sandbox.But I’m having a bit of a problem and I can’t tell which part is wrong.First, I added a bone to the model’s mouth in 3dsmax, then did a simple animation to make her mouth stand out and recover, and then panned the overall model to the left. Next, I used the 3dsmax exporter to convert the format to glb and import it into sandbox. Finally, in sandbox, I can only see the overall model panning, but not the mouth animation I made. I would like to ask if it is a problem with the export tool settings or the glb format or something else unknown?

 ![微信截图_20220106150148](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/3/6/365b85ee6130f143b8988a82e3ad39475bed3b80.jpeg)

Thanks for your browsing!

 ![微信截图_20220106150211](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/4/0/4085b012cf140634dac923f6eb59e1240d6b0597.png)  
 ![微信截图_20220106150227](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/8/3/83f5caf9c248d261fd26a3363b46e6eaa84b4a52.jpeg)  
Uploading: 微信截图\_20220106150234.png…

---

<div class="post-metadata">

**Author:** ![yi\_jin](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/yi_jin/32/20881_2.png) [@yi\_jin](https://forum.babylonjs.com/u/yi_jin)\
**Post date:** [January 6, 2022, 7:30am UTC](https://forum.babylonjs.com/t/about-model-animation/26502/3 "2022-01-06T07:30:34Z")

</div>

Sorry, I forgot a picture

 ![微信截图_20220106150234](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/8/8/88d10f13f530c4956833245a995be68ed8d77a7d.jpeg)

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [January 6, 2022, 9:26am UTC](https://forum.babylonjs.com/t/about-model-animation/26502/4 "2022-01-06T09:26:56Z")

</div>

@Guillaume_Pelletier could definitely help with this, but it would be great if you could share your max file for him to have a look

---

<div class="post-metadata">

**Author:** ![yi\_jin](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/yi_jin/32/20881_2.png) [@yi\_jin](https://forum.babylonjs.com/u/yi_jin)\
**Post date:** [January 6, 2022, 10:25am UTC](https://forum.babylonjs.com/t/about-model-animation/26502/5 "2022-01-06T10:25:32Z")

</div>

Sure, my MAX is the 2019 version, FBX I converted to the 2015 version and I packed them in a zip file.Thank you for your advice~  
[test.zip](https://forum.babylonjs.com/uploads/short-url/wHoeXRcRKsIiPbhq2VTfYwALxMD.zip) (675.5 KB)

---

<div class="post-metadata">

**Author:** ![Guillaume\_Pelletier](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/guillaume_pelletier/32/3695_2.png) [@Guillaume\_Pelletier](https://forum.babylonjs.com/u/Guillaume_Pelletier)\
**Post date:** [January 6, 2022, 11:27am UTC](https://forum.babylonjs.com/t/about-model-animation/26502/6 "2022-01-06T11:27:32Z")

</div>

Hello,  
Seem it’s a problem with the exporter. Animation are correct when exported with the Babylon format, but work partially when the object is skinned and exported as GLTF/GLB. I will have a look on it.  
(Edit 1) - For the bones, and the Babylon format, the matricesIndices and matricesWeight are clearly in cause here. And Because GLTF export is based on primary Babylon export, if the first is wrong then the other will suffer from similar issues

---

<div class="post-metadata">

**Author:** ![yi\_jin](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/yi_jin/32/20881_2.png) [@yi\_jin](https://forum.babylonjs.com/u/yi_jin)\
**Post date:** [January 7, 2022, 12:53am UTC](https://forum.babylonjs.com/t/about-model-animation/26502/7 "2022-01-07T00:53:59Z")

</div>

Sorry for the time difference reason only now reply to you.Do you mean I should upgrade my exporter to the highest version? I’m sorry I don’t know if I understand correctly, or is this a bug?I just tried exporting in babylon format and the animation is only panning to the left without the mouth animation

---

<div class="post-metadata">

**Author:** ![yi\_jin](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/yi_jin/32/20881_2.png) [@yi\_jin](https://forum.babylonjs.com/u/yi_jin)\
**Post date:** [January 7, 2022, 4:00am UTC](https://forum.babylonjs.com/t/about-model-animation/26502/8 "2022-01-07T04:00:12Z")

</div>

I still have a question when I put the model on mixamo, he also automatically processed the model skin, using the same exporter, why the model is normally animated in the sandbox at this time.

---

<div class="post-metadata">

**Author:** ![yi\_jin](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/yi_jin/32/20881_2.png) [@yi\_jin](https://forum.babylonjs.com/u/yi_jin)\
**Post date:** [January 7, 2022, 7:31am UTC](https://forum.babylonjs.com/t/about-model-animation/26502/9 "2022-01-07T07:31:19Z")

</div>

I seem to have accidentally succeeded in solving this problem, I used morpher in 3dsmax, then converted to FBX to blender and then exported glb, then there is animation in sandbox, but I exported this max file directly through exporter and there is no animation 。。。。。

---

<div class="post-metadata">

**Author:** ![Guillaume\_Pelletier](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/guillaume_pelletier/32/3695_2.png) [@Guillaume\_Pelletier](https://forum.babylonjs.com/u/Guillaume_Pelletier)\
**Post date:** [January 7, 2022, 11:27am UTC](https://forum.babylonjs.com/t/about-model-animation/26502/10 "2022-01-07T11:27:41Z")

</div>

Hey @yi_jin  
Thanks for the infos. It seem there is an issue into the exporter which is bind the bone to the **whole** mesh, then prevent any animation to visually occur.  
I will investigate further.  
Happy to hear you find a workarround, but stay tuned, we gona fix it soon.  
-G.

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [February 4, 2022, 5:11pm UTC](https://forum.babylonjs.com/t/about-model-animation/26502/11 "2022-02-04T17:11:10Z")

</div>

Hi @Guillaume_Pelletier just checking in, has the fix already been merged?

---

<div class="post-metadata">

**Author:** ![Guillaume\_Pelletier](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/guillaume_pelletier/32/3695_2.png) [@Guillaume\_Pelletier](https://forum.babylonjs.com/u/Guillaume_Pelletier)\
**Post date:** [February 4, 2022, 5:59pm UTC](https://forum.babylonjs.com/t/about-model-animation/26502/12 "2022-02-04T17:59:47Z")

</div>

I did not, just fix others issues with the last merge.

---

<div class="post-metadata">

**Author:** ![Guillaume\_Pelletier](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/guillaume_pelletier/32/3695_2.png) [@Guillaume\_Pelletier](https://forum.babylonjs.com/u/Guillaume_Pelletier)\
**Post date:** [February 7, 2022, 10:03am UTC](https://forum.babylonjs.com/t/about-model-animation/26502/13 "2022-02-07T10:03:38Z")

</div>

Hello guy’s,  
I had time tis WE to have a look. Whats hapening here is a comon behavior when a mesh has a skeleton with ONE bone only. Consequently there is no fallback to mesh bone indices (such 0) to define a NO influenced vertices. Both in Babylon format and GLTF. You may add a root bone at the origin to overcome this difference between autodesk skin engine and Babylon/GLTF.  
We understand that sometime you may not have the hand on the model, so we may think of giving the option to do this at export time, but not in the pipe right now.  
G.

---

<div class="post-metadata">

**Author:** ![yi\_jin](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/yi_jin/32/20881_2.png) [@yi\_jin](https://forum.babylonjs.com/u/yi_jin)\
**Post date:** [February 9, 2022, 1:20am UTC](https://forum.babylonjs.com/t/about-model-animation/26502/14 "2022-02-09T01:20:07Z")

</div>

I just tried it and when I set multiple bones the animation worked, thanks~
