[vtkusers] vtkHardwareSelector blacking out window with QVTKOpenGLWidget

Ken Martin 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>
wrote:

> Hi,
>
>
> 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?
>
>
> Thanks,
>
>
> Franklin
>
> 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.
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/vtkusers
>
>


-- 
Ken Martin PhD
Distinguished Engineer
Kitware Inc.
101 East Weaver Street
Carrboro, North Carolina
27510 USA

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...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180718/9b41cd85/attachment.html>


More information about the vtkusers mailing list