B4J Question Howto load glTF files for WebGL with ThreeJS?


Well-Known Member
Licensed User
Longtime User
A 3D project is to be created with @Mashiane 's promising "BANano3D".

The creation and display of simple models are so far well explained in Mashy's pages.

For more complex models one could use ready-made models, e.g. via Sketchfab, which are available as glTF files (e.g. https://sketchfab.com/3d-models/need-some-space-d6521362b37b48e3a82bce4911409303 ).


In the documentation of ThreeJS the use of the "GLTFLoader" is referred here: https://threejs.org/docs/#examples/en/loaders/GLTFLoader

Does anyone already have experience with making glTF files viewable in an animated way in WebGL?