<div dir='auto'>I'd be interested to know whether or not you notice any performance issues using Mesa.</div><div class="gmail_extra"><br><div class="gmail_quote">On 23 May 2018 3:33 p.m., Jesse Kinross-Smith <Jesse.Kinross-Smith@bentley.com> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<div>
<p>Ahh! Mesa.. of course! (I’d completely forgotten about that project)</p>
<p> </p>
<p>All I had to do was install Mesa on the VMs and that has enabled them to use software rendering without changing a line of code.</p>
<p><a href="https://github.com/pal1000/mesa-dist-win">https://github.com/pal1000/mesa-dist-win</a> was really helpful here and just did a system wide deployment for my test VM.</p>
<p>This enables us to at least deploy this on our automated test environment and get things going there.</p>
<p> </p>
<p>I’m using VTK 8.1.0 atm, but will look at the helper when I upgrade things and try and do this better.</p>
<p> </p>
<p>Thanks David!</p>
<p> </p>
<p>Regards,</p>
<p> </p>
<p>Jesse</p>
<p>--</p>
<p>Jesse Kinross-Smith</p>
<p>Senior Software Engineer - BSW</p>
<p>Bentley Systems, Fremantle</p>
<p> </p>
<p><b>From:</b> David E DeMarle [mailto:dave.demarle@kitware.com]
<br />
<b>Sent:</b> Wednesday, 23 May 2018 4:42 AM<br />
<b>To:</b> Todd Martin <nztoddler@yahoo.com><br />
<b>Cc:</b> vtk <vtkusers@vtk.org>; Jesse Kinross-Smith <Jesse.Kinross-Smith@bentley.com><br />
<b>Subject:</b> Re: [vtkusers] Failed to get wglChoosePixelFormatARB on VM</p>
<p> </p>
<div>
<p>In VTK 8.1.1 on windows, there is a helper that:</p>
<div>
<p> </p>
</div>
<div>
<p>1) makes a system call intended to test openGL compatibility</p>
</div>
<div>
<p>2) lets you swap in mesa if required.</p>
</div>
<div>
<div>
<p> </p>
</div>
<div>
<p>See Rendering/OpenGL/vtkTestOpenGLVersion.h and <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__gitlab.kitware.com_vtk_vtk_commit_2d10325efedca53a6262550db94484ccc8a12e49&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=LAWtQyKjaVtb40DNHOGshfhWRtzOCjVvBx7_bOhQ6LQ&s=YWTvq_SH7QU1PkypBIcAWBUyd-hVC_H0DAxlQf3_c6A&e="><span style="font-size:9.5pt;font-family:'arial' , sans-serif;color:#1155cc;background:white">https://gitlab.kitware.com/vtk/vtk/commit/2d10325efedca53a6262550db94484ccc8a12e49</span></a></p>
</div>
<div>
<p> </p>
</div>
<div>
<p>David E DeMarle</p>
</div>
</div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p>Kitware, Inc.<br />
Principal Engineer<br />
21 Corporate Drive<br />
Clifton Park, NY 12065-8662<br />
Phone: 518-881-4909</p>
</div>
</div>
</div>
</div>
</div>
</div>
<p> </p>
<div>
<p>On Tue, May 22, 2018 at 3:47 AM, Todd Martin via vtkusers <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>> wrote:</p>
<blockquote style="border:none;border-left:solid #cccccc 1pt;padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<div>
<div>
<p style="margin-bottom:12pt"><span style="font-size:12pt;font-family:'helvetica' , sans-serif">Failing that you could try using Virtualbox.</span></p>
</div>
<div>
<p><span style="font-size:12pt;font-family:'helvetica' , sans-serif"> </span></p>
</div>
<div>
<div>
<div>
<p><span style="font-size:12pt;font-family:'helvetica' , sans-serif">Todd Martin, Ph.D.</span></p>
</div>
<div>
<p><span style="font-size:12pt;font-family:'helvetica' , sans-serif">Freelance Engineer/Software Architect.</span></p>
</div>
<p><span style="font-size:12pt;font-family:'helvetica' , sans-serif"> </span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p><span style="font-size:12pt;font-family:'helvetica' , sans-serif"> </span></p>
</div>
<div>
<p><span style="font-size:12pt;font-family:'helvetica' , sans-serif"> </span></p>
</div>
<div>
<div>
<div>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a">On Tuesday, May 22, 2018, 6:56:58 PM GMT+12, Jesse Kinross-Smith <<a href="mailto:Jesse.Kinross-Smith@bentley.com">Jesse.Kinross-Smith@bentley.com</a>>
wrote: </span></p>
</div>
<div>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a"> </span></p>
</div>
<div>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a"> </span></p>
</div>
<div>
<div>
<div>
<div>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a">So it looks like Microsoft’s VM’s only support OpenGL 1.1, and of course our library is built using OpenGL2.</span></p>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a">Somehow I thought there’d be a fallback option in case it wasn’t supported, but this doesn’t seem to be
the case.</span></p>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a"> </span></p>
<p><span style="font-size:10pt;font-family:'segoe ui emoji' , sans-serif;color:#26282a">☹</span><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a"></span></p>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a">Jesse</span></p>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a">--</span></p>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a">Jesse Kinross-Smith</span></p>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a">Senior Software Engineer - BSW</span></p>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a">Bentley Systems, Fremantle</span></p>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a"> </span></p>
<div>
<div>
<div style="border:none;border-top:solid #e1e1e1 1pt;padding:3pt 0cm 0cm 0cm">
<p><b><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a">From:</span></b><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a"> Todd
Martin [mailto:<a href="mailto:nztoddler@yahoo.com">nztoddler@yahoo.com</a>]
<br />
<b>Sent:</b> Tuesday, 22 May 2018 1:56 PM<br />
<b>To:</b> vtk <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>>; Jesse Kinross-Smith <<a href="mailto:Jesse.Kinross-Smith@bentley.com">Jesse.Kinross-Smith@bentley.com</a>><br />
<b>Subject:</b> Re: [vtkusers] Failed to get wglChoosePixelFormatARB on VM</span></p>
</div>
</div>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a"> </span></p>
<div>
<div>
<div>
<p><span style="font-size:12pt;font-family:'helvetica' , sans-serif;color:#26282a"><br />
Did you install GLEW on the virtual machine?</span><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a"></span></p>
</div>
<div>
<p><span style="font-size:12pt;font-family:'helvetica' , sans-serif;color:#26282a"> </span><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a"></span></p>
</div>
<div>
<p><span style="font-size:12pt;font-family:'helvetica' , sans-serif;color:#26282a"> </span><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a"></span></p>
</div>
<div>
<div>
<div>
<p><span style="font-size:12pt;font-family:'helvetica' , sans-serif;color:#26282a">Todd Martin, Ph.D.</span><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a"></span></p>
</div>
<div>
<p><span style="font-size:12pt;font-family:'helvetica' , sans-serif;color:#26282a">Freelance Engineer/Software Architect.</span><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a"></span></p>
</div>
<p><span style="font-size:12pt;font-family:'helvetica' , sans-serif;color:#26282a"> </span><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a"></span></p>
</div>
</div>
</div>
<div>
<p><span style="font-size:12pt;font-family:'helvetica' , sans-serif;color:#26282a"> </span><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a"></span></p>
</div>
<div>
<p><span style="font-size:12pt;font-family:'helvetica' , sans-serif;color:#26282a"> </span><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a"></span></p>
</div>
<div>
<div>
<div>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a">On Tuesday, May 22, 2018, 5:33:53 PM GMT+12, Jesse Kinross-Smith <<a href="mailto:Jesse.Kinross-Smith@bentley.com">Jesse.Kinross-Smith@bentley.com</a>>
wrote: </span></p>
</div>
<div>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a"> </span></p>
</div>
<div>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a"> </span></p>
</div>
<div>
<div>
<div>
<div>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a">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><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a"> </span></p>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a">ERROR: In C:\hg\sharedlibs\VTK-8.1.0\Rendering\OpenGL2\vtkWin32OpenGLRenderWindow.cxx, line 685</span></p>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a">vtkWin32OpenGLRenderWindow (000001D110ADE9F0): failed to get wglChoosePixelFormatARB</span></p>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a">ERROR: In C:\hg\sharedlibs\VTK-8.1.0\Rendering\OpenGL2\vtkWin32OpenGLRenderWindow.cxx, line 769</span></p>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a">vtkWin32OpenGLRenderWindow (000001D110ADE9F0): failed to get valid pixel format.</span></p>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a">ERROR: In C:\hg\sharedlibs\VTK-8.1.0\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx, line 785</span></p>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a">vtkWin32OpenGLRenderWindow (000001D110ADE9F0): GLEW could not be initialized.</span></p>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a"> </span></p>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a">We’re using the vtkMFCWindow class and I don’t see any fallback options anywhere.</span></p>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a">Is there any way this can default to software rendering on low end machines like this?</span></p>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a"> </span></p>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a">Jesse</span></p>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a">--</span></p>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a">Jesse Kinross-Smith</span></p>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a">Senior Software Engineer - BSW</span></p>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a">Bentley Systems, Fremantle</span></p>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a"> </span></p>
</div>
</div>
</div>
<p><span style="font-size:10pt;font-family:'helvetica' , sans-serif;color:#26282a">_______________________________________________<br />
Powered by <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=LAWtQyKjaVtb40DNHOGshfhWRtzOCjVvBx7_bOhQ6LQ&s=sGMDKt7Uoqcj_hTM_yl65V92dQnOb8ofk91Q8VV-cZI&e=">
www.kitware.com</a><br />
<br />
Visit other Kitware open-source projects at <a 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=">
http://www.kitware.com/opensource/opensource.html</a><br />
<br />
Please keep messages on-topic and check the VTK FAQ at: <a 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=">
http://www.vtk.org/Wiki/VTK_FAQ</a><br />
<br />
Search the list archives at: <a 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=">
http://markmail.org/search/?q=vtkusers</a><br />
<br />
Follow this link to subscribe/unsubscribe:<br />
<a 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=">https://vtk.org/mailman/listinfo/vtkusers</a></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p style="margin-bottom:12pt"><br />
_______________________________________________<br />
Powered by <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=LAWtQyKjaVtb40DNHOGshfhWRtzOCjVvBx7_bOhQ6LQ&s=sGMDKt7Uoqcj_hTM_yl65V92dQnOb8ofk91Q8VV-cZI&e=">
www.kitware.com</a><br />
<br />
Visit other Kitware open-source projects at <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com_opensource_opensource.html&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=LAWtQyKjaVtb40DNHOGshfhWRtzOCjVvBx7_bOhQ6LQ&s=-psFdc7GUu8-VvnRZtKZDfGVerTjPTD30TizeyLpq3Q&e=">
http://www.kitware.com/opensource/opensource.html</a><br />
<br />
Please keep messages on-topic and check the VTK FAQ at: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.vtk.org_Wiki_VTK-5FFAQ&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=LAWtQyKjaVtb40DNHOGshfhWRtzOCjVvBx7_bOhQ6LQ&s=oBV9CgopOin0khnxKDNIODROvypqdfMttkqnim8UPVk&e=">
http://www.vtk.org/Wiki/VTK_FAQ</a><br />
<br />
Search the list archives at: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__markmail.org_search_-3Fq-3Dvtkusers&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=LAWtQyKjaVtb40DNHOGshfhWRtzOCjVvBx7_bOhQ6LQ&s=2agetOYTbkyZ_lDcpXuD5rShB0wDeccaExoBFXaz0yU&e=">
http://markmail.org/search/?q=vtkusers</a><br />
<br />
Follow this link to subscribe/unsubscribe:<br />
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__vtk.org_mailman_listinfo_vtkusers&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=LAWtQyKjaVtb40DNHOGshfhWRtzOCjVvBx7_bOhQ6LQ&s=e_xMNJdXo6jh-jwkpk7MUm-89pyeFYpjdE0LYDu5O04&e=">https://vtk.org/mailman/listinfo/vtkusers</a></p>
</blockquote>
</div>
<p> </p>
</div>
</div>
</div>
</div>
</blockquote></div><br></div>