Eye-Dome Lighting and Viewport

In a vtkRenderWindow using multiple instances of vtkRenderer each in its own viewport, how does one can manage to enable vtkEDLShading in one renderer without whitening the others? Is this behaviour expected or did I maybe misuse/misconfigure some parameters? Any feedback/help on this matter would be greatly appreciated.

As additional material, this Github repository contains a minimum working example that reproduces this behaviour in Python (using PyVista or pure VTK) and in C++. For completion, it’s also referenced as a PyVista issue.

What I obtain on my end:

EDIT: Image added for illustrative purpose and fix typos.

1 Like

It would be super helpful if anyone knows how to mitigate this issue

What version of VTK was this?

It was working last year, see https://gitlab.kitware.com/vtk/vtk/commit/db6ef665900f352b8da5bd98cfab287eb6da2de2. That fix was available in VTK 8.2.0.

I’m experiencing it on 8.1 and 8.2

Note that I am using the VTK python bindings from Anaconda which is built on 8.2: https://anaconda.org/anaconda/vtk

It does sound like a regression then. I’m not sure if anyone has the cycles to look into this at the moment, but feel free to file a bug for this so we remember to come back to it at some point:



Has anyone figured this out yet? I’d really love to do subplotting where one view has topography viewed with eye dome lighting and other scenes with more data not using EDL.

I can do this by having the EDL view as the upper left most viewport but anywhere else and the other viewports go white:

same scenes just viewport sides flipped and the leftmost goes white