PerkLab / SlicerOpenAnatomy

3D Slicer extension for exporting Slicer scenes to use in the OpenAnatomy.org browser
15 stars 6 forks source link

Create gltf exporter #3

Closed lassoan closed 5 years ago

lassoan commented 5 years ago

It would contain models and volumes. Since 3D textures are not supported in gltf yet, we'll first work on models only. Volumes will be saved as nrrd.

Hierarchy information would be stored externally.

lassoan commented 5 years ago

glTF:

Resources:

lassoan commented 5 years ago

Do not start from scratch but check out existing converters and libraries. Try to find as small and simple as possible with no external dependencies.

See a list here: https://github.com/KhronosGroup/glTF#c

This one looks quite good: https://github.com/jessey-git/fx-gltf

cpinter commented 5 years ago

VTK's new GLTF reader/writer classes are used instead of developing a new one (they appeared suddenly in VTK), see https://github.com/PerkLab/SlicerOpenAnatomy/commit/5592d3e783dc5ffb529f898814001ad003823607