# Eye-Dome Lighting and Viewport

**URL:** https://discourse.vtk.org/t/eye-dome-lighting-and-viewport/1249
**Category:** Support
**Created:** [July 2, 2019, 1:05pm UTC](https://discourse.vtk.org/t/eye-dome-lighting-and-viewport/1249 "2019-07-02T13:05:47Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![GuillaumeFavelier](https://discourse.vtk.org/user_avatar/discourse.vtk.org/guillaumefavelier/32/588_2.png) [@GuillaumeFavelier](https://discourse.vtk.org/u/GuillaumeFavelier)
#### Post date: [July 2, 2019, 1:05pm UTC](https://discourse.vtk.org/t/eye-dome-lighting-and-viewport/1249/1 "2019-07-02T13:05:47Z")

</div>

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](https://github.com/massich/pyvista_is256_mwe) 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](https://github.com/pyvista/pyvista/issues/256).

What I obtain on my end:

 ![image](https://discourse.vtk.org/uploads/default/original/1X/654984e8e6d30ad8e37ca50c10eae6478945f57a.png)

**EDIT** : Image added for illustrative purpose and fix typos.

---

<div class="post-metadata">

### Author: ![banesullivan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/banesullivan/32/7143_2.png) [@banesullivan](https://discourse.vtk.org/u/banesullivan)
#### Post date: [September 1, 2019, 4:41am UTC](https://discourse.vtk.org/t/eye-dome-lighting-and-viewport/1249/2 "2019-09-01T04:41:23Z")

</div>

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

---

<div class="post-metadata">

### Author: ![allison.vacanti](https://discourse.vtk.org/user_avatar/discourse.vtk.org/allison.vacanti/32/679_2.png) [@allison.vacanti](https://discourse.vtk.org/u/allison.vacanti)
#### Post date: [September 1, 2019, 12:49pm UTC](https://discourse.vtk.org/t/eye-dome-lighting-and-viewport/1249/3 "2019-09-01T12:49:49Z")

</div>

What version of VTK was this?

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

---

<div class="post-metadata">

### Author: ![banesullivan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/banesullivan/32/7143_2.png) [@banesullivan](https://discourse.vtk.org/u/banesullivan)
#### Post date: [September 1, 2019, 7:01pm UTC](https://discourse.vtk.org/t/eye-dome-lighting-and-viewport/1249/4 "2019-09-01T19:01:19Z")

</div>

I’m experiencing it on 8.1 and 8.2

---

<div class="post-metadata">

### Author: ![banesullivan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/banesullivan/32/7143_2.png) [@banesullivan](https://discourse.vtk.org/u/banesullivan)
#### Post date: [September 1, 2019, 7:02pm UTC](https://discourse.vtk.org/t/eye-dome-lighting-and-viewport/1249/5 "2019-09-01T19:02:04Z")

</div>

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

---

<div class="post-metadata">

### Author: ![allison.vacanti](https://discourse.vtk.org/user_avatar/discourse.vtk.org/allison.vacanti/32/679_2.png) [@allison.vacanti](https://discourse.vtk.org/u/allison.vacanti)
#### Post date: [September 4, 2019, 10:35pm UTC](https://discourse.vtk.org/t/eye-dome-lighting-and-viewport/1249/6 "2019-09-04T22:35:43Z")

</div>

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:

[https://gitlab.kitware.com/vtk/vtk/issues](https://gitlab.kitware.com/vtk/vtk/issues)

Thanks!

---

<div class="post-metadata">

### Author: ![banesullivan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/banesullivan/32/7143_2.png) [@banesullivan](https://discourse.vtk.org/u/banesullivan)
#### Post date: [February 4, 2020, 11:28pm UTC](https://discourse.vtk.org/t/eye-dome-lighting-and-viewport/1249/7 "2020-02-04T23:28:46Z")

</div>

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:

 ![Screen Shot 2020-02-04 at 4.26.44 PM](https://discourse.vtk.org/uploads/default/original/2X/0/0da909d32842b4889267f34320ad074c487b794d.jpeg)

same scenes just viewport sides flipped and the leftmost goes white

 ![Screen Shot 2020-02-04 at 4.27.51 PM](https://discourse.vtk.org/uploads/default/original/2X/0/01fb344bb57bfdcb6c1c8c9e037ed0bdb5d76515.jpeg)
