Open ScheiklP opened 1 year ago
For systems with the Nvidia GPUs and their proprietary driver: make sure to set __GLX_VENDOR_LIBRARY_NAME=mesa
Example to test if LLVMpipe is available (output should be OpenGL renderer string: llvmpipe ...
):
__GLX_VENDOR_LIBRARY_NAME=mesa LIBGL_ALWAYS_SOFTWARE=1 GALLIUM_DRIVER=llvmpipe glxinfo | grep "OpenGL renderer"
Command to run glxgears (apt install mesa-utils
) with LLVMpipe:
__GLX_VENDOR_LIBRARY_NAME=mesa LIBGL_ALWAYS_SOFTWARE=1 GALLIUM_DRIVER=llvmpipe glxgears
Since Gymnasium uses pygame, I took a look, and they use Surface instead of display, when the render_mode is set to rgb_array. Maybe that fixes the issue?
Does not work.
[ERROR] [SofaRuntime] ValueError: vector<bool>::_M_fill_insert
....
self.sofa_simulation.initVisual(self._sofa_root_node)
Pyglet supports offscreen rendering through EGL, but PyGame does not. The combination of RenderFramework.PYGAME and RenderMode.HEADLESS thus currently not work.
For the future, we should fallback to LLVMpipe and OSMesa for this case.