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.
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.
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).
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/
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.
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
3dviewer.net takes glTF. As I wrote above, you can export a glTF using SlicerOpenAnatomy extensions’ “OpenAnatomy Export” module. 3dviewer.net displays it like this (you can turn on/off visibility of each segment):
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).
@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).
I’ve updated the OpenAnatomy Exporter module to export model names and all the hierarchy folders, which displayed well in 3dviewer.net and other gltTF viewers.
See a model loaded into the interactive 3D viewer GUI by clicking here. You can click on the volume to find the clicked object’s name, show/hide individual objects or group of objects, etc.
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:
<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>
3dviewer is nice because it is free and open-source (see github page), 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.
Sorry,how can I get the new OpenAnatomy?
I have downloaded again the extention,but it is still the old version.
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:
Thank you very much!
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 dropbox link
https://3dviewer.net/#model=
to the link to create a link that you can send anyone to view the model anywhere, even on a phoneThe 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.
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
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 is open-source) or have a look at other web viewers that might better match what you want to do.