# Rotate view angle of camera

**URL:** https://discourse.vtk.org/t/rotate-view-angle-of-camera/1573
**Category:** Support
**Created:** [August 13, 2019, 11:43am UTC](https://discourse.vtk.org/t/rotate-view-angle-of-camera/1573 "2019-08-13T11:43:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![anon64829896](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/a/91b2a8/32.png) [@anon64829896](https://discourse.vtk.org/u/anon64829896)
#### Post date: [August 13, 2019, 11:43am UTC](https://discourse.vtk.org/t/rotate-view-angle-of-camera/1573/1 "2019-08-13T11:43:28Z")

</div>

Hi,  
I know that this topic seems simple but however I am getting an unexpected result from it.  
My process looks like this:

- Using the vtkOBJReader to read an obj file
- Actor -\> vtkRenderer -\> vtkRenderWindow -\> vtkRenderWindowInteractor-\>Rendering

It all works fine, the camera position is perfect for the model. Now I would like so slightly change the view angle towards the model (like an isometric view instead of the “view from right” perspective).  
So I tried:  
_renderer.GetActiveCamera().Azimuth(30)_

However, the result is that the camera is positioned inside the model (I guess at [0,0,0]).  
Afterwards I just tried to get the distance using:  
_renderer.GetActiveCamera().GetDistance()_

But this command is also putting the camera position inside the model. To me, this is not the expected case since the _GetDistance()_ method should be an exclusive “getter” method, so why would it reset the camera’s position?

Or am I missing something?

Thanks already for the effort!

Benny

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [November 2, 2019, 5:47pm UTC](https://discourse.vtk.org/t/rotate-view-angle-of-camera/1573/2 "2019-11-02T17:47:39Z")

</div>

[vtkCamera::GetDistance()](https://github.com/Kitware/VTK/blob/46f13236aed2858354f8aa30a92ba93cb52d9e52/Rendering/Core/vtkCamera.h#L109) looks like just an accessory method. Does calling `renderer.GetActiveCamera()` changes the camera position or you need to call its `GetDistance()` method?

Anyway, you can use [ResetCamera](https://vtk.org/doc/nightly/html/classvtkRenderer.html#ae8055043e676defbbacff6f1ea65ad1e) method anytime to reset the camera’s field of view.
