javascript - OrbitControl.js with smoother zooming and rotating? -


my demo here

you'll notice zooming quite choppy. rotating static. i'm looking achieve similar results google's webgl globe.

at first using standard orbitcontrol.js file

but wasn't liking overall feel of it. started using this 1 includes part momentum , such.

i've tried embedding had little luck.

// controls                    cameracontrols = new three.orbitandpancontrols(camera, renderer.domelement);                   cameracontrols.target.set(0, 0, 0);                                       cameracontrols.maxdistance = 610;                                       cameracontrols.mindistance = 210;                                       cameracontrols.userrotatespeed = 500;                                       cameracontrols.momentumdampingfactor = 8;                                       cameracontrols.momentumscalingfactor = 0.005;                               cameracontrols.getmouseprojectiononball2 = cameracontrols.getmouseprojectiononball;   cameracontrols.getmouseprojectiononball = function(x, y){ return cameracontrols.getmouseprojectiononball2.call(cameracontrols, x, cameracontrols.screen.height/2);} 

playing around numbers on momentum lines hasn't helped much. there i'm not doing right or limitation of script? there other scripts out there smoother feel orbitconrol.js?

note: changing user rotating speed parameter nothing. note2: trying build this notice how smooth rotating is. don't want use trackballcontrol.js because doesn't limit rotating angle orbitcontrol.js


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -