I've been trying to render the scene below in a canvas for so many times and it still doesn't work.
I've tried replacing var renderer = new THREE.WebGLRenderer({antialias: true});
with var renderer = new THREE.WebGLRenderer({ canvas: canvas });
, but instead of rendering it just starts infinitely loading.
Full HTML page: https://jsfiddle.net/1k04rwsx/ (replace the obj models with something to make it load)
P.S.: I'm new to this, sorry if the code looks a bit weird.
Huge thanks to anyone who can help!