<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Awesome, thank you very much!<br>
      <br>
      Cheers, Niklas<br>
      <br>
    </div>
    <blockquote
cite="mid:CADM17uMhRZbBdRKhDPWY7Cr2OgrKWYWjn6r0HaD7P9uio_di7w@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi Niklas,
        <div><br>
        </div>
        <div>unfortunately sampling distance is currently not exposed as
          a UI setting.  You could make the</div>
        <div>following changes in order to decrease the sampling
          distance,</div>
        <div><br>
        </div>
        <div>VTK/Rendering/VolumeOpenGL2/vtkSmartVolumeMapper.cxx</div>
        <div><a moz-do-not-send="true"
href="https://gitlab.kitware.com/vtk/vtk/blob/master/Rendering/VolumeOpenGL2/vtkSmartVolumeMapper.cxx#L91">ln.
            91 -- comment</a></div>
        <div>//
           this->GPUMapper->LockSampleDistanceToInputSpacingOn();<br>
        </div>
        <div><br>
        </div>
        <div>/ParaViewCore/ClientServerCore/Rendering/vtkImageVolumeRepresentation.cxx</div>
        <div><a moz-do-not-send="true"
href="https://gitlab.kitware.com/paraview/paraview/blob/master/ParaViewCore/ClientServerCore/Rendering/vtkImageVolumeRepresentation.cxx#L350">ln.
            350 -- add</a></div>
        <div>
          <div> 
            this->VolumeMapper->SetAutoAdjustSampleDistances(0);</div>
          <div> 
            this->VolumeMapper->SetInteractiveAdjustSampleDistances(0);</div>
          <div>  const float dist = 1.0;</div>
          <div>  this->VolumeMapper->SetSampleDistance(dist);
             //<-- smaller dist for higher quality / worse
            performance</div>
        </div>
        <div><br>
        </div>
        <div>This is a hack, but it should improve the rendering
          quality.  Be careful however to not make 'dist'</div>
        <div>too small as this hack has the disadvantage that the
          specified sampling distance would be also</div>
        <div>used during interaction (you might notice some performance
          issues).</div>
        <div><br>
        </div>
        <div>If you are trying to increase the sampling rate in order to
          reduce "wood grain" artifacts, you</div>
        <div>could instead try enabling jittering, this might also help
          (without major performance concerns),</div>
        <div><br>
        </div>
        <div>VTK/Rendering/VolumeOpenGL2/vtkSmartVolumeMapper.cxx<br>
        </div>
        <div><br>
        </div>
        <div><a moz-do-not-send="true"
href="https://gitlab.kitware.com/vtk/vtk/blob/master/Rendering/VolumeOpenGL2/vtkSmartVolumeMapper.cxx#L92">ln.
            92 -- add</a></div>
        <div>  this->GPUMapper->UseJitteringOn();<br>
        </div>
        <div><br>
        </div>
        <div>We are planning to expose both settings in the future so
          that they can be controlled through</div>
        <div>the UI in ParaView.</div>
        <div><br>
        </div>
        <div>Hope that helps,</div>
        <div>Álvaro</div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Tue, Jan 17, 2017 at 11:58 AM,
          Niklas Röber <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:roeber@dkrz.de" target="_blank">roeber@dkrz.de</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
            <br>
            for GPU based volume rendering, is there a way to increase
            the number of slices to enhance the overall quality of the
            rendering? If this can not directly be done in the GUI,
            would it be possible to adjust a scaling factor in the code?<br>
            <br>
            Thanks and Cheers,<br>
            Niklas<br>
            <br>
            <br>
            ______________________________<wbr>_________________<br>
            Powered by <a moz-do-not-send="true"
              href="http://www.kitware.com" rel="noreferrer"
              target="_blank">www.kitware.com</a><br>
            <br>
            Visit other Kitware open-source projects at <a
              moz-do-not-send="true"
              href="http://www.kitware.com/opensource/opensource.html"
              rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
            <br>
            Please keep messages on-topic and check the ParaView Wiki
            at: <a moz-do-not-send="true"
              href="http://paraview.org/Wiki/ParaView" rel="noreferrer"
              target="_blank">http://paraview.org/Wiki/<wbr>ParaView</a><br>
            <br>
            Search the list archives at: <a moz-do-not-send="true"
              href="http://markmail.org/search/?q=ParaView"
              rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
            <br>
            Follow this link to subscribe/unsubscribe:<br>
            <a moz-do-not-send="true"
              href="http://public.kitware.com/mailman/listinfo/paraview"
              rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/paraview</a><br>
            <br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div class="gmail_signature" data-smartmail="gmail_signature">
          <div dir="ltr">
            <div>
              <div dir="ltr">
                <div>Alvaro Sanchez</div>
                <div>Kitware, Inc.</div>
                <div><span style="color:rgb(0,0,0);font-family:Arial;font-size:14.6667px;line-height:20.24px;white-space:pre-wrap">Senior </span>R&D
                  Engineer</div>
                <div>21 Corporate Drive</div>
                <div>Clifton Park, NY 12065-8662</div>
                <div>Phone: 518-881-4901</div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    <p><br>
    </p>
    <pre class="moz-signature" cols="72">-- 
______________________________________________ 

Dr. Niklas Röber
Visualisierung
Abteilung Anwendungen

Deutsches Klimarechenzentrum GmbH (DKRZ)
Bundesstraße 45 a • D-20146 Hamburg • Germany

email: <a class="moz-txt-link-abbreviated" href="mailto:roeber@dkrz.de">roeber@dkrz.de</a>
phone: +49 (0)40 460094 283
  fax: +49 (0)40 460094 270
  web: <a class="moz-txt-link-freetext" href="http://www.dkrz.de/">http://www.dkrz.de/</a>

Geschäftsführer: Prof. Dr. Thomas Ludwig
Sitz der Gesellschaft: Hamburg
Amtsgericht Hamburg HRB 39784 
______________________________________________ </pre>
  </body>
</html>