# Is there a decent fbx loader and exporter to be used with babylon.js?

**URL:** <https://forum.babylonjs.com/t/is-there-a-decent-fbx-loader-and-exporter-to-be-used-with-babylon-js/3830>\
**Category:** Questions\
**Created:** [June 12, 2019, 9:31am UTC](https://forum.babylonjs.com/t/is-there-a-decent-fbx-loader-and-exporter-to-be-used-with-babylon-js/3830 "2019-06-12T09:31:20Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![fselcukcan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/fselcukcan/32/2370_2.png) [@fselcukcan](https://forum.babylonjs.com/u/fselcukcan)\
**Post date:** [June 12, 2019, 9:31am UTC](https://forum.babylonjs.com/t/is-there-a-decent-fbx-loader-and-exporter-to-be-used-with-babylon-js/3830/1 "2019-06-12T09:31:20Z")

</div>

Is there a decent fbx loader and exporter to be used with babylon.js?

---

<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:** [June 12, 2019, 11:33am UTC](https://forum.babylonjs.com/t/is-there-a-decent-fbx-loader-and-exporter-to-be-used-with-babylon-js/3830/2 "2019-06-12T11:33:25Z")

</div>

Not in JS as it would be a nightmare to manage the binary files. The easiest would be to do it from the art tools available out there (Blender/Max/Maya).

Would GLTF/GLB be sufficient for your use case ?

---

<div class="post-metadata">

**Author:** ![fselcukcan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/fselcukcan/32/2370_2.png) [@fselcukcan](https://forum.babylonjs.com/u/fselcukcan)\
**Post date:** [June 12, 2019, 11:40am UTC](https://forum.babylonjs.com/t/is-there-a-decent-fbx-loader-and-exporter-to-be-used-with-babylon-js/3830/3 "2019-06-12T11:40:17Z")

</div>

I see. What is so different than in the case of .obj format?

I can import and export GLB/GLTF/OBJ files.

Additionally how to export or import .babylon files? Is it just the scene (or this.scene) object written to a file?

---

<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:** [June 12, 2019, 11:46am UTC](https://forum.babylonjs.com/t/is-there-a-decent-fbx-loader-and-exporter-to-be-used-with-babylon-js/3830/4 "2019-06-12T11:46:35Z")

</div>

> What is so different than in the case of .obj format?

The file is completely different and creating a parsing/writer would involve way more code  
also dealing with the binary without the fbx sdk would be insanely time consuming.

About babylon: SceneSerializer.Serialize(scene)

Have a read in the doc:  
[https://doc.babylonjs.com/resources/save\_babylon](https://doc.babylonjs.com/resources/save_babylon)  
[https://doc.babylonjs.com/extensions/gltfexporter](https://doc.babylonjs.com/extensions/gltfexporter)

---

<div class="post-metadata">

**Author:** ![fselcukcan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/fselcukcan/32/2370_2.png) [@fselcukcan](https://forum.babylonjs.com/u/fselcukcan)\
**Post date:** [June 12, 2019, 11:58am UTC](https://forum.babylonjs.com/t/is-there-a-decent-fbx-loader-and-exporter-to-be-used-with-babylon-js/3830/5 "2019-06-12T11:58:02Z")

</div>

Thanks a million!

I did not know fbx file format is so complicated. Maybe I employ another dedicated library for that if I need it so much. Any recommendation for such libraries for formats that Babylon.js does not support?

I will read them. I had read the second one.

---

<div class="post-metadata">

**Author:** ![fselcukcan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/fselcukcan/32/2370_2.png) [@fselcukcan](https://forum.babylonjs.com/u/fselcukcan)\
**Post date:** [June 12, 2019, 11:59am UTC](https://forum.babylonjs.com/t/is-there-a-decent-fbx-loader-and-exporter-to-be-used-with-babylon-js/3830/6 "2019-06-12T11:59:01Z")

</div>

I think Tools.Download does some HTML anchor with download and createObjectURL stuff.

---

<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:** [June 12, 2019, 12:02pm UTC](https://forum.babylonjs.com/t/is-there-a-decent-fbx-loader-and-exporter-to-be-used-with-babylon-js/3830/7 "2019-06-12T12:02:11Z")

</div>

You have access to all the sources on Github that is the beauty of Open source, so yes it does and also uses the special MS path for MS browsers.

---

<div class="post-metadata">

**Author:** ![fselcukcan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/fselcukcan/32/2370_2.png) [@fselcukcan](https://forum.babylonjs.com/u/fselcukcan)\
**Post date:** [June 12, 2019, 12:05pm UTC](https://forum.babylonjs.com/t/is-there-a-decent-fbx-loader-and-exporter-to-be-used-with-babylon-js/3830/8 "2019-06-12T12:05:20Z")

</div>

What does that mean, special MS path?

---

<div class="post-metadata">

**Author:** ![Vinc3r](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/vinc3r/32/25340_2.png) [@Vinc3r](https://forum.babylonjs.com/u/Vinc3r)\
**Post date:** [June 12, 2019, 12:27pm UTC](https://forum.babylonjs.com/t/is-there-a-decent-fbx-loader-and-exporter-to-be-used-with-babylon-js/3830/9 "2019-06-12T12:27:20Z")

</div>

> [@sebavan](#):
>
> Not in JS as it would be a nightmare to manage the binary files.

Just by curiosity, how the gltf importer dealing with the .bin?

Another point about the .fbx is that we can see many software dealing with this format but not with the same rules (correct me if I’m wrong), so it’s probably a little messy to go deep into it.

[Official supported files by BJS](https://doc.babylonjs.com/how_to/load_from_any_file_type) are .babylon, .gltf/.glb, .obj & .stl.

> [@fselcukcan](#):
>
> Additionally how to export or import .babylon files?

Take a look into [GitHub - BabylonJS/Exporters: Exporters for Babylon.js and gltf file formats](https://github.com/BabylonJS/Exporters) 😉

---

<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:** [June 12, 2019, 12:36pm UTC](https://forum.babylonjs.com/t/is-there-a-decent-fbx-loader-and-exporter-to-be-used-with-babylon-js/3830/10 "2019-06-12T12:36:26Z")

</div>

The bin format in glb is quite easy to parse despite being binary 🙂

---

<div class="post-metadata">

**Author:** ![fselcukcan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/fselcukcan/32/2370_2.png) [@fselcukcan](https://forum.babylonjs.com/u/fselcukcan)\
**Post date:** [June 12, 2019, 1:50pm UTC](https://forum.babylonjs.com/t/is-there-a-decent-fbx-loader-and-exporter-to-be-used-with-babylon-js/3830/11 "2019-06-12T13:50:02Z")

</div>

From where do I import the Tools? I am using es6.

---

<div class="post-metadata">

**Author:** ![fselcukcan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/fselcukcan/32/2370_2.png) [@fselcukcan](https://forum.babylonjs.com/u/fselcukcan)\
**Post date:** [June 12, 2019, 1:52pm UTC](https://forum.babylonjs.com/t/is-there-a-decent-fbx-loader-and-exporter-to-be-used-with-babylon-js/3830/12 "2019-06-12T13:52:01Z")

</div>

Ok. I have found it in `@babylonjs/core/Misc/tools.js`

---

<div class="post-metadata">

**Author:** ![fselcukcan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/fselcukcan/32/2370_2.png) [@fselcukcan](https://forum.babylonjs.com/u/fselcukcan)\
**Post date:** [June 25, 2019, 6:49am UTC](https://forum.babylonjs.com/t/is-there-a-decent-fbx-loader-and-exporter-to-be-used-with-babylon-js/3830/13 "2019-06-25T06:49:13Z")

</div>

What about a `dae` importer and exporter for babaylon.js?  
I researched a bit it seems .dae format is based on collada which is based on xml. So this means it is easy parse and convert too. babylon format is json which equally parsable and convertable.

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [December 28, 2021, 4:02am UTC](https://forum.babylonjs.com/t/is-there-a-decent-fbx-loader-and-exporter-to-be-used-with-babylon-js/3830/15 "2021-12-28T04:02:06Z")

</div>

After 2 years, it seems that it could be possible.  
There is [FBX loader in three.js](https://github.com/mrdoob/three.js/blob/93e11919b489d30cdf6f5e4691f0b9edae2c6d35/examples/jsm/loaders/FBXLoader.js), here is the example - [three.js webgl - FBX loader](https://threejs.org/examples/webgl_loader_fbx.html)

Some time ago there was also FBX Mixamo Animations Combiner at [https://nilooy.github.io/mixamo-animation-combiner/](https://nilooy.github.io/mixamo-animation-combiner/) (the link doesn’t work anymore) which I believe was made with JS only (and it was so much simpler and faster than to do the same with Blender manually).

---

<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 3, 2022, 2:43pm UTC](https://forum.babylonjs.com/t/is-there-a-decent-fbx-loader-and-exporter-to-be-used-with-babylon-js/3830/16 "2022-01-03T14:43:34Z")

</div>

FBX is a pretty big format to support + the addition of a binary and a text version. I would be totally game for a community version but this is not something the core team could support knowing the amount of work required to provide an extensive support as we do for GLTF 🙂

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [January 3, 2022, 3:35pm UTC](https://forum.babylonjs.com/t/is-there-a-decent-fbx-loader-and-exporter-to-be-used-with-babylon-js/3830/17 "2022-01-03T15:35:19Z")

</div>

Could be a community extension sponsored by Autodesk 🙂

---

<div class="post-metadata">

**Author:** ![jeremy-coleman](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jeremy-coleman/32/15493_2.png) [@jeremy-coleman](https://forum.babylonjs.com/u/jeremy-coleman)\
**Post date:** [January 4, 2022, 1:00am UTC](https://forum.babylonjs.com/t/is-there-a-decent-fbx-loader-and-exporter-to-be-used-with-babylon-js/3830/18 "2022-01-04T01:00:05Z")

</div>

> **[Editor/src/renderer/editor/loaders/fbx at master · BabylonJS/Editor](https://github.com/BabylonJS/Editor/tree/master/src/renderer/editor/loaders/fbx)**
>
> master/src/renderer/editor/loaders/fbx

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [January 4, 2022, 1:03am UTC](https://forum.babylonjs.com/t/is-there-a-decent-fbx-loader-and-exporter-to-be-used-with-babylon-js/3830/19 "2022-01-04T01:03:30Z")

</div>

Seems that you found a secret area, like in Doom II 🙂

---

<div class="post-metadata">

**Author:** ![jeremy-coleman](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jeremy-coleman/32/15493_2.png) [@jeremy-coleman](https://forum.babylonjs.com/u/jeremy-coleman)\
**Post date:** [January 4, 2022, 1:08am UTC](https://forum.babylonjs.com/t/is-there-a-decent-fbx-loader-and-exporter-to-be-used-with-babylon-js/3830/20 "2022-01-04T01:08:45Z")

</div>

It felt like that when i found it while i was working on the editor yesterday

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [January 4, 2022, 1:13am UTC](https://forum.babylonjs.com/t/is-there-a-decent-fbx-loader-and-exporter-to-be-used-with-babylon-js/3830/21 "2022-01-04T01:13:21Z")

</div>

This thread started at 2019 🙂

[Next page](https://forum.babylonjs.com/t/is-there-a-decent-fbx-loader-and-exporter-to-be-used-with-babylon-js/3830.md?page=2)
