Zoom in to the center of the 2d rectangle area

How do I do the scaling of the area, here I draw a rectangle using the drag and drop method, I can do the 2d to 3d Conversion using

projector.unprojectVector(pos, camera);

      

but i can't zoom in to fix the area,

Do I need to apply local to world coordinates? if so how to do it? I only have THREE.PointCloud grid.

enter image description here u can see the image, it will show what i am trying to do.

thanks in advance.

+3
three.js


source to share


No one has answered this question yet

Check out similar questions:

fourteen
THREE.js 3D Spelling Camera for Mouse
3
Three.js: Converting face to normal from local space to world space
1
Three.js OrthographicCamera - Zoom to cursor
0
mouse to Three.js world coordinates during TrackballControls
0
Mouse coordinates don't matter after scaling, is it a bug?
0
THREE.js: how to draw 2D mesh with 3D mesh
0
3D.js draw 3D rectangle with mouse
0
ThreeJS get Bounding Box of Visible Mesh / Plane
0
How to update the camera while zooming
0
Position of the visible area



All Articles
Loading...
X
Show
Funny
Dev
Pics