<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_ym19_1_1500546244716_5340"><span id="yui_3_16_0_ym19_1_1500546244716_5339">But you can build two VTK different  versions one  with OpenGL and second with OpenGL2  and to use platform supported on current machine. </span></div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1500546244716_5341"><br><br></div><div class="yahoo_quoted" id="yui_3_16_0_ym19_1_1500546244716_5418" style="display: block;">  <div style="font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13px;" id="yui_3_16_0_ym19_1_1500546244716_5417"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1500546244716_5416"> <div dir="ltr" id="yui_3_16_0_ym19_1_1500546244716_5415"> <font size="2" face="Arial" id="yui_3_16_0_ym19_1_1500546244716_5414"> <hr size="1" id="yui_3_16_0_ym19_1_1500546244716_5413"> <b><span style="font-weight:bold;">From:</span></b> Elvis Stansvik <elvis.stansvik@orexplore.com><br> <b><span style="font-weight: bold;">To:</span></b> satwik k <satwik.k8@gmail.com> <br><b><span style="font-weight: bold;">Cc:</span></b> vtk <vtkusers@vtk.org><br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, July 20, 2017 9:29 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [vtkusers] vtk-7.1 openGL 2.0 crash<br> </font> </div> <div class="y_msg_container" id="yui_3_16_0_ym19_1_1500546244716_5419"><br><div dir="ltr">2017-07-20 4:03 GMT+02:00 satwik k <<a ymailto="mailto:satwik.k8@gmail.com" href="mailto:satwik.k8@gmail.com">satwik.k8@gmail.com</a>>:<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1500546244716_5420">> Is thr any way to find out OpenGL version in VTK .<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1500546244716_5465">>  So that system which supports OpenGL 2.0 can make use of VTK 7.0 OpenGL 2.0<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1500546244716_5421">> as Rendering backed.<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1500546244716_5464">><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1500546244716_5422">> System which won't support OpenGL 2.0 can make use of OpenGL as Rendering<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1500546244716_5423">> backend.<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1500546244716_5424"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1500546244716_5463">Just some clarification: The current rendering backend in VTK is<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1500546244716_5425">called "OpenGL2", because it's the second version of the OpenGL<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1500546244716_5426">backend. It requires OpenGL 3.2.<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1500546244716_5427"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1500546244716_5428">The old backend is called just "OpenGL". I'm not sure which version of<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1500546244716_5429">OpenGL it requires.<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1500546244716_5430"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1500546244716_5431">It's easy to confuse the name of the backend "OpenGL2" and think that<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1500546244716_5432">the 2 means OpenGL version 2. But it's just a name. Perhaps it would<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1500546244716_5433">have been better to call it OpenGLNG or something for that reason.<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1500546244716_5454"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1500546244716_5455">It's not possible to build a VTK that has both the OpenGL and OpenGL2<br></div><div dir="ltr">backend built, and I'm not sure if it would be possible to deliver an<br></div><div dir="ltr">application with two versions of VTK (one with OpenGL2 and one with<br></div><div dir="ltr">OpenGL) and choose which one to use at runtime. Maybe.. but it would<br></div><div dir="ltr">be rather complicated.<br></div><div dir="ltr"><br></div><div dir="ltr">Like Ken said, if you want something that runs everywhere, I think the<br></div><div dir="ltr">only option is to build against Mesa.<br></div><div dir="ltr"><br></div><div dir="ltr">Elvis<br></div><div dir="ltr"><br></div><div dir="ltr">><br></div><div dir="ltr">><br></div><div dir="ltr">><br></div><div dir="ltr">> Regards,<br></div><div dir="ltr">> Satwik k<br></div><div dir="ltr">><br></div><div dir="ltr">> On 20-Jul-2017 00:08, "Ken Martin" <<a ymailto="mailto:ken.martin@kitware.com" href="mailto:ken.martin@kitware.com">ken.martin@kitware.com</a>> wrote:<br></div><div dir="ltr">>><br></div><div dir="ltr">>> Two options I know of<br></div><div dir="ltr">>><br></div><div dir="ltr">>> 1) build your executable against Mesa so it will run everywhere<br></div><div dir="ltr">>><br></div><div dir="ltr">>> 2) gracefully test if the hardware supports OpenGL2 and gracefully exit if<br></div><div dir="ltr">>> not. In current VTK you can do this but I think in 7.1 it may not work.<br></div><div dir="ltr">>> Basically call renWin->GetSupportsOpenGL() and handle accordingly.<br></div><div dir="ltr">>><br></div><div dir="ltr">>><br></div><div dir="ltr">>><br></div><div dir="ltr">>> On Wed, Jul 19, 2017 at 7:58 AM, Satwik <<a ymailto="mailto:satwik.k8@gmail.com" href="mailto:satwik.k8@gmail.com">satwik.k8@gmail.com</a>> wrote:<br></div><div dir="ltr">>>><br></div><div dir="ltr">>>> Hi,<br></div><div dir="ltr">>>><br></div><div dir="ltr">>>> I configured VTK-7.1 with *openGL2* as Rendering Backend.<br></div><div dir="ltr">>>><br></div><div dir="ltr">>>> But, When i tried to run Volume Rendering or any VTK applications in the<br></div><div dir="ltr">>>> machine which is not having openGL2.0. *Application is getting crashed*.<br></div><div dir="ltr">>>><br></div><div dir="ltr">>>> How well can i handle this..????<br></div><div dir="ltr">>>><br></div><div dir="ltr">>>><br></div><div dir="ltr">>>> Regards,<br></div><div dir="ltr">>>> satwik k<br></div><div dir="ltr">>>><br></div><div dir="ltr">>>><br></div><div dir="ltr">>>><br></div><div dir="ltr">>>> --<br></div><div dir="ltr">>>> View this message in context:<br></div><div dir="ltr">>>> <a href="http://vtk.1045678.n5.nabble.com/vtk-7-1-openGL-2-0-crash-tp5744014.html" target="_blank">http://vtk.1045678.n5.nabble.com/vtk-7-1-openGL-2-0-crash-tp5744014.html</a><br></div><div dir="ltr">>>> Sent from the VTK - Users mailing list archive at Nabble.com.<br></div><div dir="ltr">>>> _______________________________________________<br></div><div dir="ltr">>>> Powered by www.kitware.com<br></div><div dir="ltr">>>><br></div><div dir="ltr">>>> Visit other Kitware open-source projects at<br></div><div dir="ltr">>>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br></div><div dir="ltr">>>><br></div><div dir="ltr">>>> Please keep messages on-topic and check the VTK FAQ at:<br></div><div dir="ltr">>>> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br></div><div dir="ltr">>>><br></div><div dir="ltr">>>> Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" target="_blank">http://markmail.org/search/?q=vtkusers</a><br></div><div dir="ltr">>>><br></div><div dir="ltr">>>> Follow this link to subscribe/unsubscribe:<br></div><div dir="ltr">>>> <a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br></div><div dir="ltr">>><br></div><div dir="ltr">>><br></div><div dir="ltr">>><br></div><div dir="ltr">>><br></div><div dir="ltr">>> --<br></div><div dir="ltr">>> Ken Martin PhD<br></div><div dir="ltr">>> Distinguished Engineer<br></div><div dir="ltr">>> Kitware Inc.<br></div><div dir="ltr">>> 28 Corporate Drive<br></div><div dir="ltr">>> Clifton Park NY 12065<br></div><div dir="ltr">>><br></div><div dir="ltr">>> This communication, including all attachments, contains confidential and<br></div><div dir="ltr">>> legally privileged information, and it is intended only for the use of the<br></div><div dir="ltr">>> addressee.  Access to this email by anyone else is unauthorized. If you are<br></div><div dir="ltr">>> not the intended recipient, any disclosure, copying, distribution or any<br></div><div dir="ltr">>> action taken in reliance on it is prohibited and may be unlawful. If you<br></div><div dir="ltr">>> received this communication in error please notify us immediately and<br></div><div dir="ltr">>> destroy the original message.  Thank you.<br></div><div dir="ltr">><br></div><div dir="ltr">><br></div><div dir="ltr">> _______________________________________________<br></div><div dir="ltr">> Powered by www.kitware.com<br></div><div dir="ltr">><br></div><div dir="ltr">> Visit other Kitware open-source projects at<br></div><div dir="ltr">> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br></div><div dir="ltr">><br></div><div dir="ltr">> Please keep messages on-topic and check the VTK FAQ at:<br></div><div dir="ltr">> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br></div><div dir="ltr">><br></div><div dir="ltr">> Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" target="_blank">http://markmail.org/search/?q=vtkusers</a><br></div><div dir="ltr">><br></div><div dir="ltr">> Follow this link to subscribe/unsubscribe:<br></div><div dir="ltr">> <a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br></div><div dir="ltr">><br></div><div dir="ltr">_______________________________________________<br></div><div dir="ltr">Powered by www.kitware.com<br></div><div dir="ltr"><br></div><div dir="ltr">Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br></div><div dir="ltr"><br></div><div dir="ltr">Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br></div><div dir="ltr"><br></div><div dir="ltr">Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" target="_blank">http://markmail.org/search/?q=vtkusers</a><br></div><div dir="ltr"><br></div><div dir="ltr">Follow this link to subscribe/unsubscribe:<br></div><div dir="ltr"><a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br></div><br><br></div> </div> </div>  </div></div></body></html>