<div dir="ltr">In VTK 8.1.1 on windows, there is a helper that:<div><br></div><div>1) makes a system call intended to test openGL compatibility</div><div>2) lets you swap in mesa if required.</div><div><div><br></div><div>See Rendering/OpenGL/<wbr>vtkTestOpenGLVersion.h and <a href="https://gitlab.kitware.com/vtk/vtk/commit/2d10325efedca53a6262550db94484ccc8a12e49" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)" target="_blank">https://gitlab.kitware.<wbr>com/vtk/vtk/commit/2d10325efed<wbr>ca53a6262550db94484ccc8a12e49</a><br></div><div><br></div><div>David E DeMarle<br></div></div><div class="gmail_extra"><div><div class="m_8690112913915432068gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Kitware, Inc.<br>Principal Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4909</div></div></div></div></div></div>
<br><div class="gmail_quote">On Tue, May 22, 2018 at 3:47 AM, Todd Martin via vtkusers <span dir="ltr"><<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:16px"><div><div>Failing that you could try using Virtualbox.<br><br></div><span><div><br></div><div class="m_8690112913915432068m_3012706835007420726ydpd72e0b86signature"><div style="font-size:16px"><div>Todd Martin, Ph.D.<br></div><div>Freelance Engineer/Software Architect.</div><br></div></div></span></div><div><div class="m_8690112913915432068h5">
<div><br></div><div><br></div>
<div id="m_8690112913915432068m_3012706835007420726yahoo_quoted_7801013491" class="m_8690112913915432068m_3012706835007420726yahoo_quoted">
<div style="font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;color:#26282a">
<div>
On Tuesday, May 22, 2018, 6:56:58 PM GMT+12, Jesse Kinross-Smith <<a href="mailto:Jesse.Kinross-Smith@bentley.com" target="_blank">Jesse.Kinross-Smith@bentley.c<wbr>om</a>> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id="m_8690112913915432068m_3012706835007420726yiv9300875591"><div>
<div class="m_8690112913915432068m_3012706835007420726yiv9300875591WordSection1">
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591MsoNormal">So it looks like Microsoft’s VM’s only support OpenGL 1.1, and of course our library is built using OpenGL2.</p>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591MsoNormal">Somehow I thought there’d be a fallback option in case it wasn’t supported, but this doesn’t seem to be the case.</p>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591MsoNormal"> </p>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591MsoNormal"><span>☹</span></p>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591MsoNormal">Jesse</p>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591MsoNormal">--</p>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591MsoNormal">Jesse Kinross-Smith</p>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591MsoNormal">Senior Software Engineer - BSW</p>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591MsoNormal">Bentley Systems, Fremantle</p>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591MsoNormal"> </p>
<div class="m_8690112913915432068m_3012706835007420726yiv9300875591yqt7775985771" id="m_8690112913915432068m_3012706835007420726yiv9300875591yqt64469"><div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591MsoNormal"><b>From:</b> Todd Martin [mailto:<a href="mailto:nztoddler@yahoo.com" target="_blank">nztoddler@yahoo.com</a>] <br clear="none">
<b>Sent:</b> Tuesday, 22 May 2018 1:56 PM<br clear="none">
<b>To:</b> vtk <<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>>; Jesse Kinross-Smith <<a href="mailto:Jesse.Kinross-Smith@bentley.com" target="_blank">Jesse.Kinross-Smith@bentley.c<wbr>om</a>><br clear="none">
<b>Subject:</b> Re: [vtkusers] Failed to get wglChoosePixelFormatARB on VM</p>
</div>
</div>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591MsoNormal"> </p>
<div>
<div>
<div>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591MsoNormal"><span style="font-size:12.0pt"><br clear="none">
Did you install GLEW on the virtual machine?</span></p>
</div>
<div>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591MsoNormal"><span style="font-size:12.0pt"> </span></p>
</div>
<div>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591MsoNormal"><span style="font-size:12.0pt"> </span></p>
</div>
<div>
<div>
<div>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591MsoNormal"><span style="font-size:12.0pt">Todd Martin, Ph.D.</span></p>
</div>
<div>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591MsoNormal"><span style="font-size:12.0pt">Freelance Engineer/Software Architect.</span></p>
</div>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591MsoNormal"><span style="font-size:12.0pt"> </span></p>
</div>
</div>
</div>
<div>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591MsoNormal"><span style="font-size:12.0pt"> </span></p>
</div>
<div>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591MsoNormal"><span style="font-size:12.0pt"> </span></p>
</div>
<div id="m_8690112913915432068m_3012706835007420726yiv9300875591yahoo_quoted_7661031766">
<div>
<div>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591MsoNormal"><span style="font-size:10.0pt">On Tuesday, May 22, 2018, 5:33:53 PM GMT+12, Jesse Kinross-Smith <<a rel="nofollow" shape="rect" href="mailto:Jesse.Kinross-Smith@bentley.com" target="_blank">Jesse.Kinross-Smith@bentley.c<wbr>om</a>> wrote:
</span></p>
</div>
<div>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591MsoNormal"><span style="font-size:10.0pt"> </span></p>
</div>
<div>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591MsoNormal"><span style="font-size:10.0pt"> </span></p>
</div>
<div>
<div id="m_8690112913915432068m_3012706835007420726yiv9300875591">
<div>
<div>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591msonormal"><span style="font-size:10.0pt">Getting the following errors when testing our app with VTK rendering on a Hyper-V virtual machine (works great on my laptop though):</span></p>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591msonormal"><span style="font-size:10.0pt"> </span></p>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591msonormal"><span style="font-size:10.0pt">ERROR: In C:\hg\sharedlibs\VTK-8.1.0\Ren<wbr>dering\OpenGL2\vtkWin32OpenGLR<wbr>enderWindow.cxx, line 685</span></p>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591msonormal"><span style="font-size:10.0pt">vtkWin32OpenGLRenderWindow (000001D110ADE9F0): failed to get wglChoosePixelFormatARB</span></p>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591msonormal"><span style="font-size:10.0pt">ERROR: In C:\hg\sharedlibs\VTK-8.1.0\Ren<wbr>dering\OpenGL2\vtkWin32OpenGLR<wbr>enderWindow.cxx, line 769</span></p>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591msonormal"><span style="font-size:10.0pt">vtkWin32OpenGLRenderWindow (000001D110ADE9F0): failed to get valid pixel format.</span></p>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591msonormal"><span style="font-size:10.0pt">ERROR: In C:\hg\sharedlibs\VTK-8.1.0\Ren<wbr>dering\OpenGL2\vtkOpenGLRender<wbr>Window.cxx, line 785</span></p>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591msonormal"><span style="font-size:10.0pt">vtkWin32OpenGLRenderWindow (000001D110ADE9F0): GLEW could not be initialized.</span></p>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591msonormal"><span style="font-size:10.0pt"> </span></p>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591msonormal"><span style="font-size:10.0pt">We’re using the vtkMFCWindow class and I don’t see any fallback options anywhere.</span></p>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591msonormal"><span style="font-size:10.0pt">Is there any way this can default to software rendering on low end machines like this?</span></p>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591msonormal"><span style="font-size:10.0pt"> </span></p>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591msonormal"><span style="font-size:10.0pt">Jesse</span></p>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591msonormal"><span style="font-size:10.0pt">--</span></p>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591msonormal"><span style="font-size:10.0pt">Jesse Kinross-Smith</span></p>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591msonormal"><span style="font-size:10.0pt">Senior Software Engineer - BSW</span></p>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591msonormal"><span style="font-size:10.0pt">Bentley Systems, Fremantle</span></p>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591msonormal"><span style="font-size:10.0pt"> </span></p>
</div>
</div>
</div>
<p class="m_8690112913915432068m_3012706835007420726yiv9300875591MsoNormal"><span style="font-size:10.0pt">______________________________<wbr>_________________<br clear="none">
Powered by <a rel="nofollow" shape="rect" href="http://www.kitware.com" target="_blank">www.kitware.com</a><br clear="none">
<br clear="none">
Visit other Kitware open-source projects at <a rel="nofollow" shape="rect" href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com_opensource_opensource.html&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=FK6sM6Bp3hbBX5EMYm2faK9qcACWQxeJcUnKBuPmoWI&s=bqbTWJI4m5_7_qEnO2JKkvbluKt8OCZB4gYwDl9xUpI&e=" target="_blank">
http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br clear="none">
<br clear="none">
Please keep messages on-topic and check the VTK FAQ at: <a rel="nofollow" shape="rect" href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.vtk.org_Wiki_VTK-5FFAQ&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=FK6sM6Bp3hbBX5EMYm2faK9qcACWQxeJcUnKBuPmoWI&s=UzFAHgl7PyQg5ESRLyUxCocKInz_vIzTQ_d1cJRd0VU&e=" target="_blank">
http://www.vtk.org/Wiki/VTK_FA<wbr>Q</a><br clear="none">
<br clear="none">
Search the list archives at: <a rel="nofollow" shape="rect" href="https://urldefense.proofpoint.com/v2/url?u=http-3A__markmail.org_search_-3Fq-3Dvtkusers&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=FK6sM6Bp3hbBX5EMYm2faK9qcACWQxeJcUnKBuPmoWI&s=FBdGMsou1CQoJAQ6LND1TyA0NVI1KbJVx4vcVuvrWF0&e=" target="_blank">
http://markmail.org/search/?q=<wbr>vtkusers</a><br clear="none">
<br clear="none">
Follow this link to subscribe/unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__vtk.org_mailman_listinfo_vtkusers&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=FK6sM6Bp3hbBX5EMYm2faK9qcACWQxeJcUnKBuPmoWI&s=0tDVpJThCwRRKDpjOerLgkBKOzJbzHtlrNCi_KBFapY&e=" target="_blank">https://vtk.org/mailman/listin<wbr>fo/vtkusers</a></span></p>
</div>
</div>
</div>
</div></div>
</div>
</div></div></div>
</div>
</div></div></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/opensou<wbr>rce/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_FA<wbr>Q</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://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/listin<wbr>fo/vtkusers</a><br>
<br></blockquote></div><br></div></div>