# GLB Export fails

**URL:** <https://forum.babylonjs.com/t/glb-export-fails/40911>\
**Category:** Questions\
**Created:** [May 17, 2023, 2:15pm UTC](https://forum.babylonjs.com/t/glb-export-fails/40911 "2023-05-17T14:15:46Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![dnrn](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/dnrn/32/4723_2.png) [@dnrn](https://forum.babylonjs.com/u/dnrn)\
**Post date:** [May 17, 2023, 2:15pm UTC](https://forum.babylonjs.com/t/glb-export-fails/40911/1 "2023-05-17T14:15:46Z")

</div>

I have found a possible bug in the GLB exporter.

The issue is that the exported GLB model gets messed up if it has a parent transform node and contains a skeleton.

Here is a PG of a model with get messed up when it is exported:

> **[Babylon.js Playground](https://playground.babylonjs.com/#J4ZV2L%232)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

If the parent transform node is removed the model is exported just fine.

I have put the exported model on our CDN for illustrating the issue in this PG:

> **[Babylon.js Playground](https://playground.babylonjs.com/#JUKXQD%235013)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<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:** [May 17, 2023, 6:12pm UTC](https://forum.babylonjs.com/t/glb-export-fails/40911/2 "2023-05-17T18:12:02Z")

</div>

cc @bghgary in case he has a clue

---

<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:** [May 17, 2023, 8:48pm UTC](https://forum.babylonjs.com/t/glb-export-fails/40911/3 "2023-05-17T20:48:51Z")

</div>

There is a problem with the code that converts handedness. For now, you can set the scene to right-handed and then it will export properly.

PG: [https://playground.babylonjs.com/#J4ZV2L#3](https://playground.babylonjs.com/#J4ZV2L#3)

If you don’t mind, please file a GitHub issue for this. Thanks.

---

<div class="post-metadata">

**Author:** ![dnrn](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/dnrn/32/4723_2.png) [@dnrn](https://forum.babylonjs.com/u/dnrn)\
**Post date:** [May 24, 2023, 7:39am UTC](https://forum.babylonjs.com/t/glb-export-fails/40911/5 "2023-05-24T07:39:28Z")

</div>

I have filed an issue. 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:** [May 24, 2023, 9:28pm UTC](https://forum.babylonjs.com/t/glb-export-fails/40911/6 "2023-05-24T21:28:03Z")

</div>

Does the workaround work btw?

---

<div class="post-metadata">

**Author:** ![dnrn](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/dnrn/32/4723_2.png) [@dnrn](https://forum.babylonjs.com/u/dnrn)\
**Post date:** [May 25, 2023, 12:24pm UTC](https://forum.babylonjs.com/t/glb-export-fails/40911/7 "2023-05-25T12:24:34Z")

</div>

Yes I can confirm it works 🙂

Do you know an simple way to convert a transform node from left to right?

---

<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:** [May 25, 2023, 3:09pm UTC](https://forum.babylonjs.com/t/glb-export-fails/40911/8 "2023-05-25T15:09:03Z")

</div>

The easiest thing to do is invert one of the scale axes.

---

<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 1, 2023, 8:45pm UTC](https://forum.babylonjs.com/t/glb-export-fails/40911/9 "2023-06-01T20:45:28Z")

</div>

Assigned @bghgary on June 1, 2023, 8:45pm UTC



---

<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 7, 2023, 11:12pm UTC](https://forum.babylonjs.com/t/glb-export-fails/40911/10 "2023-06-07T23:12:33Z")

</div>

This issue is now fixed in this PR: [Stop baking LH to RH in glTF serializer by bghgary · Pull Request #13909 · BabylonJS/Babylon.js · GitHub](https://github.com/BabylonJS/Babylon.js/pull/13909).

Note that it’s a breaking change in the sense that we are no longer baking the handedness conversion, so be aware that the asset will be slightly different when exporting LH data to a glTF.

---

<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 7, 2023, 11:12pm UTC](https://forum.babylonjs.com/t/glb-export-fails/40911/11 "2023-06-07T23:12:35Z")

</div>

Unassigned @bghgary on June 7, 2023, 11:12pm UTC


