[vtk-developers] ImageSampleDistance not used in vtkOpenGLGPURayCastMapper?

Sankhesh Jhaveri sankhesh.jhaveri at kitware.com
Mon Feb 13 11:10:11 EST 2017


Hi Elvis,

The ImageSampleDistance property was left out when coming up with the new
OpenGL2 volume mapper to avoid an additional step of rendering the volume
to an FBO and then using the texture to compute the scaling. This
simplifies the code path and reduces the extra performance overhead. The
documentation could have been better on this. We'll update it.

That being said, do you have a specific use case for ImageSampleDistance?
We could explore options for adding the feature back in.

Thanks,
Sankhesh
​

On Mon, Feb 13, 2017 at 6:55 AM Elvis Stansvik <elvis.stansvik at orexplore.com>
wrote:

> 2017-02-13 12:54 GMT+01:00 Elvis Stansvik <elvis.stansvik at orexplore.com>:
> > I was digging through the code trying to understand how the
> > auto-adjustment of sample distance and image sample distance takes
> > place in the GPU volume ray cast mapper. From the looks of it, the
> > ImageSampleDistance is not respected by this mapper, even in the
> > non-automatic case, or am I missing something?
>
> Sorry, with "non-automatic case" I mean when AutoAdjustSampleDistance is
> Off.
>
> Elvis
>
> >
> > The only role ImageSampleDistance seems to play for this mapper is
> > when the reduction factor is calculated (when auto-adjustment is
> > turned off):
> >
> >   if ( !this->AutoAdjustSampleDistances )
> >   {
> >     this->ReductionFactor = 1.0 / this->ImageSampleDistance;
> >     return;
> >   }
> >
> > Elvis
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=vtk-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtk-developers
>
> --
Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware
<http://www.kitware.com/> | (518) 881-4417
​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20170213/7e4ec0fe/attachment.html>


More information about the vtk-developers mailing list