[vtkusers] vtkHardwareSelector blacking out window with QVTKOpenGLWidget
ken.martin at kitware.com
Wed Jul 18 14:48:44 EDT 2018
How recent is the VTK you tried with, there were significant changes made
to this code in the past week? Can you zip up a small example I could
build and try?
On Wed, Jul 18, 2018 at 1:31 PM, King, Franklin <fking1 at bwh.harvard.edu>
> 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
> addressed. If you believe this e-mail was sent to you in error and the
> contains patient information, please contact the Partners Compliance
> HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in
> but does not contain patient information, please contact the sender and
> dispose of the e-mail.
> Powered by www.kitware.com
> Visit other Kitware open-source projects at http://www.kitware.com/
> Please keep messages on-topic and check the VTK FAQ at:
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> Follow this link to subscribe/unsubscribe:
Ken Martin PhD
101 East Weaver Street
Carrboro, North Carolina
This communication, including all attachments, contains confidential and
legally privileged information, and it is intended only for the use of the
addressee. Access to this email by anyone else is unauthorized. If you are
not the intended recipient, any disclosure, copying, distribution or any
action taken in reliance on it is prohibited and may be unlawful. If you
received this communication in error please notify us immediately and
destroy the original message. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers