How to restrict zoom for particular objects

Hii,
In my project there is a rectangle with grip points as shown in fig below. when i zoom in or out it works perfectly, but what i want is that when we zoom, the size of grip point should not change .
here is the images
Fig1
Fig2

Thanks & Regards
Abhijit

2 Likes

Take a look at this SO thread.

2 Likes

Hii,
Thanks, it works properly but for OrthographicCamera we have to do one modification that is we have to divide scale with camera.zoom

var scale = scaleVector.subVectors(planet.position, camera.position).length() / scaleFactor);
var scale = scale/camera.zoom;

Thanks & Regards
Abhijit

If you are using points, you can set sizeAttenuation of the respective material to false.

https://threejs.org/examples/webgl_points_billboards.html

2 Likes