QVTKRenderWindowInteractor and QSurfaceFormat

I’ve run into an issue on Linux when rendering and unstructured grid with SetRepresentationToSurface(). On Windows, it works great, but with testing on Linux the surfaces don’t seem to be rendering in the correct order and I’m seeing the inside of the structure when I’m not supposed to, some cells are only visible from one side, etc. If I give the whole thing some transparency, it renders as I would expect.

Looking through the messages here, it seems that I need to set QSurfaceFormat to the CompatibilityProfile, but I’m in Python and QVTKRenderWindowInteractor doesn’t seem to have an obvious way to set that. Is there a way to do it that I’m missing?

Thanks!

Try to render that file in Paraview or 3D Slicer. If rendering is similarly broken in these software, too, then maybe it is caused by a graphics driver bug.