3D model not uploading to HTML page

Hello, I am having a very hard time uploading my 3d model into a simple html page. I have watched countless YouTube videos and have followed the directions on the Three.js website as well. I am not sure what exactly is causing the problem. I can do basic geometry, but cannot seem to upload the model. I will upload my GitHub with all of my current code and the 3d model zip. Thank you!
(GitHub - monindi/3D-model-Three.js)

1 Like

You have not setup any scene in threejs. You are trying to add the model to a undefined variable named “scene”.

I would say you should start by this link: three.js docs

Yeah, seems like you missed adding scene and renderer cause u have scene.add(gltf.scene); but no scene declared.

var scene
scene = new THREE.Scene()
1 Like