f3d icon indicating copy to clipboard operation
f3d copied to clipboard

Support for draco compressed gltfs

Open nickholt15 opened this issue 2 years ago • 8 comments

Context F3D support glTF and Draco files, however, F3D does NOT support Draco-compressed glTF files. As draco is used widely, it would be nice to add such support to both VTK and F3D.

Support for draco gltfs would make this a very powerful mesh preview tool. Currently the best alternative is to open a draco compressed gltf with Blender or use an online gltf viewer that supports draco compressed meshes.

Suggested solution

  • Improve vtkGLTFReader and vtkGLTFImporter in VTK (https://gitlab.kitware.com/vtk/vtk) so they support draco compressed data, using the libdraco as an optional dependency for VTK
  • Update VTK version in F3D

Notes The F3D maintainers will be able to help with the implementation and the contribution to VTK!

nickholt15 avatar Nov 01 '22 16:11 nickholt15

I agree.
Related: https://github.com/f3d-app/f3d/issues/59
It's on my to-do list but with low priority.
If someone want to do it, I can help.

Meakk avatar Nov 01 '22 17:11 Meakk

FYI @paulfx

Meakk avatar Nov 03 '22 13:11 Meakk

No other model viewer (that I am aware of) currently supports previewing draco compressed glTF models. I myself found this project by searching for one that does.

I vote +1 for this feature.

stom66 avatar Apr 22 '23 14:04 stom66

Increasing priority as this was mentionned a few times during the release

mwestphal avatar Apr 26 '23 13:04 mwestphal

@Meakk any luck with this one ?

mwestphal avatar May 14 '23 06:05 mwestphal

Not yet. I can focus on that one after USD, I agree it's very important to support it.

Meakk avatar May 14 '23 07:05 Meakk

@Meakk You still have this on your backlog if you do not know what to do :)

mwestphal avatar Jan 23 '24 07:01 mwestphal

Add that to the 2.4 plan and assign it to me.

Meakk avatar Jan 23 '24 09:01 Meakk

Thanks for completing this issue! I'm excited to give it a try. I noticed your Windows nightly builds haven't been released for about two weeks. I'll try on Linux.

nickholt15 avatar Mar 06 '24 13:03 nickholt15

Yes, Windows nightly generation is currently broken (https://github.com/f3d-app/f3d-superbuild/issues/154).
Let me know if you find any issues with the Draco extension.

Meakk avatar Mar 06 '24 13:03 Meakk

Was able to test the nightly build in WSL and it's working great. Thanks for this! I'll look forward to the 2.4 release for Windows

nickholt15 avatar Mar 06 '24 13:03 nickholt15