[vtkusers] Custom VTK Cocoa window flickers gray on new macOS
alessandro.volz at gmail.com
Tue Nov 13 14:06:37 EST 2018
Hi, thanks for your reply,
I mean, from 10.13 to 10.14, no change in 10.14.1.
We also noticed this only happens when linking against the 10.14 SDK (Xcode 10.x) or with dark mode support enabled on Xcode 9.3.x (through the Info.plist).
I can try reproduce, no guarantee. It’ll also take me a while to do, so if anyone has any pointers, please please :)
> On 13 Nov 2018, at 19:34, Sean McBride <sean at rogue-research.com> wrote:
> 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.
> 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