# Lighting not disabled for slice representation

**URL:** https://discourse.paraview.org/t/lighting-not-disabled-for-slice-representation/2321
**Category:** ParaView Support
**Created:** [July 30, 2019, 1:09pm UTC](https://discourse.paraview.org/t/lighting-not-disabled-for-slice-representation/2321 "2019-07-30T13:09:35Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![bastian](https://discourse.paraview.org/user_avatar/discourse.paraview.org/bastian/32/7513_2.png) [@bastian](https://discourse.paraview.org/u/bastian)
#### Post date: [July 30, 2019, 1:09pm UTC](https://discourse.paraview.org/t/lighting-not-disabled-for-slice-representation/2321/1 "2019-07-30T13:09:35Z")

</div>

Contradictory to the [release notes of version 5.6](https://www.paraview.org/Wiki/ParaView_Release_Notes#Slice_representation_lighting_is_turned_off),

> Lighting on the **Slice** representation had the undesirable effect of darkening the slice with the default light, which is off center with respect to the view and focal points. We assume the common use case for this representation is to view the data as directly as possible to match colors on the slice with colors in the color legend. To better support this use case, **lighting is disabled for this representation**.

lighting is not disabled for slices in version 5.6 and 5.7.

Steps to reproduce the issue:

- Sources \> FastUniformGrid
- Add Slice, apply

![Screenshot%20from%202019-07-30%2015-03-34](https://discourse.paraview.org/uploads/default/original/2X/7/712913bfd81fa666a4c09277f0d5b9a2e9ab538d.png)

 ![Screenshot%20from%202019-07-30%2015-03-24](https://discourse.paraview.org/uploads/default/original/2X/4/435bdb189b03257af1fa3efc68a03938207ac25f.png)

You will notice that the shade of blue changes depending on the viewing angle although it is supposed to represent the one blue associated with the value that is visualized on the slice.

I know that I can turn off lighting globally by dropping the following lines into the python console,

```
RenderView1 = GetRenderView() 
RenderView1.UseLight = 0

```

but this is not helpful in situations with both, 3d surfaces and slices.

I really need to be able to have lighting turned on for contour surfaces while it being turned off for slices. Does anyone know a workaround?

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [July 30, 2019, 2:04pm UTC](https://discourse.paraview.org/t/lighting-not-disabled-for-slice-representation/2321/2 "2019-07-30T14:04:47Z")

</div>

You are using the **Slice** filter to produce a slice. That surface is indeed still intended to be lit as it is a 3D object in space.

The **Slice** representation (available in the dropdown menu in the toolbar) is the slice representation that has lighting disabled.

 ![image](https://discourse.paraview.org/uploads/default/original/2X/4/4e80fd524800a70762475d61bba9a1e5e0be4867.png)

To disable lighting on the output of the **Slice** _filter_ as you have produced it, you can set the _Diffuse_ lighting term to 0 and the _Ambient_ lighting term to 1 in the Lighting section of the _Display_ properties in the _Properties Panel_.

---

<div class="post-metadata">

### Author: ![bastian](https://discourse.paraview.org/user_avatar/discourse.paraview.org/bastian/32/7513_2.png) [@bastian](https://discourse.paraview.org/u/bastian)
#### Post date: [July 30, 2019, 2:14pm UTC](https://discourse.paraview.org/t/lighting-not-disabled-for-slice-representation/2321/3 "2019-07-30T14:14:57Z")

</div>

Okay I see, so to be able to view multiple slices I will have to add multiple ExtractSubset filters and switch the representation of each one of them to Slice.

On the other hand there is still no way of obtaining a non-lit slice that is not aligned with the coordinate system.

From my point of view it would make more sense to add a “Turn-Off-Lighting”-checkbox to the properties-tab of any object.

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [July 30, 2019, 2:18pm UTC](https://discourse.paraview.org/t/lighting-not-disabled-for-slice-representation/2321/4 "2019-07-30T14:18:04Z")

</div>

> [@bastian](#):
>
> On the other hand there is still no way of obtaining a non-lit slice that is not aligned with the coordinate system.

See the last paragraph in my first response. It is possible, it just takes two steps instead of one 🙂

---

<div class="post-metadata">

### Author: ![bastian](https://discourse.paraview.org/user_avatar/discourse.paraview.org/bastian/32/7513_2.png) [@bastian](https://discourse.paraview.org/u/bastian)
#### Post date: [July 30, 2019, 2:22pm UTC](https://discourse.paraview.org/t/lighting-not-disabled-for-slice-representation/2321/5 "2019-07-30T14:22:58Z")

</div>

> [@cory.quammen](#):
>
> See the last paragraph in my first response. It is possible, it just takes two steps instead of one 🙂

😌 oops  
Thank you Cory! I’m sure your response will be helpful to others too.
