# Obtaining multiple z-buffers after rotating camera

**URL:** https://discourse.vtk.org/t/obtaining-multiple-z-buffers-after-rotating-camera/9503
**Category:** Support
**Tags:** python
**Created:** [September 29, 2022, 3:08pm UTC](https://discourse.vtk.org/t/obtaining-multiple-z-buffers-after-rotating-camera/9503 "2022-09-29T15:08:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![llobera](https://discourse.vtk.org/user_avatar/discourse.vtk.org/llobera/32/5540_2.png) [@llobera](https://discourse.vtk.org/u/llobera)
#### Post date: [September 29, 2022, 3:08pm UTC](https://discourse.vtk.org/t/obtaining-multiple-z-buffers-after-rotating-camera/9503/1 "2022-09-29T15:08:10Z")

</div>

I would like to be able to capture the z-buffer for different planes around my camera position. Once centered on one direction I would like to make a call back what rotate the camera by a certain number of degrees and dump the z-buffer. How can I force VTK to re-render after each camera move?  
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: [October 3, 2022, 7:09pm UTC](https://discourse.vtk.org/t/obtaining-multiple-z-buffers-after-rotating-camera/9503/2 "2022-10-03T19:09:21Z")

</div>

I worked in PyVista to do depth mapping a long while back. There is an example here: [Render a depth image — PyVista 0.43.1 documentation](https://docs.pyvista.org/examples/02-plot/image_depth.html)

which may provide useful. Further, PyVista abstracts much of the rendering logic such that doing:

> How can I force VTK to re-render after each camera move?  
> thanks

It’s pretty easy by adjusting the camera position on the PyVista Plotter and then calling `render()`

HTH
