[vtkusers] Color flickering

Ken Martin ken.martin at kitware.com
Fri Oct 7 08:41:41 EDT 2016


If they are in two different mappers and you are using the new OpenGL2
backend, then you can solve it in VTK by calling

SetResolveCoincidentTopologyToPolygonOffset();
SetRelativeCoincidentTopologyPolygonOffsetParameters(-2,-2);

on one of the mappers.  If they are in the same mapper then, you cannot
solve it in VTK as the two polygons occupy exactly the same space, but due
to driver specific rendering implementations there may be some differences
frame to frame in what pixels end up on top.

Hope that helps
Ken





On Fri, Oct 7, 2016 at 7:38 AM, Ruben van Staden <rubenvanstaden at gmail.com>
wrote:

> Dear Readers
>
> I have two overlapping polyhedrons that each have a different color.
> When I plot them using Paraview, the part of the structure that overlaps
> starts flickering as I rotate the structure. Almost like the program is
> confused
> to what coloring to add to that part, since they overlap.
>
> Is there a way to solve this, somehow using VKT, or will I have to
> do polyhedron boolean operations?
>
> Regards
> Ruben
>
> _______________________________________________
> 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
Chairman & CFO
Kitware Inc.
28 Corporate Drive
Clifton Park NY 12065
518 371 3971

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/20161007/7203e7ff/attachment.html>


More information about the vtkusers mailing list