<div dir="ltr"><div>Hi Ian,<br><br></div>Ken is right in that your Mesa is using softpipe instead of llvmpipe (see the line that says "Renderer: Gallium 0.4 on softpipe"), which won't give you the necessary OpenGL version, at least not out of the box. There are a few things you can try though to make it work as is. See if you can force the use of llvmpipe instead by setting the environment variable GALLIUM_DRIVER=llvmpipe. If your Mesa build contains that driver then it should force it's use. Also, try forcing the OpenGL version by setting MESA_GL_VERSION_OVERRIDE=3.3. This can work in certain scenarios where the full openGL spec might not be available but enough of it is for VTK to use. Where are the Mesa binaries you're using coming from?<br><br><div><div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">----------<br>Chuck Atkins<br>Staff R&D Engineer, Scientific Computing<br>Kitware, Inc.<br><br></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Tue, Sep 27, 2016 at 8:36 AM, Ken Martin <span dir="ltr"><<a href="mailto:ken.martin@kitware.com" target="_blank">ken.martin@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">It looks like your version of mesa is using softpipe. I believe the better choice these days is llvmpipe. I think llvmpipe and SWR are the two main options we use for software rendering now.</div><div class="gmail_extra"><div><div class="gmail-h5"><br><div class="gmail_quote">On Tue, Sep 27, 2016 at 6:59 AM, ianl <span dir="ltr"><<a href="mailto:ilindsay@insigniamedical.co.uk" target="_blank">ilindsay@insigniamedical.co.<wbr>uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
I am attempting to use VTK built with the new OpenGL2 backend on a<br>
virtualised environment (Windows Server 2012 R2 running on VirtualBox).<br>
Unsurprisingly this does not work due to the limitations of VirtualBox's<br>
OpenGL driver (the old OpenGL backend did work however).<br>
<br>
To address this to allow testing, I have downloaded and built Mesa 12.0.3,<br>
64 bit target for Windows (Gallium?) with the intention of getting the<br>
application running so I can do some debugging. I accept that performance<br>
will not be great.<br>
<br>
I have little experience with this, so it is likely that I will have done<br>
something wrong, but I seem to get the following error from VTK, even though<br>
glview (OpenGL Extensions Viewer 4.4.4) claims that the extension the error<br>
is talking about (gpu_shader4) is implemented by Mesa:<br>
<br>
ERROR: In D:\Build\VTK\VTK 7.1.x<br>
23_09_2016\VTKSource\Rendering<wbr>\OpenGL2\vtkOpenGLRenderWindow<wbr>.cxx, line 640<br>
vtkWin32OpenGLRenderWindow (0000007421E0B9A0): GL version 2.1 with the<br>
gpu_shader4 extension is not supported by your graphics driver but is<br>
required for the new OpenGL rendering backend. Please update your OpenGL<br>
driver. If you are using Mesa please make sure you have version 10.6.5 or<br>
later and make sure your driver in Mesa supports OpenGL 3.2.<br>
<br>
I am a bit confused about the final part of the error message about the<br>
'driver in Mesa' needing to support OpenGL 3.2, glview states that the<br>
version supported fully is 3.0, although 3.2 is 80% supported. Does this<br>
mean that the new back end is not yet supported by the latest version of<br>
Mesa?<br>
<br>
Has anyone else attempted this yet? I have installed Mesa by just copying<br>
the built opengl32.dll to the local directory and I have verified that this<br>
is the one being loaded rather than the system one. Are there any options I<br>
need to set when building Mesa to implement the required extensions?<br>
<br>
Thanks in advance,<br>
Ian<br>
<br>
See below for a screenshot of glview:<br>
<<a href="http://vtk.1045678.n5.nabble.com/file/n5740561/glviewScreenShot.jpg" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.<wbr>com/file/n5740561/glviewScreen<wbr>Shot.jpg</a>><br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/OpenGL2-using-mesa-tp5740561.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.c<wbr>om/OpenGL2-using-mesa-tp574056<wbr>1.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<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/opensou<wbr>rce/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_FA<wbr>Q</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/mail<wbr>man/listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="gmail-HOEnZb"><font color="#888888">-- <br><div>Ken Martin PhD<div>Chairman & CFO<br>Kitware Inc.<br>28 Corporate Drive<br>Clifton Park NY 12065<br><a href="tel:518%20371%203971" value="+15183713971" target="_blank">518 371 3971</a><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>
</font></span></div>
<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>
<br></blockquote></div><br></div></div></div></div>