Fixing the unstable camera up vector when rotating horizontally

Thank you Andras for your suggestion. I don’t think that it comes from a race condition on my side as I don’t have long rendering, and also it occurs for all scenes.

Your suggestion about ModifiedEvent led me to read more about observables in VTK and I found a workaround that avoid modifying vtkCamera (which answers my second question!) :

renderWindowInteractor.AddObserver('InteractionEvent', CameraObserver(renderer.GetActiveCamera()))

class CameraObserver(object):
    def __init__(self, cam):
        self.cam = cam

    def __call__(self, caller, ev):
        self.cam.SetViewUp(0, 0, 1)

The swing effect is not visible that much when not using an axis cube, which may be the reason why the camera movement have been accepted as is up to now.

Thank you for puting on the good track :slight_smile: