[vtkusers] Using VTK 7.1 with GL 3.0 version crashing the application

Ken Martin ken.martin at kitware.com
Mon Sep 18 12:40:31 EDT 2017


VTK needs OpenGL 3.2 so if your VM has an option for that, that would be
the best route. If not you can use Mesa to provide an OpenGL 3.2
implementation for your VM.  While parts of VTK may work with OpenGL 3.0
others may crash because they rely on 3.2 features.

On Sun, Sep 17, 2017 at 10:49 PM, Chandrasekhar B <
chandrasekhar at waveaxis.com> wrote:

> I have a crash when importing stl file in the virtual machine.
> I am using VTK 7.1 version. The crash is because of the GLSL version
> supported by the VM.
> The GL version supported by VM is 3.0.
>
> I have fixed this issue in the following function by adding the following
> code.
>
> unsigned int vtkOpenGLShaderCache::ReplaceShaderValues(
>   std::string &VSSource,
>   std::string &FSSource,
>   std::string &GSSource)
> {
>
> if (glMajorVersion >= 3)
>     {
>     version = "#version 150\n";
> if (glMajorVersion == 3 && glMinorVersion == 0)
> {
> version = "#version 130\n";
> }
> }
>
> Just wanted to check, is this right fix?
> How do I support GL 3.0 using VTK 7.1?
> or do I need to upgrade to later version of VTK?
> Currently, all the VMs we have use GL 1.3.
>
> Regards
> Shekar
>
> _______________________________________________
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170918/d25dc847/attachment.html>


More information about the vtkusers mailing list