# In volume rendering, how to set the rendering result to not blur when rotating the camera

**URL:** https://discourse.vtk.org/t/in-volume-rendering-how-to-set-the-rendering-result-to-not-blur-when-rotating-the-camera/11294
**Category:** Development
**Tags:** jobs, code
**Created:** [April 25, 2023, 12:47pm UTC](https://discourse.vtk.org/t/in-volume-rendering-how-to-set-the-rendering-result-to-not-blur-when-rotating-the-camera/11294 "2023-04-25T12:47:19Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![marlon.ma](https://discourse.vtk.org/user_avatar/discourse.vtk.org/marlon.ma/32/6091_2.png) [@marlon.ma](https://discourse.vtk.org/u/marlon.ma)
#### Post date: [April 25, 2023, 12:47pm UTC](https://discourse.vtk.org/t/in-volume-rendering-how-to-set-the-rendering-result-to-not-blur-when-rotating-the-camera/11294/1 "2023-04-25T12:47:20Z")

</div>

The question is what I want to ask

---

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [April 25, 2023, 10:13pm UTC](https://discourse.vtk.org/t/in-volume-rendering-how-to-set-the-rendering-result-to-not-blur-when-rotating-the-camera/11294/2 "2023-04-25T22:13:55Z")

</div>

Hello,

What mapper are you using? `vtkSmartVolumeMapper`? That blur while dragging is a kind of optimization to trade rendering quality for smooth/high FPS during user interaction.

regards,

PC

---

<div class="post-metadata">

### Author: ![marlon.ma](https://discourse.vtk.org/user_avatar/discourse.vtk.org/marlon.ma/32/6091_2.png) [@marlon.ma](https://discourse.vtk.org/u/marlon.ma)
#### Post date: [April 26, 2023, 12:57am UTC](https://discourse.vtk.org/t/in-volume-rendering-how-to-set-the-rendering-result-to-not-blur-when-rotating-the-camera/11294/3 "2023-04-26T00:57:59Z")

</div>

I use vtkGPUVolumeRayCastMapper

---

<div class="post-metadata">

### Author: ![marlon.ma](https://discourse.vtk.org/user_avatar/discourse.vtk.org/marlon.ma/32/6091_2.png) [@marlon.ma](https://discourse.vtk.org/u/marlon.ma)
#### Post date: [April 26, 2023, 1:00am UTC](https://discourse.vtk.org/t/in-volume-rendering-how-to-set-the-rendering-result-to-not-blur-when-rotating-the-camera/11294/4 "2023-04-26T01:00:58Z")

</div>

I want to provide users with a set of options, and if their devices are good enough, even if they are not blurry, fps is still sufficient

---

<div class="post-metadata">

### Author: ![estan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/estan/32/460_2.png) [@estan](https://discourse.vtk.org/u/estan)
#### Post date: [April 26, 2023, 6:40am UTC](https://discourse.vtk.org/t/in-volume-rendering-how-to-set-the-rendering-result-to-not-blur-when-rotating-the-camera/11294/5 "2023-04-26T06:40:19Z")

</div>

I think you can call AutoAdjustSampleDistancesOff() on the mapper to turn off the automatic adjustment of raycasting sampling distance, then either call LockSampleDistanceToInputSpacingOn() to lock the sampling distance to the input data spacing, or set the sampling distance manually with SetSampleDistance(…).

---

<div class="post-metadata">

### Author: ![marlon.ma](https://discourse.vtk.org/user_avatar/discourse.vtk.org/marlon.ma/32/6091_2.png) [@marlon.ma](https://discourse.vtk.org/u/marlon.ma)
#### Post date: [April 26, 2023, 6:46am UTC](https://discourse.vtk.org/t/in-volume-rendering-how-to-set-the-rendering-result-to-not-blur-when-rotating-the-camera/11294/6 "2023-04-26T06:46:42Z")

</div>

thank you very much

---

<div class="post-metadata">

### Author: ![dbtruong](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/d/f08c70/32.png) [@dbtruong](https://discourse.vtk.org/u/dbtruong)
#### Post date: [September 16, 2024, 3:08am UTC](https://discourse.vtk.org/t/in-volume-rendering-how-to-set-the-rendering-result-to-not-blur-when-rotating-the-camera/11294/7 "2024-09-16T03:08:01Z")

</div>

Is there any other way when i use vtkFixedPointVolumeRayCastMapper?
