I am using orbit control for zoom and pan action. while zoom out, after a certain limit, the object has disappeared. Similarly, while Zoom in, I can’t zoom after a certain limit. But I have set the max limit to 1000 . Even though I increase the limit, I can zoom in about that same limit only. What is the reason behind this. controls= new OrbitControls(camera,renderer.domElement); controls.minDistance=-700; controls.maxDistance=1000;
this is the settings for orbit controls. and the following is the setting for camera control. camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 1, 1000 );
The third parameter is the min or near distace, you can set it to 0.01 for example. Keep in mind that if you set the near and far distances too far away, you will have rendering artifacts due to the depth buffer precision limits.
Yes @yombo. you are obviously right. When I set the Maxdistance property, then the zoom out has limited. But, Similary I have set the mindistance property. But it is not working. I think Something is restricted that