<div dir="ltr"><div><div>To clarify on Utkarsh's answer, "OpenGL2" is just the name of the backend (as the second OpenGL backend to VTK). The required version of OpenGL to use the "OpenGL2" backend is OpenGL 3.2.<br><br></div>HTH,<br></div>Shawn<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 19, 2017 at 11:30 AM, BBerco <span dir="ltr"><<a href="mailto:bebe0705@colorado.edu" target="_blank">bebe0705@colorado.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Utkarsh,<br>
thanks for the suggestion.<br>
<br>
I'm trying to have this working on my Mac first.<br>
<br>
I have replaced the QVTKWidget by a QVTKOpenGLWidget, and set its render<br>
window to a vtkGenericOpenGLRenderWindow.<br>
<br>
*<br>
vtkSmartPointer< vtkGenericOpenGLRenderWindow> render_window =<br>
vtkSmartPointer< vtkGenericOpenGLRenderWindow>:<wbr>:New();<br>
this -> qvtkWidget -> SetRenderWindow(render_window)<wbr>;<br>
this -> qvtkWidget -> GetRenderWindow() -> AddRenderer(this -> renderer);<br>
*<br>
<br>
Unfortunately it segfaults after returning the following error message:<br>
*<br>
Warning: In<br>
/Users/bbercovici/VTK/VTK_<wbr>source/Rendering/OpenGL2/<wbr>vtkOpenGLRenderWindow.cxx,<br>
line 835<br>
vtkGenericOpenGLRenderWindow (0x7f97260f8e00): VTK is designed to work with<br>
OpenGL version 3.2 but it appears it has been given a context that does not<br>
support 3.2. VTK will run in a compatibility mode designed to work with<br>
earlier versions of OpenGL but some features may not work.<br>
<br>
ERROR: In<br>
/Users/bbercovici/VTK/VTK_<wbr>source/Rendering/OpenGL2/<wbr>vtkOpenGLPolyDataMapper2D.cxx,<br>
line 902<br>
vtkOpenGLPolyDataMapper2D (0x7f9727e15960): failed after RenderOverlay 1<br>
OpenGL errors detected<br>
0 : (1280) Invalid enum<br>
*<br>
<br>
<br>
I recompiled VTK beforehand with the -DVTK_RENDERING_BACKEND:<wbr>STRING=OpenGL2<br>
flag. Is OpenGL3 a thing?<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/QVTK-Widget-odd-behavior-on-Ubuntu-16-10-and-NVidia-GPU-tp5744016p5744018.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.<wbr>com/QVTK-Widget-odd-behavior-<wbr>on-Ubuntu-16-10-and-NVidia-<wbr>GPU-tp5744016p5744018.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the VTK - Users mailing list archive at Nabble.com.<br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br></div>