[vtkusers] VTK Anisotropic Texture Filtering / MipMaps / reducing texture aliasing

Ken Martin ken.martin at kitware.com
Sat Nov 25 09:29:48 EST 2017


Try turning on mipmaps for your texture before you render them. Support for
them was added a while back. That should help some.

  //@{
  /**
   * Turn on/off use of mipmaps when rendering.
   */
  vtkGetMacro(Mipmap, bool);
  vtkSetMacro(Mipmap, bool);
  vtkBooleanMacro(Mipmap, bool);
  //@}


On Sat, Nov 25, 2017 at 2:08 AM, Berti Krüger <berti_krueger at hotmail.com>
wrote:

> Hello Everyone!
>
> I'm currently making a visualization program where I've got a
> groundplane with a fine detailed checkerboard-like texture on it. The
> whole scene can be zoomed in and out. Since the resolution of the
> VTK-render window and the texture differ quite a bit, i get a lot of
> aliasing.
>
> In plain opengl i would use mipmaps and/or anisotropic filtering to get
> rid of it but unfortunately i haven't found anything in the vtk-texture
> class to archive this.
>
> For whole screen antialiasing i am already using the fxaa
> filter which works really nice and helps also a little bit with
> texture-aliasing but is of course not a replacement for
> resolution dependend texture-filtering.
>
> So my question is, how to reduce aliasing in VTK with fine-detailed
> textures?
>
>
> Thank you very much in advance,
>
> Berti
> _______________________________________________
> 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 VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>



-- 
Ken Martin PhD
Distinguished Engineer
Kitware Inc.
28 Corporate Drive
Clifton Park NY 12065

This communication, including all attachments, contains confidential and
legally privileged information, and it is intended only for the use of the
addressee.  Access to this email by anyone else is unauthorized. If you are
not the intended recipient, any disclosure, copying, distribution or any
action taken in reliance on it is prohibited and may be unlawful. If you
received this communication in error please notify us immediately and
destroy the original message.  Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20171125/56e4ed7f/attachment.html>


More information about the vtkusers mailing list