<div dir="ltr">Hello,<div><br></div><div>You may want to try with QVTKOpenGLSimpleWidget as well.</div><div>Please see this examples, available in VTK/GUISupport/Qt/Testing/Cxx<br></div><div><br></div><div>Best,</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Mathieu Westphal<br></div></div></div>
<br><div class="gmail_quote">On Wed, Jul 11, 2018 at 1:27 PM, Todd via vtkusers <span dir="ltr"><<a href="mailto:vtkusers@public.kitware.com" target="_blank">vtkusers@public.kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">You might need to install/reinstall Nvidia drivers.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On 11 Jul 2018 11:08 p.m., Todd <<a href="mailto:nztoddler@yahoo.com" target="_blank">nztoddler@yahoo.com</a>> wrote:<br type="attribution"><blockquote class="m_-196839449225794395quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div dir="auto">The reason I asked, and it might be irrelevant, is that another user was running a c++ project with VTK 8.1 on Hyper-V, which does not support opengl 2, and got a similar error. He had to install Mesa.</div><div><br><div class="m_-196839449225794395elided-text">On 11 Jul 2018 11:01 p.m., Jothybasu Selvaraj <<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>> wrote:<br type="attribution"><blockquote style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><p>Windows 10 with Nvidia card.</p><p> </p><p>Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986" target="_blank">Mail</a> for Windows 10</p><p> </p><div style="border:none;border-top:solid #e1e1e1 1pt;padding:3pt 0in 0in 0in"><p style="border:none;padding:0in"><b>From: </b><a href="mailto:nztoddler@yahoo.com" target="_blank">Todd</a><br><b>Sent: </b>Wednesday, July 11, 2018 9:00 PM<br><b>To: </b><a href="mailto:jothybasu@gmail.com" target="_blank">Jothybasu Selvaraj</a><br><b>Cc: </b><a href="mailto:vtkusers@vtk.org" target="_blank">VTK Mailing List</a><br><b>Subject: </b>Re: [vtkusers] Problem initializing GLEW with vtk8.1</p></div><p> </p><div><p>What platform are you using?</p></div><div><p> </p><div><p>On 11 Jul 2018 10:36 p.m., Jothybasu Selvaraj <<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>> wrote:</p><blockquote style="border:none;border-left:solid #cccccc 1pt;padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in"><div><div><p><span style="font-family:'verdana',sans-serif">Dear All</span></p></div><div><p><span style="font-family:'verdana',sans-serif"> </span></p></div><div><p><span style="font-family:'verdana',sans-serif">I just build vtk8.1 and tried to render a sphere using QVTKOpelnGLWidget -hope this is the recommended over QVTKWidget in vtk8.1.</span></p></div><div><p><span style="font-family:'verdana',sans-serif"> </span></p></div><div><p><span style="font-family:'verdana',sans-serif">I am getting this error. I am using QtCreator.</span></p></div><div><p><span style="font-family:'verdana',sans-serif"> </span></p></div><div><p style="margin:0in;margin-bottom:0.0001pt;white-space:pre-wrap"><span style="font-family:'verdana',sans-serif;color:black">vtkGenericOpenGLRenderWindow (00000255BB134430): GLEW could not be initialized.</span><span style="font-family:'verdana',sans-serif"></span></p><p style="margin:0in;margin-bottom:0.0001pt;white-space:pre-wrap"><span style="font-family:'verdana',sans-serif"> </span></p><p style="margin:0in;margin-bottom:0.0001pt;white-space:pre-wrap"><span style="font-family:'verdana',sans-serif;color:black">I have the following in the header file of the class which renders this:</span><span style="font-family:'verdana',sans-serif"></span></p><pre><span style="color:navy">#define</span><span style="color:silver"> </span><span style="color:navy">vtkRenderingCore_AUTOINIT</span><span style="color:silver"> </span><span style="color:navy">3</span>(<span style="color:navy">vtkInteractionStyle</span>,<span style="color:navy">vtkRende<wbr>ringFreeType</span>,<span style="color:navy">vtkRenderingOpenG<wbr>L2</span>)</pre><pre><span style="color:navy">#define</span><span style="color:silver"> </span><span style="color:navy">vtkRenderingVolume_AUTOINIT</span><span style="color:silver"> </span><span style="color:navy">1</span>(<span style="color:navy">vtkRenderingVolumeOpenGL2</span>)</pre><pre> </pre><pre>Any ideas how to fix this?</pre><pre> </pre><pre>I am coming back to VTK after suing vtk 6.x.</pre><pre> </pre><pre> </pre><pre>Regards,</pre><pre>Jothy</pre><pre> </pre><p><span style="font-family:'verdana',sans-serif"> </span></p><p><span style="font-family:'verdana',sans-serif"> </span></p></div></div></blockquote></div></div><p> </p><p> </p></div></div></blockquote></div><br></div></div></blockquote></div><br></div></div></div><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="https://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>