# Getting sketchfab data into Slicer

**URL:** <https://discourse.slicer.org/t/getting-sketchfab-data-into-slicer/12256>\
**Category:** Feature requests\
**Created:** [June 28, 2020, 6:17pm UTC](https://discourse.slicer.org/t/getting-sketchfab-data-into-slicer/12256 "2020-06-28T18:17:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [June 28, 2020, 6:17pm UTC](https://discourse.slicer.org/t/getting-sketchfab-data-into-slicer/12256/1 "2020-06-28T18:17:39Z")

</div>

SKetchfab uses a format called .gltf, which Slicer doesn’t seem to recognize. What would it take to support that?

---

<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:** [June 28, 2020, 6:42pm UTC](https://discourse.slicer.org/t/getting-sketchfab-data-into-slicer/12256/2 "2020-06-28T18:42:03Z")

</div>

That should become available when we upgrade to the latest VTK. If it’s really in the critical path we could maybe add the classes directly to slicer (under a mangled name) as a workaround.

> [@Transferring models using glTF 2.0](https://discourse.slicer.org/t/transferring-models-using-gltf-2-0/7064):
>
> To follow up on an [email](http://massmail.spl.harvard.edu/public-archives/slicer-users/2017/011982.html) from @pieper from 2017 Transferring models is still a work in progress, but lately I’m looking at glTF [5] as an interesting option. I would like to mention that VTK has an improved support for glTF 2.0. It should be possible to create a Slicer extension leveraging the new [vtkGLTFReader](https://vtk.org/doc/nightly/html/classvtkGLTFImporter.html#details), [vtkGLTFImporter](https://vtk.org/doc/nightly/html/classvtkGLTFImporter.html#details) and [vtkGLTFExporter](https://vtk.org/doc/nightly/html/classvtkGLTFExporter.html#details) classes. You can read more details about the functionality here: [https://blog.kitware.com/introducing-gltf-2-0-support-in-vtk-and-paraview](https://blog.kitware.com/introducing-gltf-2-0-support-in-vtk-and-paraview)

---

<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:** [June 28, 2020, 7:46pm UTC](https://discourse.slicer.org/t/getting-sketchfab-data-into-slicer/12256/3 "2020-06-28T19:46:17Z")

</div>

We have already backported gltf support from latest VTK version in OpenAntomy extension.

I’ve recently added support scripted file reader plugins, so it should be easy to add a script that makes gltf files loadable via “Add data” dialog.

---

<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:** [June 28, 2020, 8:22pm UTC](https://discourse.slicer.org/t/getting-sketchfab-data-into-slicer/12256/4 "2020-06-28T20:22:44Z")

</div>

Cool, yes, we should be able to do a [`qSlicerScriptedFileReader`](https://github.com/Slicer/Slicer/blob/21fa3d053e3eba4a18c50d7ba59a9495e3f266a9/Base/QTCore/qSlicerScriptedFileReader.h) for that.

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [June 29, 2020, 3:49am UTC](https://discourse.slicer.org/t/getting-sketchfab-data-into-slicer/12256/5 "2020-06-29T03:49:34Z")

</div>

Sounds great. @pieper let’s talk about this sometime this week.
