jeromeetienne / tquery

extension system for three.js
http://jeromeetienne.github.io/tquery/
MIT License
651 stars 120 forks source link

Controls example not plugin-able #304

Open justin-hackin opened 10 years ago

justin-hackin commented 10 years ago

I'm trying to replace the controller with OrbitControls as in the plugins/controls/examples/threejs-controls.html. I ran the example from the local server. When I try to drop that code into my project, its not finding all the required scripts called by the require as they are hardcoded into tquery-bundle-require.js to work for the git repo directory structure only. Is there any way of getting rid of the require and just using tquery.controlswrapper.js and OrbitControls.js ? I tried to add them both as scripts but when I do "new THREE.OrbitControls(camera)"; I get "Uncaught TypeError: undefined is not a function " .

Why would you require all the controllers when I only use one. Why does this example of replacing the controller use tquery-bundle-require.js when you specifically instruct users elsewhere to NOT use this library because its too bloated. I'm finding this library has great potential but having a terrible time groking how to use it. Regardless, thanks for your hard work in it :)