# Is there any way to export the model by FBX format?

**URL:** <https://discourse.slicer.org/t/is-there-any-way-to-export-the-model-by-fbx-format/21082>\
**Category:** Support\
**Tags:** segmentation, web\
**Created:** [December 16, 2021, 2:53am UTC](https://discourse.slicer.org/t/is-there-any-way-to-export-the-model-by-fbx-format/21082 "2021-12-16T02:53:53Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![slicer365](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/slicer365/32/67549_2.png) [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Post date:** [December 16, 2021, 2:53am UTC](https://discourse.slicer.org/t/is-there-any-way-to-export-the-model-by-fbx-format/21082/1 "2021-12-16T02:53:54Z")

</div>

Is there any way to export the model in FBX format？

FBX files can contain multiple models at the same time, and contain other more information.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 16, 2021, 6:04pm UTC](https://discourse.slicer.org/t/is-there-any-way-to-export-the-model-by-fbx-format/21082/2 "2021-12-16T18:04:33Z")

</div>

Autodesk has very tight control over FBX, so it is generally avoided in open-source software.

You can save segmentations as VTK multi-block file format to preserve all metadata. You can export all segments into a single OBJ file, where each segment uses a different material, so you can easily separate them. Or you can use OpenAnatomy extension to export to glTF (which can be a single file, each segment stored in a separate object).

---

<div class="post-metadata">

**Author:** ![slicer365](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/slicer365/32/67549_2.png) [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Post date:** [December 17, 2021, 12:16am UTC](https://discourse.slicer.org/t/is-there-any-way-to-export-the-model-by-fbx-format/21082/3 "2021-12-17T00:16:26Z")

</div>

Thanks for your reply, my purpose：  
After I make a model through Slicer, I need to share the model with friends, but in many cases their mobile phone does not support direct viewing of stl or obj, etc. So I send it through the open web page, [https://3dviewer.net/](https://3dviewer.net/)

But this webpage cannot support importing multiple models into one scene at the same time.

I am used to converting multiple models into one FBX file through Blender, and then I can selectively hide part of the structure.

 ![1639700410(1)](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/9/f975bbfd61074b76675afc9e0ff9d611e89a8fc7.jpeg)  
If it is to synthesize an OBJ model, then it is impossible to select and hide different structures

For web 3D visualization, do you have any suggestions? I particularly like the display of this effect, but I cannot create such a platform. [Demo](https://yun.gradient3d.com/scene/share.php?ID=86e12f12-615b-49f9-9e76-3493b3e51a55&&code=123456)

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 17, 2021, 12:34am UTC](https://discourse.slicer.org/t/is-there-any-way-to-export-the-model-by-fbx-format/21082/4 "2021-12-17T00:34:06Z")

</div>

[3dviewer.net](http://3dviewer.net) takes glTF. As I wrote above, you can export a glTF using SlicerOpenAnatomy extensions’ “OpenAnatomy Export” module. [3dviewer.net](http://3dviewer.net) displays it like this (you can turn on/off visibility of each segment):

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/6/26a4ab6b2f8de06c439ff1b5ce72e56e911149a9.jpeg)

Segment names are not saved into the model but probably you can add this by editing the module. It is just a short Python script (OpenAnatomyExport.py).

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [December 17, 2021, 1:29pm UTC](https://discourse.slicer.org/t/is-there-any-way-to-export-the-model-by-fbx-format/21082/6 "2021-12-17T13:29:38Z")

</div>

@slicer365 you don’t need to write a script to get started, just install the OpenAnatomy extension and export your scene. If you find that this works for you but the missing model names are an issue, then post example and example scene and the exported gltf and maybe someone can edit the python script for you. (It would be a good learning exercise for someone wanting to improve their Slicer development skills).

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 17, 2021, 8:23pm UTC](https://discourse.slicer.org/t/is-there-any-way-to-export-the-model-by-fbx-format/21082/7 "2021-12-17T20:23:28Z")

</div>

I’ve updated the OpenAnatomy Exporter module to export model names and all the hierarchy folders, which displayed well in [3dviewer.net](http://3dviewer.net) and other gltTF viewers.

See a model loaded into the interactive 3D viewer GUI by [clicking here](https://3dviewer.net/#model=https://raw.githubusercontent.com/lassoan/Test/master/SPL-Abdominal-Atlas.gltf). You can click on the volume to find the clicked object’s name, show/hide individual objects or group of objects, etc.

[![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/c/2ceefc000f896365c147f478427dde845684f2bf.jpeg)](https://3dviewer.net/#model=https://raw.githubusercontent.com/lassoan/Test/master/SPL-Abdominal-Atlas.gltf)

The viewer can be embedded in any site, for example here is the SPL abdominal atlas exported using OpenAnatomy Exporter module (it is an interactive viewer, click-and-drag to rotate):

The viewer can be embedded, too:

```auto
<iframe width="640" height="480" style="border:1px solid #eeeeee;" 
src="https://3dviewer.net/embed.html#model=https://raw.githubusercontent.com/lassoan/Test/master/SPL-Abdominal-Atlas.gltf">
</iframe>

```

https://3dviewer.net/embed.html#model=https://raw.githubusercontent.com/lassoan/Test/master/SPL-Abdominal-Atlas.gltf

3dviewer is nice because it is free and open-source (see [github page](https://github.com/kovacsv/Online3DViewer)), so it can be easily used in any project and customized and extended as needed.

There are a few more sample atlas files (head, knee, abdominal) [here](https://github.com/PerkLab/SlicerOpenAnatomy/releases/tag/SampleData).

---

<div class="post-metadata">

**Author:** ![slicer365](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/slicer365/32/67549_2.png) [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Post date:** [December 18, 2021, 1:27am UTC](https://discourse.slicer.org/t/is-there-any-way-to-export-the-model-by-fbx-format/21082/8 "2021-12-18T01:27:49Z")

</div>

Sorry，how can I get the new OpenAnatomy?

I have downloaded again the extention,but it is still the old version.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 18, 2021, 2:06am UTC](https://discourse.slicer.org/t/is-there-any-way-to-export-the-model-by-fbx-format/21082/9 "2021-12-18T02:06:22Z")

</div>

The Extensions Manager updates the extensions every night. If you want to get the update immediately then you need to download and update this file on your computer manually:

> <https://github.com/PerkLab/SlicerOpenAnatomy/blob/master/OpenAnatomyExport/OpenAnatomyExport.py>

---

<div class="post-metadata">

**Author:** ![slicer365](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/slicer365/32/67549_2.png) [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Post date:** [December 18, 2021, 4:05am UTC](https://discourse.slicer.org/t/is-there-any-way-to-export-the-model-by-fbx-format/21082/10 "2021-12-18T04:05:08Z")

</div>

Thank you very much! 👍 👍 👍 👍

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [January 26, 2022, 8:08pm UTC](https://discourse.slicer.org/t/is-there-any-way-to-export-the-model-by-fbx-format/21082/11 "2022-01-26T20:08:06Z")

</div>

I would just add that with this viewer it is very easy to share 3D models using Dropbox, to be viewed on desktop computer or on a phone:

- Copy the file into your Dropbox
- Right-click on it and choose `Copy dropbox link`
- Prepend the `https://3dviewer.net/#model=` to the link to create a link that you can send anyone to view the model anywhere, even on a phone

The model is not uploaded to any server when it is viewed (it remains on Dropbox) and only those people can access it who know the link.

### Example

Dropbox download link:  
`https://www.dropbox.com/s/38arwo2uhzu0ydg/SPL-Abdominal-Atlas.gltf?dl=0`

Link to view the model:  
`https://3dviewer.net/#model=https://www.dropbox.com/s/38arwo2uhzu0ydg/SPL-Abdominal-Atlas.gltf?dl=0`

---

<div class="post-metadata">

**Author:** ![slicer365](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/slicer365/32/67549_2.png) [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Post date:** [January 27, 2022, 12:55am UTC](https://discourse.slicer.org/t/is-there-any-way-to-export-the-model-by-fbx-format/21082/12 "2022-01-27T00:55:16Z")

</div>

> [@lassoan](#):
>
> [Online 3D Viewer](https://3dviewer.net/#model=https://www.dropbox.com/s/38arwo2uhzu0ydg/SPL-Abdominal-Atlas.gltf?dl=0)

However it is hard to change model’s transparent.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [January 27, 2022, 12:59am UTC](https://discourse.slicer.org/t/is-there-any-way-to-export-the-model-by-fbx-format/21082/13 "2022-01-27T00:59:45Z")

</div>

> [@slicer365](#):
>
> However it is hard to change model’s transparent.

It takes a single click to show/hide an object or an entire branch of the tree. If you really want to change transparency instead of quickly toggling visibility then you could add that feature to the web viewer ([3dviewer.net](http://3dviewer.net) is open-source) or have a look at [other web viewers](https://github.com/PerkLab/SlicerOpenAnatomy/#gltf-viewers) that might better match what you want to do.
