<div dir="ltr">Yes, Andy made a change in VTK master recently (last week?) that I think may fix the issue. Hopefully :-)</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 5, 2018 at 10:19 AM, Sophonet <span dir="ltr"><<a href="mailto:vtk12af6bc42@kant.sophonet.de" target="_blank">vtk12af6bc42@kant.sophonet.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">For the files: This seemed to do the trick with the :<br>
<br>
<a href="https://www.vtk.org/pipermail/vtk-developers/2017-November/035592.html" rel="noreferrer" target="_blank">https://www.vtk.org/pipermail/<wbr>vtk-developers/2017-November/0<wbr>35592.html</a><br>
<br>
Even though print(rw.ReportCapabilities()) did not reveal any extensions, rendering now works... hope that this gets fixed some time.<br>
<br>
Thanks,<br>
<br>
     Sophonet<br>
<br>
<br>
On 2018-01-05 15:42, Sophonet wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
One more update:<br>
<br>
First of all some correction: glxinfo of course shows the X rendering<br>
capabilities, not the OSMesa ones, so glxinfo is not the tool of<br>
choice.<br>
<br>
Then: It seems that Ubuntu's mesa (16.04 update) does not ship with<br>
llvmpipe drivers for OSMesa, so I have built OSMesa myself, without X,<br>
based on Utkarsh's hints at<br>
<a href="https://blog.kitware.com/messing-with-mesa-for-paraview-5-0vtk-7-0/" rel="noreferrer" target="_blank">https://blog.kitware.com/messi<wbr>ng-with-mesa-for-paraview-5-<wbr>0vtk-7-0/</a>.<br>
<br>
However, it seems that no OpenGL extensions are available (see output below).<br>
<br>
Any hint how mesa needs to be compiled / what runtime variables need<br>
to be set in order to support OpenGL extensions in OSMesa?<br>
<br>
Thanks,<br>
<br>
     Sophonet<br>
<br>
<br>
Debug output:<br>
In [1]: import vtk<br>
In [2]: rw = vtk.vtkRenderWindow()<br>
In [3]: rw.SetOffScreenRendering(1)<br>
In [4]: rw.Render()<br>
ERROR: In<br>
/home/CODE1/dep14473/SW/source<wbr>/VTK-8.1.0/Rendering/OpenGL2/<wbr>vtkOpenGLRenderWindow.cxx,<br>
line 797<br>
vtkOSOpenGLRenderWindow (0x2ebb060): 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<br>
OpenGL driver. If you are using Mesa please make sure you have version<br>
10.6.5 or later and make sure your driver in Mesa supports OpenGL 3.2.<br>
<br>
In [5]: print(rw.ReportCapabilities())<br>
OpenGL vendor string:  VMware, Inc.<br>
OpenGL renderer string:  llvmpipe (LLVM 5.0, 256 bits)<br>
OpenGL version string:  3.3 (Core Profile) Mesa 17.3.1<br>
OpenGL extensions:<br>
<br>
---- (No OpenGL extensions are reported)<br>
<br>
<br>
On 2018-01-04 14:35, Sophonet wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi list, happy new year!<br>
<br>
I have compiled VTK 8.1.0 on a headless Ubuntu 16.04 with OSMesa<br>
support (flags: -D VTK_RENDERING_BACKEND="OpenGL2<wbr>" -D<br>
VTK_OPENGL_HAS_OSMESA=True).<br>
<br>
Using python (for example), I see an error about an unsupported OpenGL<br>
version (see below). However, Ubuntu comes with mesa 17.2.4 (which<br>
should be recent enough). Moreover, glxinfo shows "OpenGL core profile<br>
version string: 3.3 (Core Profile) Mesa 17.2.4.<br>
<br>
Any clues what went wrong?<br>
<br>
Thanks,<br>
<br>
      Sophonet<br>
<br>
<br>
In [1]: import vtk<br>
In [2]: rw = vtk.vtkRenderWindow()<br>
In [3]: rw.SetOffScreenRendering(1)<br>
In [4]: rw.Render()<br>
ERROR: In<br>
/home/CODE1/dep14473/SW/source<wbr>/VTK-8.1.0/Rendering/OpenGL2/<wbr>vtkOpenGLRenderWindow.cxx,<br>
line 797<br>
vtkOSOpenGLRenderWindow (0x1991250): 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<br>
OpenGL driver. If you are using Mesa please make sure you have version<br>
10.6.5 or later and make sure your driver in Mesa supports OpenGL 3.2.<br>
<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<br>
<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:<br>
<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="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/listin<wbr>fo/vtkusers</a><br>
</blockquote>
______________________________<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<br>
<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:<br>
<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="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/listin<wbr>fo/vtkusers</a><br>
</blockquote>
______________________________<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="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/listin<wbr>fo/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>