<div dir="ltr">In the new OpenGL2 backend if any feature works, then basically every feature in VTK works, or has a fallback that is reasonable. Unlike the old backend there are no features that may or may not work. This is mostly because OpenGL 3.2 (which is what the new backend uses) is a very capable API. <div><br></div><div>If you are looking to test if the system has support for the new backend then there are some methods on RenderWindow you can use such as SupportsOpenGL which will make sure it supports what is needed for that backend.</div><div><br></div><div>If you are looking for extending VTK with new rendering techniques then you can use glew which is built into VTK to test for features.</div><div><br></div><div>If you are looking for GPU memory limits we do not have a class that does that, but OpenGL does have methods for querying limits that may work. I believe the GPU volume renderer makes use of them.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 10, 2017 at 8:17 AM, Elvis Stansvik <span dir="ltr"><<a href="mailto:elvis.stansvik@orexplore.com" target="_blank">elvis.stansvik@orexplore.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I'd like our application to do detection of OpenGL capabilities, to<br>
make sure the capabilities are sufficient for what we're using VTK for<br>
(volume rendering with vtkGPUVolumeRayCastMapper, OpenGL2 backend +<br>
some charts stuff with vtkChartXY, in the future maybe other things).<br>
<br>
Is there any provisions in VTK itself for doing OpenGL feature<br>
detection (maybe conditioned on the parts of VTK that is to be used)?<br>
<br>
I guess I could always dig into the VTK source myself, to deduce what<br>
features are needed, and probe for that manually somehow, but it feels<br>
a bit brittle. It would be better if VTK itself could report<br>
insufficient OpenGL support in way that I can intercept, to show a<br>
meaningful error message.<br>
<br>
Anyone been in the same situation? I found this Slicer bug<br>
<br>
<a href="http://na-mic.org/Mantis/view.php?id=4252" rel="noreferrer" target="_blank">http://na-mic.org/Mantis/view.<wbr>php?id=4252</a><br>
<br>
where in the comments the developers are also discussing the<br>
possibilities of detecting OpenGL capabilities.<br>
<br>
Thanks,<br>
Elvis<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="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="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>