# how to rotate the camera like it does in the video

**URL:** https://discourse.vtk.org/t/how-to-rotate-the-camera-like-it-does-in-the-video/8707
**Category:** Development
**Tags:** training, code, proposal
**Created:** [June 13, 2022, 1:32am UTC](https://discourse.vtk.org/t/how-to-rotate-the-camera-like-it-does-in-the-video/8707 "2022-06-13T01:32:41Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Ren](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/r/ed655f/32.png) [@Ren](https://discourse.vtk.org/u/Ren)
#### Post date: [June 13, 2022, 1:32am UTC](https://discourse.vtk.org/t/how-to-rotate-the-camera-like-it-does-in-the-video/8707/1 "2022-06-13T01:32:41Z")

</div>

Hello, everyone, how to rotate the camera like it does in the vedio?

[/uploads/default/original/2X/b/b71ae9ce4ca73d6568441202d90f18bbfef8f344.mp4](https://discourse.vtk.org/uploads/default/original/2X/b/b71ae9ce4ca73d6568441202d90f18bbfef8f344.mp4)

---

<div class="post-metadata">

### Author: ![mau\_igna\_06](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mau_igna_06/32/8064_2.png) [@mau\_igna\_06](https://discourse.vtk.org/u/mau_igna_06)
#### Post date: [June 13, 2022, 10:25am UTC](https://discourse.vtk.org/t/how-to-rotate-the-camera-like-it-does-in-the-video/8707/2 "2022-06-13T10:25:46Z")

</div>

You need to set some target transforms, each one with the stoppened pose orientation.  
According to those transforms you need to get axis of rotation, pivot point and delta\_translstion. Then you need to do some linear interpolation of them.

I think a module on Slicer called transformProcessor does something like that, you may look at the code if you want

Best regards

---

<div class="post-metadata">

### Author: ![Ren](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/r/ed655f/32.png) [@Ren](https://discourse.vtk.org/u/Ren)
#### Post date: [June 14, 2022, 9:33am UTC](https://discourse.vtk.org/t/how-to-rotate-the-camera-like-it-does-in-the-video/8707/3 "2022-06-14T09:33:43Z")

</div>

The module on Slicer is on what?

---

<div class="post-metadata">

### Author: ![mau\_igna\_06](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mau_igna_06/32/8064_2.png) [@mau\_igna\_06](https://discourse.vtk.org/u/mau_igna_06)
#### Post date: [June 14, 2022, 9:39am UTC](https://discourse.vtk.org/t/how-to-rotate-the-camera-like-it-does-in-the-video/8707/4 "2022-06-14T09:39:03Z")

</div>

Here is the link but i was wrong

> **[GitHub - SlicerIGT/SlicerIGT: Modules supporting image-guided interventions...](https://github.com/SlicerIGT/SlicerIGT#transform-processor)**
>
> Modules supporting image-guided interventions in 3D Slicer. - GitHub - SlicerIGT/SlicerIGT: Modules supporting image-guided interventions in 3D Slicer.

There is no interpolation

But you can do it with the high level instructions I gave you I think

Hope it helps

---

<div class="post-metadata">

### Author: ![Ren](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/r/ed655f/32.png) [@Ren](https://discourse.vtk.org/u/Ren)
#### Post date: [June 15, 2022, 3:37am UTC](https://discourse.vtk.org/t/how-to-rotate-the-camera-like-it-does-in-the-video/8707/5 "2022-06-15T03:37:12Z")

</div>

![image](https://discourse.vtk.org/uploads/default/original/2X/a/a0d29ae4e8d453df37be70745f74c99109f5eb9a.png)  
how to set Slicer\_DIR and CMAKE\_INSTALL\_PREFIX?

---

<div class="post-metadata">

### Author: ![mau\_igna\_06](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mau_igna_06/32/8064_2.png) [@mau\_igna\_06](https://discourse.vtk.org/u/mau_igna_06)
#### Post date: [June 15, 2022, 6:12am UTC](https://discourse.vtk.org/t/how-to-rotate-the-camera-like-it-does-in-the-video/8707/6 "2022-06-15T06:12:34Z")

</div>

Please look at this  
[https://slicer.readthedocs.io/en/latest/developer\_guide/build\_instructions/windows.html](https://slicer.readthedocs.io/en/latest/developer_guide/build_instructions/windows.html)

---

<div class="post-metadata">

### Author: ![Ren](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/r/ed655f/32.png) [@Ren](https://discourse.vtk.org/u/Ren)
#### Post date: [June 16, 2022, 7:09am UTC](https://discourse.vtk.org/t/how-to-rotate-the-camera-like-it-does-in-the-video/8707/7 "2022-06-16T07:09:24Z")

</div>

It is say nothing about the problem that I mentioned

---

<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: [June 22, 2022, 12:41am UTC](https://discourse.vtk.org/t/how-to-rotate-the-camera-like-it-does-in-the-video/8707/8 "2022-06-22T00:41:12Z")

</div>

Have a look at [this section](https://slicer.readthedocs.io/en/latest/developer_guide/extensions.html#windows) of the documentation about how to set `Slicer_DIR`.

`CMAKE_INSTALL_PREFIX` is not used. You don’t have to enable experimental modules.
