<div dir="ltr"><div><br></div><div>With some help (thanks!) I have added some support for dynamically testing for OpenGL 3.2 support and then selecting Mesa software rendering when needed. It is part of this commit </div><div><br></div><div><a href="https://gitlab.kitware.com/vtk/vtk/commit/29607014a2dea0931ff30c0b584b25f760233245">https://gitlab.kitware.com/vtk/vtk/commit/29607014a2dea0931ff30c0b584b25f760233245</a><br></div><div><br></div><div>The basic approach is as follows</div><div><br></div><div><div> 1) Build VTK with the advanced cmake option VTK_USE_OPENGL_DELAYED_LOAD<br></div><div> turned on.</div><div> </div><div> 2) Include vtkTestOpenGLVersion.h in your application and call HandleOpenGL32Issues</div><div> before you do any rendering or anything that would cause opengl</div><div> to be used. Ideally do this right at the beginning of your program.</div><div> </div><div> 3) Make sure you include vtkTestOpenGLVersion.exe with your application</div><div> and pass the fullpath to it as the first argument to HandleOpenGL32Issues</div><div> </div><div> 4) Make sure you include the Mesa libraries with your application. Typically</div><div> this means opengl32.dll swrAVX.dll swrAVX2.dll and graw.dll. Pass the path</div><div> to these libraries as the second argument to HandleOpenGL32Issues</div></div><div><br></div><div><br></div>Hope this proves useful for those that need to support remote desktop or older computers etc.<div><br></div><div>Thanks!</div><div>Ken<br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Ken Martin PhD<div>Distinguished Engineer<br><span style="font-size:12.8px">Kitware Inc.</span><br></div><div>28 Corporate Drive<br>Clifton Park NY 12065<br><div><br></div><div><span style="font-size:10pt;font-family:Tahoma,sans-serif">This communication,
including all attachments, contains confidential and legally privileged
information, and it is intended only for the use of the addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken in reliance on it is prohibited and may be
unlawful. If you received this communication in error please notify us
immediately and destroy the original message.
Thank you.</span></div></div></div></div></div>
</div></div>