[vtkusers] Disable texture filtering in renderer?

Ken Rockot ken.rockot at gmail.com
Wed Dec 7 10:38:20 EST 2005


Bruno da Silva de Oliveira wrote:
> Have you tried vtkTexture::InterpolateOff()? According to the
> documentation, it disables texture linear interpolation.
>

Thanks for the reply.  I had ruled out InterpolateOff(), as this code
does call it when initializing the image plane.  However, it turns out
that it wasn't being called at the correct time (namely, before
setting the plane's input image).  Thanks for pointing me in the right
direction!


Ken


>
>
> Ken Rockot wrote:
>
> >Hi,
> >
> >I'm applying a single 2D texture to an ImagePlaneWidget, and I'm
> >wondering if VTK provides any generic way to turn off texture
> >filtering (specifically magnification) in the renderer.  For example,
> >when using OpenGL one may use the glTexParameter call to set
> >TEXTURE_MAG_FILTER to GL_NEAREST, so that the texture mapper selects
> >and renders the nearest texel during mapping, rather than
> >interpolating between texel values.  It seems that VTK's default
> >behavior is to apply some linear interpolation when a texture is
> >magnified.  I'm hoping there is some renderer-independent interface
> >for changing this behavior.
> >
> >Thanks,
> >Ken
> >_______________________________________________
> >This is the private VTK discussion list.
> >Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> >Follow this link to subscribe/unsubscribe:
> >http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >
> >
>
> --
> Bruno da Silva de Oliveira
> bruno at esss.com.br
> ESSS - Engineering Simulation and Scientific Software
> http://www.esss.com.br
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



More information about the vtkusers mailing list