[Paraview] Increase number of slices for volume rendering ...

Niklas Röber roeber at dkrz.de
Thu Jan 19 11:17:53 EST 2017


Awesome, thank you very much!

Cheers, Niklas

> Hi Niklas,
>
> unfortunately sampling distance is currently not exposed as a UI 
> setting.  You could make the
> following changes in order to decrease the sampling distance,
>
> VTK/Rendering/VolumeOpenGL2/vtkSmartVolumeMapper.cxx
> ln. 91 -- comment 
> <https://gitlab.kitware.com/vtk/vtk/blob/master/Rendering/VolumeOpenGL2/vtkSmartVolumeMapper.cxx#L91>
> //  this->GPUMapper->LockSampleDistanceToInputSpacingOn();
>
> /ParaViewCore/ClientServerCore/Rendering/vtkImageVolumeRepresentation.cxx
> ln. 350 -- add 
> <https://gitlab.kitware.com/paraview/paraview/blob/master/ParaViewCore/ClientServerCore/Rendering/vtkImageVolumeRepresentation.cxx#L350>
> this->VolumeMapper->SetAutoAdjustSampleDistances(0);
> this->VolumeMapper->SetInteractiveAdjustSampleDistances(0);
>   const float dist = 1.0;
>   this->VolumeMapper->SetSampleDistance(dist);  //<-- smaller dist for 
> higher quality / worse performance
>
> This is a hack, but it should improve the rendering quality.  Be 
> careful however to not make 'dist'
> too small as this hack has the disadvantage that the specified 
> sampling distance would be also
> used during interaction (you might notice some performance issues).
>
> If you are trying to increase the sampling rate in order to reduce 
> "wood grain" artifacts, you
> could instead try enabling jittering, this might also help (without 
> major performance concerns),
>
> VTK/Rendering/VolumeOpenGL2/vtkSmartVolumeMapper.cxx
>
> ln. 92 -- add 
> <https://gitlab.kitware.com/vtk/vtk/blob/master/Rendering/VolumeOpenGL2/vtkSmartVolumeMapper.cxx#L92>
>   this->GPUMapper->UseJitteringOn();
>
> We are planning to expose both settings in the future so that they can 
> be controlled through
> the UI in ParaView.
>
> Hope that helps,
> Álvaro
>
>
> On Tue, Jan 17, 2017 at 11:58 AM, Niklas Röber <roeber at dkrz.de 
> <mailto:roeber at dkrz.de>> wrote:
>
>     Hi,
>
>     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?
>
>     Thanks and Cheers,
>     Niklas
>
>
>     _______________________________________________
>     Powered by www.kitware.com <http://www.kitware.com>
>
>     Visit other Kitware open-source projects at
>     http://www.kitware.com/opensource/opensource.html
>     <http://www.kitware.com/opensource/opensource.html>
>
>     Please keep messages on-topic and check the ParaView Wiki at:
>     http://paraview.org/Wiki/ParaView <http://paraview.org/Wiki/ParaView>
>
>     Search the list archives at:
>     http://markmail.org/search/?q=ParaView
>     <http://markmail.org/search/?q=ParaView>
>
>     Follow this link to subscribe/unsubscribe:
>     http://public.kitware.com/mailman/listinfo/paraview
>     <http://public.kitware.com/mailman/listinfo/paraview>
>
>
>
>
> -- 
> Alvaro Sanchez
> Kitware, Inc.
> Senior R&D Engineer
> 21 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-881-4901


-- 
______________________________________________

Dr. Niklas Röber
Visualisierung
Abteilung Anwendungen

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

email: roeber at dkrz.de
phone: +49 (0)40 460094 283
   fax: +49 (0)40 460094 270
   web: http://www.dkrz.de/

Geschäftsführer: Prof. Dr. Thomas Ludwig
Sitz der Gesellschaft: Hamburg
Amtsgericht Hamburg HRB 39784
______________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170119/07dc1c12/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4916 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170119/07dc1c12/attachment.bin>


More information about the ParaView mailing list