[vtkusers] OpenGL2 using mesa

ianl ilindsay at insigniamedical.co.uk
Thu Sep 29 08:22:44 EDT 2016


Hi, I have now managed to get Mesa to build with LLVM 3.7.1 (yay!), thanks to
this post:
https://www.phoronix.com/forums/forum/linux-graphics-x-org-drivers/opengl-vulkan-mesa-gallium3d/883984-windows-binaries-for-mesa-12-llvmpipe-and-openswr

Apparently LLVMipa seems to have been dropped in the newer releases - CMake
does not even generate a project for it. This prevents Mesa from linking -
not sure what is going on here. However, LLVM 3.7.1 does produce this
library and Mesa goes on to build successfully with it.

I have verified with glview that LLVMPipe is being used.

However, I still have the warning (as expected from RobertS's post?), and I
get a crash when I set the render window to off screen mode via
SetOffScreenRendering(1). I have checked that I have called
SetMultiSamples(0) on the render window.

I expect the next thing you will tell me is that Mesa does not support
offscreen rendering. I have seen mention of OSMesa (Off Screen Mesa?) in the
VTK CMake config - is this worth pursuing?

An interesting additional piece of information here is that the old build of
VTK we were using (6.1) works fine (with off screen rendering) with the new
Mesa opengl.dll built above (but slowly as you would expect).

Any further ideas, or am I flogging a dead horse here?



--
View this message in context: http://vtk.1045678.n5.nabble.com/OpenGL2-using-mesa-tp5740561p5740585.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list