Open gnurser opened 9 years ago
Confirmed with Mac OS. I believe this has to do with the use of vtkCocoaRenderWindow available since OS X 10.6 with VTK_USE_COCOA turned ON during VTK build (default). Investigating. Related to PR #317
Reopen, as #331 is reverted.
This occurs on OSX 10.9.5 (AMD 6750M graphics card) with mayavi 4.4.2.
A simple test of off screen rendering and image saving, such as:
gives a blank output (i.e. a black image).
However, if a new render window is created and then the figure's renderer is added to this render window, for example (based on tvtk offscreen example code, could undoubtedly be cleaned up):
the image output is correct.
From a brief inspection it's not clear as to how the new render window differs from the one that is automatically generated.
Regardless of whether the image is saved correctly, the rendering seems to be much slower when
mlab.options.offscreen = True
than whenmlab.options.offscreen = False
.