[vtkusers] opengl2 vtk rendering back end and Qt
Marcus D. Hanwell
marcus.hanwell at kitware.com
Tue Dec 20 19:42:21 EST 2016
On Tue, Dec 20, 2016 at 12:47 AM, Alexandre Boucher <afboucher at gmail.com> wrote:
> 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?
You don't mention what OS/graphics card you are using. I have been
tracking a problem with OpenGL2 and Mesa/Intel DRI driver (based on
Mesa) with Qt 5. It looks just like this, no working depth buffer. I
proposed a patch that made it work, but it made the NVIDIA-based Linux
I am hoping that we can come up with something that will work on both,
but I haven't had time to revisit it since I looked at it in November.
I can dig up the merge request if this sounds like your set up.
More information about the vtkusers