I’ve added a new example, GLFTImporter to the VTK Examples Project. glTF (derivative short form of GL Transmission Format) is a file format for 3D scenes and models using the JSON standard.
There are a few issues with this importer.
Images are dark. There is no light extension loaded
If run from the command line, the gltf filename must be a full path. Otherwise the .bin file is not found. I’m working on an MR for this.
Some error and warning messages do not include the bad filename.
Thank you @lorensen !
Indeed the images are dark but you can improve this using an environment lighting.
You can make any skybox contribute to lighting and this brings awesome reflections with glossy materials.
Have a look at this test.
You can also use projected texture for the environment (that you can download here for example). See here for the test.
This problem exists for .gltf files that reference .bin file. .glb files are fine. The tests use .glb files or .gltf file that do not reference .bin files.
Can you share a command line that works for you and verify that you are using .gltf files that reference a .bin file?