<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">After some off-list exchanges, I want to get this thread back on the mailing list.<div class=""><br class=""></div><div class="">There is indeed a problem that also comes up with the SimpleCocoaVTK sample project. In Mojave, when built using the 10.14 SDK, SimpleCocoaVTK opens without displaying the rendered images. Interacting with the view displays the results.</div><div class="">If you modify the project so the views are resized along with the window, the problem gets worse. When resizing, the render will flicker while resizing, and the result after resizing will depend on the latest state.</div><div class=""><br class=""></div><div class="">Generally speaking, it seems to me, it works until you call [MyVTKView setNeedsDisplay:YES] or [MyVTKView display]. I also feel like this problem has something to do with double buffering, but I haven't gotten around it.</div><div class=""><br class=""></div><div class="">This thread suggests a solution: <a href="https://stackoverflow.com/questions/52938516/opengl-not-rendering-on-macos-mojave" class="">https://stackoverflow.com/questions/52938516/opengl-not-rendering-on-macos-mojave</a></div><div class="">But that doesn't fix it for us. However, it explains the changes that are probably causing the problem.</div><div class=""><br class=""></div><div class="">Other OpenGL-on-Mojave-related threads I found suggest calling [NSOpenGLContext update] at the right moments to fix it. I've tried, I've failed.</div><div class=""><br class=""></div><div class="">Any suggestions?</div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""></div><div class="">Alessandro</div><div class=""><br class=""></div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Nov 16, 2018, at 10:52 PM, Alessandro Volz <<a href="mailto:alessandro.volz@gmail.com" class="">alessandro.volz@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi again,<div class=""><br class=""></div><div class="">I actually came around and got the SimpleCocoaVTK example to build against my VTK libs. </div><div class=""><br class=""></div><div class="">Is it supposed to just show a gray window with two "Do Something" buttons? I suppose not.</div><div class=""><br class=""></div><div class="">So, chances are, I'm building VTK the wrong way. Here is my CMake:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">cmake /Users/ale/Work/VTK -DVTK_USE_X:BOOL=OFF -DVTK_USE_COCOA:BOOL=ON -DBUILD_DOCUMENTATION=OFF -DBUILD_EXAMPLES=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTING=OFF -DCMAKE_OSX_DEPLOYMENT_TARGET=10.11 -DCMAKE_OSX_ARCHITECTURES=x86_64 -DVTK_Group_StandAlone=OFF -DVTK_Group_Rendering=OFF -DModule_vtkIOImage=ON -DModule_vtkFiltersGeneral=ON -DModule_vtkImagingMorphological=ON -DModule_vtkImagingStencil=ON -DModule_vtkRenderingOpenGL2=ON -DModule_vtkRenderingVolumeOpenGL2=ON -DModule_vtkRenderingAnnotation=ON -DModule_vtkInteractionWidgets=ON -DModule_vtkIOGeometry=ON -DModule_vtkIOExport=ON -DModule_vtkFiltersTexture=ON -DModule_vtktiff=ON -DVTK_USE_SYSTEM_ZLIB:BOOL=ON -DVTK_USE_SYSTEM_EXPAT=ON -DVTK_USE_SYSTEM_LIBXML2=ON -DCMAKE_INSTALL_PREFIX=/Users/ale/Work/VTK-Install -DVTK_INSTALL_INCLUDE_DIR=include '-DCMAKE_CXX_FLAGS=-w -fvisibility=default -stdlib=libc++ -std=c++0x'</div></div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div class=""><div class="">Do you see anything suspicious?</div><div class=""><br class=""></div><div class="">Could you build the SimpleCocoaVTK on your mac, zip it up and send it to me, to test if the problem is at hardware level or at build level?</div><div class=""><br class=""></div><div class="">Best,</div><div class=""><br class=""></div><div class="">Alessandro</div><div class=""><br class=""><blockquote type="cite" class=""><div class="">On Nov 16, 2018, at 4:34 PM, Sean McBride <<a href="mailto:sean@rogue-research.com" class="">sean@rogue-research.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">On Tue, 13 Nov 2018 20:06:37 +0100, Alessandro Volz said:<br class=""><br class=""><blockquote type="cite" class="">I mean, from 10.13 to 10.14, no change in 10.14.1.<br class=""><br class="">We also noticed this only happens when linking against the 10.14 SDK<br class="">(Xcode 10.x) or with dark mode support enabled on Xcode 9.3.x (through<br class="">the Info.plist).<br class=""><br class="">I can try reproduce, no guarantee. It’ll also take me a while to do, so<br class="">if anyone has any pointers, please please :)<br class=""></blockquote><br class="">Another thought: do any of VTK's existing unit tests exhibit the problem?<br class=""><br class="">Cheers,<br class=""><br class="">-- <br class="">____________________________________________________________<br class="">Sean McBride, B. Eng <a href="mailto:sean@rogue-research.com" class="">sean@rogue-research.com</a><br class="">Rogue Research <a href="http://www.rogue-research.com/" class="">www.rogue-research.com</a> <br class="">Mac Software Developer Montréal, Québec, Canada<br class=""></div></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></body></html>