Davide Targa website

Programming, web development and open source

Enable Webgl Support in Firefox 4

WebGL is a Web-based Graphics Library. It extends the capability of the JavaScript programming language to allow it to generate interactive 3D graphics within any compatible web browser. Let’s see how we can enable it in Firefox 4!

To enable WebGL support in firefox 4 using Ubuntu 10.04 you have to install the library libosmesa6 with the following command:

1
sudo apt-get install libosmesa6

After this start up firefox and in the url bar type:

1
about:config

and press enter. Say ok to the alert message and in the search box type webgl. Double click on webglosmesalib parameter and enter the library path (like in the screenshot below).

"Firefox webgl"

In my case it’s:

1
/usr/lib/libOSMesa.so.6

Now quit and restart Firefox and WebGL support shoul be active.

Enjoy!

Comments