[vtkusers] opengl2 vtk rendering back end and Qt

David Lonie david.lonie at kitware.com
Tue Dec 20 10:42:40 EST 2016


Looks like depth testing isn't working. Does your context have a depth
buffer?

On Tue, Dec 20, 2016 at 1:50 AM, Róbert Špir <spir.robert at gmail.com> wrote:

> I think you need to set stencil buffer size using these calls
>
>
>
> QSurfaceFormat surfaceFormat = ui->qvtkWidget->windowHandle()->format();
>
> surfaceFormat.setStencilBufferSize(8);
>
> ui->qvtkWidget->windowHandle()->setFormat(surfaceFormat);
>
>
>
> Robert
>
>
>
> *From:* vtkusers [mailto:vtkusers-bounces at vtk.org] *On Behalf Of *Alexandre
> Boucher
> *Sent:* Tuesday, December 20, 2016 6:48 AM
> *To:* vtkusers at vtk.org
> *Subject:* [vtkusers] opengl2 vtk rendering back end and Qt
>
>
>
> Hi All,
>
>
>
> I am having a problem using the opengl2 backend with QVTKWidget (I tried
> Qt 5.4 to 5.7 and vtk 7.0 and 7.1). When looking at a simple vtkImageData
> for instance some of the faces of the grid are not properly displayed, see
> image below.  Everything works fine with the opengl1 backend.
>
>
>
> I also try using QVTKWidget2, but I am getting a crash when the widget
> call OpenGLInitState().
>
>
>
> Is there a trick to use Qt and opengl2?
>
>
>
> Thanks
>
>
>
>
>
>
>
> [image: Inline image 1]
>
> _______________________________________________
> 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:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161220/b04724bb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 29648 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161220/b04724bb/attachment.png>


More information about the vtkusers mailing list