fury-gl / fury

FURY - Free Unified Rendering in pYthon.
https://fury.gl
Other
244 stars 182 forks source link

Textblock disappears when lod=True in actor.streamtube #114

Open Garyfallidis opened 5 years ago

Garyfallidis commented 5 years ago

Not sure why this is happening - looks like some potential vtk bug and internal shader conflict.

ChenCheng0630 commented 4 years ago

To better illustrate the issue:

This is when the streamtube actor is just a vtkActor(lod=False), we can see the TextBlock2D is visible.

Screenshot 2020-03-09 at 12 39 37 PM

This is when the streamtube actor is a vtkLODActor(lod=True), we can see the TextBlock2D is gone.

Screenshot 2020-03-09 at 12 39 09 PM

This problem is indeed as what @Garyfallidis suggests: an internal vtk bug, as mentioned in this link: https://gitlab.kitware.com/vtk/vtk/issues/15775

By setting BackfaceCulling off, we can see things come back to normal, even with lod=True.

Screenshot 2020-03-09 at 5 55 30 PM

I wonder how shall we solve the problem? Shall we set backfaceculling specifically?