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
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
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