[vtkusers] vtk-7.1 openGL 2.0 crash

Leonid Dulman leonid_dulman at yahoo.co.uk
Thu Jul 20 06:29:10 EDT 2017


But you can build two VTK different  versions one  with OpenGL and second with OpenGL2  and to use platform supported on current machine. 

      From: Elvis Stansvik <elvis.stansvik at orexplore.com>
 To: satwik k <satwik.k8 at gmail.com> 
Cc: vtk <vtkusers at vtk.org>
 Sent: Thursday, July 20, 2017 9:29 AM
 Subject: Re: [vtkusers] vtk-7.1 openGL 2.0 crash
   
2017-07-20 4:03 GMT+02:00 satwik k <satwik.k8 at gmail.com>:
> Is thr any way to find out OpenGL version in VTK .
>  So that system which supports OpenGL 2.0 can make use of VTK 7.0 OpenGL 2.0
> as Rendering backed.
>
> System which won't support OpenGL 2.0 can make use of OpenGL as Rendering
> backend.

Just some clarification: The current rendering backend in VTK is
called "OpenGL2", because it's the second version of the OpenGL
backend. It requires OpenGL 3.2.

The old backend is called just "OpenGL". I'm not sure which version of
OpenGL it requires.

It's easy to confuse the name of the backend "OpenGL2" and think that
the 2 means OpenGL version 2. But it's just a name. Perhaps it would
have been better to call it OpenGLNG or something for that reason.

It's not possible to build a VTK that has both the OpenGL and OpenGL2
backend built, and I'm not sure if it would be possible to deliver an
application with two versions of VTK (one with OpenGL2 and one with
OpenGL) and choose which one to use at runtime. Maybe.. but it would
be rather complicated.

Like Ken said, if you want something that runs everywhere, I think the
only option is to build against Mesa.

Elvis

>
>
>
> Regards,
> Satwik k
>
> On 20-Jul-2017 00:08, "Ken Martin" <ken.martin at kitware.com> wrote:
>>
>> Two options I know of
>>
>> 1) build your executable against Mesa so it will run everywhere
>>
>> 2) gracefully test if the hardware supports OpenGL2 and gracefully exit if
>> not. In current VTK you can do this but I think in 7.1 it may not work.
>> Basically call renWin->GetSupportsOpenGL() and handle accordingly.
>>
>>
>>
>> On Wed, Jul 19, 2017 at 7:58 AM, Satwik <satwik.k8 at gmail.com> wrote:
>>>
>>> Hi,
>>>
>>> I configured VTK-7.1 with *openGL2* as Rendering Backend.
>>>
>>> But, When i tried to run Volume Rendering or any VTK applications in the
>>> machine which is not having openGL2.0. *Application is getting crashed*.
>>>
>>> How well can i handle this..????
>>>
>>>
>>> Regards,
>>> satwik k
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://vtk.1045678.n5.nabble.com/vtk-7-1-openGL-2-0-crash-tp5744014.html
>>> Sent from the VTK - Users mailing list archive at Nabble.com.
>>> _______________________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the VTK FAQ at:
>>> http://www.vtk.org/Wiki/VTK_FAQ
>>>
>>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/vtkusers
>>
>>
>>
>>
>> --
>> 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.
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers


   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170720/ef4b46d5/attachment.html>


More information about the vtkusers mailing list