GLTF Model Not Viewable

Hello! I am new to three.js and recently hit a road block. I cannot seem to view a model with GLTFLoader. I tried the fixes mentioned in docs and included light sources but nothing is showing up. I know that GLTFLoader is being accessed correctly because I am able to throw an error with all of the scene information. I am also able to render the default cube.
Any help would be greatly appreciated!

index.html (1.9 KB) sphere.glb (53.1 KB)

The problem is that you just render your scene once. Try to place the following line after you have added gltf.scene to the scene graph.

scene.add( gltf.scene );
renderer.render( scene, camera ); // FIX

Also consider to use an animation loop to avoid such issues.

2 Likes