I am new to three.js. I found an example code via Udacity that I tried running via Netbeans, but get an error saying that THREE.OrbitAndPanControls is not a constructor. How would I got about adding the OrbitAndPanControls to the three.js library?

Hello amirahime,

I believe the THREE.OrbitAndPanControls was replaced with THREE.OrbitControls class. You can look into the github control lib directory and you will see what’s available:

Can you get an updated bean?

Otherwize, you will need to make the changes to bean source code using the latest controls (lib & code). For reference, here is the example using the latest orbit controls: https://threejs.org/examples/misc_controls_orbit.html


Super thanks! Highly appreciated.