# Camera animation messed up using glTF from Blender

**URL:** <https://forum.babylonjs.com/t/camera-animation-messed-up-using-gltf-from-blender/11426>\
**Category:** Content creation (3dsMax, Maya, Blender, glTF)\
**Created:** [June 4, 2020, 12:59pm UTC](https://forum.babylonjs.com/t/camera-animation-messed-up-using-gltf-from-blender/11426 "2020-06-04T12:59:13Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![imperator](https://avatars.discourse-cdn.com/v4/letter/i/76d3ee/32.png) [@imperator](https://forum.babylonjs.com/u/imperator)\
**Post date:** [June 4, 2020, 12:59pm UTC](https://forum.babylonjs.com/t/camera-animation-messed-up-using-gltf-from-blender/11426/1 "2020-06-04T12:59:13Z")

</div>

Hi,

I just changed my whole workflow from Vectary to Blender now 😉

I have serious issues in camera animation and I think this is Babylon.js glTF importer related:  
[https://playground.babylonjs.com/#DEMHZ7#1](https://playground.babylonjs.com/#DEMHZ7#1)

- camera is mirrored

- several faces are missing in scene (e.g. the floor at the end)

Also camera FOV is not animated but that is not supported by glTF exporter anyway - I will do this in Babylon.js.

I guess these two problems are connected with glTF import in Babylon.js because I tried another glTF viewer and there it was correct.

Screenshot in Blender:

 ![blender](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/0/0e5ceb8a342cd7e8e637eb831c43937716093743.jpeg)

Thank you!

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [June 4, 2020, 4:58pm UTC](https://forum.babylonjs.com/t/camera-animation-messed-up-using-gltf-from-blender/11426/2 "2020-06-04T16:58:31Z")

</div>

Pinging @PirateJC

---

<div class="post-metadata">

**Author:** ![PirateJC](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/piratejc/32/1003_2.png) [@PirateJC](https://forum.babylonjs.com/u/PirateJC)\
**Post date:** [June 4, 2020, 5:05pm UTC](https://forum.babylonjs.com/t/camera-animation-messed-up-using-gltf-from-blender/11426/3 "2020-06-04T17:05:43Z")

</div>

Hey @imperator - It looks to me like it might be handedness issue, possibly a messed up scale in the export/import.

Couple of questions for you.

Would it be possible for you to share your blender file to help troubleshoot?

Also, what glTF exporter are you using for Blender? Are you using the one that’s built into the export menu of 2.8+ or are you using the [Blender to Babylon](https://github.com/BabylonJS/BlenderExporter) exporter?

Thanks!

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [June 4, 2020, 7:15pm UTC](https://forum.babylonjs.com/t/camera-animation-messed-up-using-gltf-from-blender/11426/4 "2020-06-04T19:15:10Z")

</div>

> [@PirateJC](#):
>
> Also, what glTF exporter are you using for Blender?

The glTF file says “Khronos glTF Blender I/O v1.1.22”

> [@imperator](#):
>
> tried another glTF viewer and there it was correct

I tried the GLB in [Don’s glTF Viewer](https://gltf-viewer.donmccurdy.com/) and it does the same thing. What other viewer are you talking about?

---

<div class="post-metadata">

**Author:** ![imperator](https://avatars.discourse-cdn.com/v4/letter/i/76d3ee/32.png) [@imperator](https://forum.babylonjs.com/u/imperator)\
**Post date:** [June 4, 2020, 7:46pm UTC](https://forum.babylonjs.com/t/camera-animation-messed-up-using-gltf-from-blender/11426/5 "2020-06-04T19:46:02Z")

</div>

Hi @PirateJC, thanks for the quick reply.  
Here I have uploaded the Blender-File: [http://flyingdog.de/downloads/city.blend](http://flyingdog.de/downloads/city.blend)  
I just export with newest Blender version - Bforartists 2.1 (= Blender 2.8.3+2.9Alpha) which came out today. But I am new to Blender to be honest - started to work with it yesterday 🙃  
@bghgary  
About viewer: yes it is the same viewer. But it is not same result.

1. viewer is correct:  
 ![gltf_viewer](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/b/bb1d3dce3142c70aed0ffaf6ef462aacb1f55e47.jpeg)
2. Same file in Sandbox is wrong with the problems I mentioned above with missing polygons and mirrored image:  
 ![sandbox](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/5/5b241108cd26665d462c32252405f6d7d514674b.jpeg)

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [June 4, 2020, 7:47pm UTC](https://forum.babylonjs.com/t/camera-animation-messed-up-using-gltf-from-blender/11426/6 "2020-06-04T19:47:37Z")

</div>

I see. Let me check.

---

<div class="post-metadata">

**Author:** ![imperator](https://avatars.discourse-cdn.com/v4/letter/i/76d3ee/32.png) [@imperator](https://forum.babylonjs.com/u/imperator)\
**Post date:** [June 5, 2020, 10:50am UTC](https://forum.babylonjs.com/t/camera-animation-messed-up-using-gltf-from-blender/11426/7 "2020-06-05T10:50:44Z")

</div>

I made a very simple scene:  
[https://www.flyingdog.de/downloads/kamera/KameraAnim.glb](https://www.flyingdog.de/downloads/kamera/KameraAnim.glb)  
[https://www.flyingdog.de/downloads/kamera/KameraAnim.blend](https://www.flyingdog.de/downloads/kamera/KameraAnim.blend)  
As you can see that issue is not connected to animation. Just all cameras imported through glTF from Blender seems to be broken.

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [June 5, 2020, 3:53pm UTC](https://forum.babylonjs.com/t/camera-animation-messed-up-using-gltf-from-blender/11426/8 "2020-06-05T15:53:06Z")

</div>

Thanks. It looks like the glTF camera support is broken somehow. Even the [glTF sample model for cameras](https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/Cameras) is broken.

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [June 5, 2020, 4:13pm UTC](https://forum.babylonjs.com/t/camera-animation-messed-up-using-gltf-from-blender/11426/9 "2020-06-05T16:13:28Z")

</div>

I filed a bug: [glTF cameras are broken · Issue #8320 · BabylonJS/Babylon.js · GitHub](https://github.com/BabylonJS/Babylon.js/issues/8320). Hopefully will be resolved soon.

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [June 5, 2020, 4:44pm UTC](https://forum.babylonjs.com/t/camera-animation-messed-up-using-gltf-from-blender/11426/10 "2020-06-05T16:44:42Z")

</div>

Fixed!

---

<div class="post-metadata">

**Author:** ![imperator](https://avatars.discourse-cdn.com/v4/letter/i/76d3ee/32.png) [@imperator](https://forum.babylonjs.com/u/imperator)\
**Post date:** [June 5, 2020, 9:45pm UTC](https://forum.babylonjs.com/t/camera-animation-messed-up-using-gltf-from-blender/11426/11 "2020-06-05T21:45:43Z")

</div>

Thank you!
