How to restrict zoom for particular objects

points

#1

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


Thanks & Regards
Abhijit


#2

Take a look at this SO thread.


#3

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


#4

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

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