Awesome, thank you very much! Cheers, Niklas
Hi Niklas,unfortunately sampling distance is currently not exposed as a UI setting. You could make thefollowing changes in order to decrease the sampling distance, VTK/Rendering/VolumeOpenGL2/vtkSmartVolumeMapper.cxxln. 91 -- comment <https://gitlab.kitware.com/vtk/vtk/blob/master/Rendering/VolumeOpenGL2/vtkSmartVolumeMapper.cxx#L91>// this->GPUMapper->LockSampleDistanceToInputSpacingOn(); /ParaViewCore/ClientServerCore/Rendering/vtkImageVolumeRepresentation.cxxln. 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 performanceThis 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 alsoused 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.cxxln. 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 throughthe UI in ParaView. Hope that helps, ÁlvaroOn Tue, Jan 17, 2017 at 11:58 AM, Niklas Röber <[email protected] <mailto:[email protected]>> 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: [email protected] 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 ______________________________________________
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
