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

David E DeMarle dave.demarle at kitware.com
Mon Nov 27 09:38:53 EST 2017


8.1.0 will be out sometime in December.

The successor to QVTKWidget is QVTKOpenGLWidget.

David E DeMarle
Kitware, Inc.
Principal Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Mon, Nov 27, 2017 at 12:29 AM, Berti Krüger
<berti_krueger at hotmail.com> wrote:
> Hello Ken,
> thank you very much again for your help.
>
> With VTK 8.1.0rc everything works perfectly.
>
> But since it is only a release candidate (which might not work
> completely ok in all situations), do you know roughly when there will
> be a final release version of VTK 8.1?
>
>
> Another thing: I use VTK together with Qt via the QVTKWidget in my
> application and when i run it, i now get the following deprecation
> warning:
>
> "QVTKWidget was deprecated for VTK 8.1 and will be removed in a future
> version."
>
> What is the proper replacement for QVTKWidget? (I installed
> libqtvtkwidget in the Qt Designer and simply dragged it on the form,
> it was the only vtk related widget there).
>
>
> Thanks again,
> Berti
>
>
>
>> 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.
>>
>>
>>
>>
>
> _______________________________________________
> 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


More information about the vtkusers mailing list