[vtkusers] Color flickering

Ruben van Staden rubenvanstaden at gmail.com
Fri Oct 7 09:51:17 EDT 2016


Hey Ken

Thanks for the reply.
Is it possible to use mappers and still write to a VTK file using:

vtkSmartPointer<vtkXMLUnstructuredGridWriter> writer =
vtkSmartPointer<vtkXMLUnstructuredGridWriter>::New();

Regards
Ruben

On Fri, Oct 7, 2016 at 2:41 PM, Ken Martin <ken.martin at kitware.com> wrote:

> 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/81e1f4ef/attachment.html>


More information about the vtkusers mailing list