# Viz3D module issues starting with VTK 9.1.0

**URL:** <https://forum.opencv.org/t/viz3d-module-issues-starting-with-vtk-9-1-0/9082>\
**Category:** Python\
**Tags:** build, viz, vtk\
**Created:** [June 8, 2022, 2:56pm UTC](https://forum.opencv.org/t/viz3d-module-issues-starting-with-vtk-9-1-0/9082 "2022-06-08T14:56:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dshem](https://avatars.discourse-cdn.com/v4/letter/d/f6c823/32.png) [@dshem](https://forum.opencv.org/u/dshem)\
**Post date:** [June 8, 2022, 2:56pm UTC](https://forum.opencv.org/t/viz3d-module-issues-starting-with-vtk-9-1-0/9082/1 "2022-06-08T14:56:11Z")

</div>

Hi!

I already made [a topic](https://forum.opencv.org/t/any-alternative-to-viz3d-module/7012) about Viz3D not working correctly with VTK 9.1.0. There is still an issue, but it kind of changed.  
What happens now, is that the `spinOnce` method launches the Viz window, the scene and widgets update, but I am unable to rotate the camera or close the window using the q key.

I’m running Arch Linux, VTK 9.1.0 and OpenCV 4.6.0 with Python 3.10.4

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [June 8, 2022, 4:11pm UTC](https://forum.opencv.org/t/viz3d-module-issues-starting-with-vtk-9-1-0/9082/2 "2022-06-08T16:11:08Z")

</div>

that is to be expected of `spinOnce`. it spins the event loop _once_ (or for a defined amount of milliseconds). interaction requires it to be running for an amount of time that stretches over the interaction.

---

<div class="post-metadata">

**Author:** ![dshem](https://avatars.discourse-cdn.com/v4/letter/d/f6c823/32.png) [@dshem](https://forum.opencv.org/u/dshem)\
**Post date:** [June 8, 2022, 4:31pm UTC](https://forum.opencv.org/t/viz3d-module-issues-starting-with-vtk-9-1-0/9082/3 "2022-06-08T16:31:43Z")

</div>

I run it inside a `while` loop, just as it is presented in [this example](https://docs.opencv.org/4.x/d8/df0/tutorial_widget_pose.html)
