<div dir="ltr">There are a few issues that can cause z fighting or what looks like z fighting. If your data is away from the origin then you may hit floating point issues. For example if your data ranges from 5001 to 5003 the ratio of the distance to the size is large enough to cause float point resolution issues (aka 5002/2 = 2501) If using the OpenGL2 backend you can use this topic in VTK to automatically address that problem<div><br></div><div><a href="https://gitlab.kitware.com/vtk/vtk/merge_requests/2797">https://gitlab.kitware.com/vtk/vtk/merge_requests/2797</a><br></div><div><br></div><div>If that is not the case then it could be that you have identically located surfaces. In that case you need to use the local offset methods in Mapper to set one of the mappers to be behind/in front of the other.</div><div><br></div><div>You can also try tightening up the default zbuffer expansion using </div><div><br></div><div>renderer->SetClippingRangeExpansion(.1) </div><div><br></div><div>which is tighter than the default of 0.5 and will waste less resolution typically.</div><div><br></div><div>Thanks</div><div>Ken</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 17, 2017 at 6:15 AM, Rustem Khabetdinov <span dir="ltr"><<a href="mailto:rustem.khabetdinov@gmail.com" target="_blank">rustem.khabetdinov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div>I am having troubles with z-fighting. Is there anything that can help reduce this? I found out that it is possible to increase depth buffer precision or change near plane. As far as I know we are not allowed to change near plane values. Is there any information on what precision is set by default or where I can change that?</div><div><br></div><div>Best Regards,</div><div>Rustem</div></div>
<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></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>