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

Ken Martin ken.martin at kitware.com
Sun Nov 26 10:35:38 EST 2017


Yes, the feature was added recently - Ken

On Sun, Nov 26, 2017 at 2:32 AM, Berti Krüger <berti_krueger at hotmail.com>
wrote:

> Hello Ken,
> thank you very much for your reply.
>
> If I understand you correctly the developer macros you have shown in
> your reply should automatically generate an accessor / mutator
> method called "SetMipmap(bool flag)" in the vtkTexture class.
>
> Unfortunately i could not find such a method in the actual release
> versions of VTK (e.g. version 7.1.1 or 8.0.1).
>
>
> Only in the upcoming VTK 8.1.0rc version there are:
>
> virtual bool    GetMipmap ()
> virtual void    SetMipmap (bool)
> virtual void    MipmapOn ()
> virtual void    MipmapOff ()
>
> which seems to be what i need.
>
>
> Did i understand you wrong (i am sorry if this is a stupid question
> but i am new to vtk) ?
>
>
> Thank you very much in advance,
>
>
> Berti
>
>
>
> Von: Ken Martin <ken.martin at kitware.com>
> Gesendet: Samstag, 25. November 2017 14:29
> An: Berti Krüger
> Cc: vtkusers at vtk.org
> Betreff: Re: [vtkusers] VTK Anisotropic Texture Filtering / MipMaps /
> reducing texture aliasing
>
>
> 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.




-- 
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/20171126/70db5ffb/attachment.html>


More information about the vtkusers mailing list