<div dir="ltr">Yes, the feature was added recently - Ken</div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 26, 2017 at 2:32 AM, Berti Krüger <span dir="ltr"><<a href="mailto:berti_krueger@hotmail.com" target="_blank">berti_krueger@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Ken,<br>
thank you very much for your reply.<br>
<br>
If I understand you correctly the developer macros you have shown in<br>
your reply should automatically generate an accessor / mutator<br>
method called "SetMipmap(bool flag)" in the vtkTexture class.<br>
<br>
Unfortunately i could not find such a method in the actual release<br>
versions of VTK (e.g. version 7.1.1 or 8.0.1). <br>
<br>
<br>
Only in the upcoming VTK 8.1.0rc version there are:<br>
<br>
virtual bool GetMipmap ()<br>
virtual void SetMipmap (bool) <br>
virtual void MipmapOn () <br>
virtual void MipmapOff ()<br>
<br>
which seems to be what i need.<br>
<br>
<br>
Did i understand you wrong (i am sorry if this is a stupid question<br>
but i am new to vtk) ?<br>
<br>
<br>
Thank you very much in advance,<br>
<br>
<br>
Berti<br>
<br>
<br>
<br>
Von: Ken Martin <<a href="mailto:ken.martin@kitware.com">ken.martin@kitware.com</a>><br>
Gesendet: Samstag, 25. November 2017 14:29<br>
An: Berti Krüger<br>
Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Betreff: Re: [vtkusers] VTK Anisotropic Texture Filtering / MipMaps / reducing texture aliasing<br>
<br>
<br>
Try turning on mipmaps for your texture before you render them. Support for them was added a while back. That should help some.<br>
<br>
<br>
<br>
//@{<br>
/**<br>
* Turn on/off use of mipmaps when rendering.<br>
*/<br>
vtkGetMacro(Mipmap, bool);<br>
vtkSetMacro(Mipmap, bool);<br>
vtkBooleanMacro(Mipmap, bool);<br>
//@}<br>
<br>
<br>
<br>
<br>
On Sat, Nov 25, 2017 at 2:08 AM, Berti Krüger <<a href="mailto:berti_krueger@hotmail.com">berti_krueger@hotmail.com</a>> wrote:<br>
Hello Everyone!<br>
<br>
I'm currently making a visualization program where I've got a<br>
groundplane with a fine detailed checkerboard-like texture on it. The<br>
whole scene can be zoomed in and out. Since the resolution of the<br>
VTK-render window and the texture differ quite a bit, i get a lot of<br>
aliasing.<br>
<br>
In plain opengl i would use mipmaps and/or anisotropic filtering to get<br>
rid of it but unfortunately i haven't found anything in the vtk-texture<br>
class to archive this.<br>
<br>
For whole screen antialiasing i am already using the fxaa<br>
filter which works really nice and helps also a little bit with<br>
texture-aliasing but is of course not a replacement for<br>
resolution dependend texture-filtering.<br>
<br>
So my question is, how to reduce aliasing in VTK with fine-detailed<br>
textures?<br>
<br>
<br>
Thank you very much in advance,<br>
<br>
Berti<br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
<br>
<br>
<br>
<br>
--<br>
<br>
<br>
<br>
Ken Martin PhD<br>
Distinguished Engineer<br>
Kitware Inc.<br>
<br>
28 Corporate Drive<br>
Clifton Park NY 12065<br>
<br>
<br>
<br>
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. </blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Ken Martin PhD<div>Distinguished Engineer<br><span style="font-size:12.8px">Kitware Inc.</span><br></div><div>28 Corporate Drive<br>Clifton Park NY 12065<br><div><br></div><div><span style="font-size:10pt;font-family:Tahoma,sans-serif">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.</span></div></div></div></div></div>
</div>