[vtkusers] Camera Inverting Issue when Locking Z
t.stuart at dautomation.com
Fri Jan 4 11:14:01 EST 2019
I'm able to lock the Z axis always upwards when interacting with my camera via the code below. However, when moving the camera so that it's looking directly above or below the scene, the display will flip back and forth inverting.
Do you know of a better way to lock the Z axis or how can I prevent the camera from getting too close to being directly above or below the scene?
def on_mouse_move(self, obj, event):
camera = vtk_renderer.GetActiveCamera()
camera.SetViewUp(0, 0, 1)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers