# How to transparently render only the background

**URL:** https://discourse.vtk.org/t/how-to-transparently-render-only-the-background/10998
**Category:** Support
**Created:** [March 17, 2023, 3:43am UTC](https://discourse.vtk.org/t/how-to-transparently-render-only-the-background/10998 "2023-03-17T03:43:48Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![shanzeipan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/shanzeipan/32/6684_2.png) [@shanzeipan](https://discourse.vtk.org/u/shanzeipan)
#### Post date: [March 17, 2023, 3:43am UTC](https://discourse.vtk.org/t/how-to-transparently-render-only-the-background/10998/1 "2023-03-17T03:43:48Z")

</div>

I’m trying to use vtk on pyqt5. I just need to display the model in the background of my window. The background rendered by Renerer is too ugly. Can I make the background of Renerer transparent?

 ![QQ图片20230317114133](https://discourse.vtk.org/uploads/default/original/2X/c/c1324a564cfcaacce0e8de25b798583fcd826fd1.jpeg)

---

<div class="post-metadata">

### Author: ![rexthor](https://discourse.vtk.org/user_avatar/discourse.vtk.org/rexthor/32/6481_2.png) [@rexthor](https://discourse.vtk.org/u/rexthor)
#### Post date: [March 17, 2023, 2:16pm UTC](https://discourse.vtk.org/t/how-to-transparently-render-only-the-background/10998/2 "2023-03-17T14:16:15Z")

</div>

Stack Overflow had a [similar question](https://stackoverflow.com/questions/34789933/vtk-setting-transparent-renderer-background).  
The VTK link they point to is broken, but was probably meant to be [this page](https://kitware.github.io/vtk-examples/site/Cxx/Utilities/Screenshot/)?

---

<div class="post-metadata">

### Author: ![shanzeipan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/shanzeipan/32/6684_2.png) [@shanzeipan](https://discourse.vtk.org/u/shanzeipan)
#### Post date: [March 18, 2023, 7:40am UTC](https://discourse.vtk.org/t/how-to-transparently-render-only-the-background/10998/3 "2023-03-18T07:40:31Z")

</div>

Thank you for your answer. I will try this method when I have time.
