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

**URL:** <https://discourse.slicer.org/t/in-volume-rendering-how-to-set-the-rendering-result-to-not-blur-when-rotating-the-camera/39742>\
**Category:** Support\
**Tags:** dicom, vtk, python\
**Created:** [October 17, 2024, 9:39am UTC](https://discourse.slicer.org/t/in-volume-rendering-how-to-set-the-rendering-result-to-not-blur-when-rotating-the-camera/39742 "2024-10-17T09:39:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbtruong](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dbtruong/32/65581_2.png) [@dbtruong](https://discourse.slicer.org/u/dbtruong)\
**Post date:** [October 17, 2024, 9:39am UTC](https://discourse.slicer.org/t/in-volume-rendering-how-to-set-the-rendering-result-to-not-blur-when-rotating-the-camera/39742/1 "2024-10-17T09:39:16Z")

</div>

The question is what I want to ask.  
How to fix results when rendering CPU usage?  
Thanks a lot.

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [October 17, 2024, 11:33am UTC](https://discourse.slicer.org/t/in-volume-rendering-how-to-set-the-rendering-result-to-not-blur-when-rotating-the-camera/39742/2 "2024-10-17T11:33:23Z")

</div>

[https://slicer.readthedocs.io/en/latest/user\_guide/modules/volumerendering.html#panels-and-their-use](https://slicer.readthedocs.io/en/latest/user_guide/modules/volumerendering.html#panels-and-their-use)

The above place in the documentation details Volume Rendering options associated with quality such as “Adaptive” and “Normal”.

---

<div class="post-metadata">

**Author:** ![dbtruong](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dbtruong/32/65581_2.png) [@dbtruong](https://discourse.slicer.org/u/dbtruong)\
**Post date:** [October 18, 2024, 2:08am UTC](https://discourse.slicer.org/t/in-volume-rendering-how-to-set-the-rendering-result-to-not-blur-when-rotating-the-camera/39742/3 "2024-10-18T02:08:20Z")

</div>

@jamesobutler Thank you for your answer

```auto
cpuMapper->SetSampleDistance(displayNode->GetSampleDistance());
cpuMapper->SetInteractiveSampleDistance(displayNode->GetSampleDistance());

```

I see there are two parameters as above. So what is their input value usually and what is their meaning?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [October 18, 2024, 2:46am UTC](https://discourse.slicer.org/t/in-volume-rendering-how-to-set-the-rendering-result-to-not-blur-when-rotating-the-camera/39742/4 "2024-10-18T02:46:35Z")

</div>

This is the sampling distance for raycasting. Higher number means coarser sampling, lower quality, higher speed. See more details in the VTK textbook and VTK documentation.

---

<div class="post-metadata">

**Author:** ![dbtruong](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dbtruong/32/65581_2.png) [@dbtruong](https://discourse.slicer.org/u/dbtruong)\
**Post date:** [October 21, 2024, 1:44am UTC](https://discourse.slicer.org/t/in-volume-rendering-how-to-set-the-rendering-result-to-not-blur-when-rotating-the-camera/39742/5 "2024-10-21T01:44:37Z")

</div>

@lassoan  
I have a better understanding of it. Thank you very much
