# Disable transparency when using 2 renderers

**URL:** https://discourse.vtk.org/t/disable-transparency-when-using-2-renderers/3551
**Category:** Support
**Created:** [June 15, 2020, 11:43am UTC](https://discourse.vtk.org/t/disable-transparency-when-using-2-renderers/3551 "2020-06-15T11:43:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mastrogiorgis](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mastrogiorgis/32/3167_2.png) [@mastrogiorgis](https://discourse.vtk.org/u/mastrogiorgis)
#### Post date: [June 15, 2020, 11:43am UTC](https://discourse.vtk.org/t/disable-transparency-when-using-2-renderers/3551/1 "2020-06-15T11:43:02Z")

</div>

Hello,  
I have two renderers, one to visualise the blocks as seen below

 ![blocks](https://discourse.vtk.org/uploads/default/original/2X/1/1fc82a82172cf732e1740638fd1daf4d415246f4.jpeg)  
and another one to visualise the floor as below  
 ![blocks-floor](https://discourse.vtk.org/uploads/default/original/2X/f/f34e423558e6f7c5784f5e264931201f3feb08e8.jpeg)  
It seems that transparency is causing the floor to show above the blocks.  
Is there any advice on this issue please?

Many thanks

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [June 16, 2020, 1:27am UTC](https://discourse.vtk.org/t/disable-transparency-when-using-2-renderers/3551/2 "2020-06-16T01:27:44Z")

</div>

If you want to render semi-transparent surfaces correctly then you need to make sure triangles are ordered by depth. The simplest way to achieve that is to enable depth peeling in your renderer. Of course, you must add all your actors to a single renderer.

---

<div class="post-metadata">

### Author: ![mastrogiorgis](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mastrogiorgis/32/3167_2.png) [@mastrogiorgis](https://discourse.vtk.org/u/mastrogiorgis)
#### Post date: [June 17, 2020, 11:27am UTC](https://discourse.vtk.org/t/disable-transparency-when-using-2-renderers/3551/3 "2020-06-17T11:27:06Z")

</div>

Thank you @lassoan. I checked the depth peeling recommendations prior to submitting this question but the issue here is that in my architecture I need to separate two scenes, hence, two renderers. Changing the order of layers improves things but is not perfect. Any further advice would be great!  
Best,
