Skip to content Skip to sidebar Skip to footer

OOP JavaScript + Three.js: OrbitControls Not Working

I'm playing a bit around with THREE.js and Object-oriented JavaScript. Code: https://gist.github.com/BobWassermann/581492be11db361c39ee My browser displays the correct output, but

Solution 1:

The error you're having comes from only 1 frame being displayed. You need to make your render loop recursive. You have

requestAnimationFrame(ixmodel.render);

commented out. This is what will allow your updates to be shown. Uncomment that and it should work.


Post a Comment for "OOP JavaScript + Three.js: OrbitControls Not Working"