I’m using vtk9. I drew some blue and white tubes using vtkTubeFilter on a separate layer of vtkRenderer, and sometimes the following render error occurs. (Those small aligned rectangles shouldn’t be there)
It seems the blue and white tubes are coincident i.e. the faces are within a tolerant depth of each other. When that happens, the graphics pipeline cannot correctly resolve primitive depth and such artifacts occur. Take a look at vtkMapper::SetResolveCoincidentTopology and set polygon offset.
It looks like some alpha blending/translucency issue to me. Do you set or handle alpha channel values anywehere in your code? If so, do make sure you set valid values and set the correct alpha blending operation for the expected result. Many people think of alpha blending as a synonym of transparency/translucency setting and often they end up with unwanted effects if configured incorrectly.
I think that’s odd. Why does it work with 0.999 and not with 0.99999 or 0.99999999 or 1.0? Please, report the issue as a defect here: Issues · VTK / VTK · GitLab (kitware.com) .
@liuzhongshu If changing the opacity fixes it, means you are running into coincident geometry issues. Did you try changing the coincident topology offset parameters?