[vtkusers] vtkHardwareSelector blacking out window with QVTKOpenGLWidget
fking1 at bwh.harvard.edu
Wed Jul 18 13:31:32 EDT 2018
I've been attempting to run what is essentially this example of extracting visible cells using vtkHardwareSelector (https://www.vtk.org/Wiki/VTK/Examples/Cxx/Filtering/ExtractVisibleCells) but with the render window displayed within a QVTKOpenGLWidge instead.
Doing so, however, results in the entire window failing to render and appearing black upon this line:
vtkSelection* selection = selector->Select();
I've tried disabling multisampling with both QSurfaceFormat and vtkRenderWindow to no avail.
The window does, however, briefly render correctly (and the selection appearing successful) upon resizing events. Curiously, with a debug build it also renders correctly upon calling Select() again.
I am using VTK 9 with Qt 5.10.1, and I've confirmed that there is no issue when implementing with just a vtkRenderWindow or using QVTKWidget in VTK 7. Any idea as to what is going wrong?
The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers