[vtk-developers] Handling System that lack OpenGL 3.2 (on windows)
Ken Martin
ken.martin at kitware.com
Thu Mar 15 10:32:03 EDT 2018
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
https://gitlab.kitware.com/vtk/vtk/commit/29607014a2dea0931ff30c0b584b25f760233245
The basic approach is as follows
1) Build VTK with the advanced cmake option VTK_USE_OPENGL_DELAYED_LOAD
turned on.
2) Include vtkTestOpenGLVersion.h in your application and call
HandleOpenGL32Issues
before you do any rendering or anything that would cause opengl
to be used. Ideally do this right at the beginning of your program.
3) Make sure you include vtkTestOpenGLVersion.exe with your application
and pass the fullpath to it as the first argument to
HandleOpenGL32Issues
4) Make sure you include the Mesa libraries with your application.
Typically
this means opengl32.dll swrAVX.dll swrAVX2.dll and graw.dll. Pass the
path
to these libraries as the second argument to HandleOpenGL32Issues
Hope this proves useful for those that need to support remote desktop or
older computers etc.
Thanks!
Ken
--
Ken Martin PhD
Distinguished Engineer
Kitware Inc.
28 Corporate Drive
Clifton Park NY 12065
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtk-developers/attachments/20180315/1fd873ae/attachment.html>
More information about the vtk-developers
mailing list