[vtkusers] Custom VTK Cocoa window flickers gray on new macOS

Sean McBride sean at rogue-research.com
Tue Nov 13 13:34:55 EST 2018


On Tue, 13 Nov 2018 12:11:33 +0100, Alessandro Volz said:

>I am a contributor to the Horos project (the FOSS inherited from
>OsiriX). In this project, we use VTK for the Volume Rendering window.
>When I say 'custom', I mean that we assign our own NSView and NSWindow
>to the vtkCocoaRenderWindow (through SetWindowId and SetRootWindow), and
>initialize the vtkRenderWindowInteractor inside the first drawRect: call.
>
>With the latest macOS update we have this strange behavior in the VR
>window. Somehow, the VTK render sometimes doesn't successfully get drawn
>on screen:
>- the window is initially gray
>- when resizing, it flickers between gray and render
>- when calling the underlying interactor, the resulting updated image is
>rendered on screen (for example when rotating).
>
>Do you have any advice how to fix this?

When you say new macOS, which do you mean?  10.14.1 vs 10.14?  10.14.x vs 10.13.x?

Could you try to create a repro case based on the SimpleCocoaVTK example?

Our usage of VTK is similar, but we haven't seen this issue.

Cheers,

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada




More information about the vtkusers mailing list