# Camera focus on the cursor point

**URL:** https://discourse.vtk.org/t/camera-focus-on-the-cursor-point/2277
**Category:** Support
**Created:** [December 13, 2019, 9:16pm UTC](https://discourse.vtk.org/t/camera-focus-on-the-cursor-point/2277 "2019-12-13T21:16:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ronan\_etesse](https://discourse.vtk.org/user_avatar/discourse.vtk.org/ronan_etesse/32/1191_2.png) [@ronan\_etesse](https://discourse.vtk.org/u/ronan_etesse)
#### Post date: [December 13, 2019, 9:16pm UTC](https://discourse.vtk.org/t/camera-focus-on-the-cursor-point/2277/1 "2019-12-13T21:16:59Z")

</div>

Hi evrey one,  
I am on vtk 8.2, and I try on a 3d view (perspective enable) to zoom with wheel mouse on the current cursor position.  
For zooming I am using the Dolly function from vtkCamera.

I’am zooming then I apply a translation to my camera director vector (postion, focal) to set the camera at the attended postion.

But the result is not good, I think this is not th good way. If some one as an idea.  
Thank you.

---

<div class="post-metadata">

### Author: ![geoffw](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/g/898d66/32.png) [@geoffw](https://discourse.vtk.org/u/geoffw)
#### Post date: [January 8, 2020, 10:41pm UTC](https://discourse.vtk.org/t/camera-focus-on-the-cursor-point/2277/2 "2020-01-08T22:41:13Z")

</div>

I’m not sure if I understand your question correctly, but I believe what you are looking for is a way to zoom towards the point under the mouse cursor, is that correct? ParaView has a feature like this, and is open source. I believe the function in the ParaView source is called “DollyToPosition”. Hope this helps.
