Kitware / vtk-js

Visualization Toolkit for the Web
https://kitware.github.io/vtk-js/
BSD 3-Clause "New" or "Revised" License
1.24k stars 380 forks source link

Is vtk.js supporting glTF file? #2441

Open xuhenry opened 2 years ago

xuhenry commented 2 years ago

Need

Is vtk.js supporting glTF file?

Feature

floryst commented 2 years ago

Duplicate of https://github.com/Kitware/vtk-js/issues/210. AFAIK we have draco support in vtk.js, but I don't think we have gltf at the moment.

@daker do you have any info on the gltf loader you mentioned in the aforementioned issue?

daker commented 2 years ago

Unfortunately i didn't manage to make it work, if someone is willing to help i can make a draft PR of what i have then we can work to deliver it.

floryst commented 2 years ago

I think submitting a draft PR would be a good starting point. That way someone can pick it up if they can.

daker commented 2 years ago

a draft PR to be reworked in #2479

daker commented 2 hours ago

An initial support for GLTF has been added, PBR requires WebGPU to work

https://kitware.github.io/vtk-js/examples/GLTFImporter/index.html?model=FlightHelmet&viewAPI=WebGPU

@floryst we can close the issue.