OpenGL/WebGL Support
OpenGL Support
While OpenGL and WebGL are not officially supported on the hardware we use for the supercomputers, we have found a way to get decent, but not perfect performance by using the Mesa3D libraries. This includes open-source implementations of OpenGL, OpenGL ES, Vulkan, and OpenCL.
Steps
- Request a virtual desktop on the web portal with at least 8 CPU cores
- In the virtual desktop, open a terminal and load the following two modules
- sol
- phoenix
module load gcc-12.1.0-gcc-11.2.0
module load mesa-22.0.2-gcc-11.2.0
module load mesa-23.0.3-2v
-
In the same terminal, start the application (e.g., Firefox). Applications started from this terminal will support OpenGL.
-
(Optional) Certain websites in Firefox may still not detect OpenGL. In that case, perform these additional steps:
a. In the address bar, type
about:config(accept the risk and continue)b. In the list, search for
webgl.forceand set"webgl.force-enable"totrue
