Howto enable WebGL on 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.

WebGL is a context of the canvas HTML element that provides a 3D computer graphics API without the use of plug-ins.

Problem

After recent installation of firefox 4 i am getting the following error message

This Browser does not support WebGL

Solution

First you need to install the following package

sudo apt-get install libosmesa6

After installing above package open your browser and type about:config address bar and search for webgl.osmesalib now you need to add string type as /usr/lib/libOSMesa.so.6

Finall restart your firefox

You can check if webgl is working or not go to https://demos.mozilla.org/en-US/ and play 360° Video.

Sponsored Link

Related posts

You may also like...

13 Responses

  1. amir says:

    i’ve done this but still that problem again 🙁 !

  2. amir says:

    i also set MOZ_GLX_IGNORE_BLACKLIST=1 cause im using intel graphic card and its i915 driver.

  3. Ambus says:

    Thanks a lot! It worked for me.

  4. floatr says:

    Even w forced webgl it doesn’t work (HD3470, 11.2 driver)

  5. Dusten B. says:

    Hmmm. Everything on that page, including 360 view, works for me out-of-box. I changed nothing.

    Ubuntu Maverick
    FF4
    nvidia-current 270.29

  6. axt says:

    webgl only works if “webgl.force_osmesa” is set.

    Ubuntu Maverick/64, Fx v4.0 (self-compiled).

  7. MikeK says:

    I made these changes on Ubuntu 10.04 with Firefox 4 and Skype video stopped working, as did Cheese and guvcview. Removal of libosmesa6 and reverting Firefox allowed them all to function again. So something strange going on here.

  8. Yuk says:

    I have made the change in config but i can’t download the webgl package. There is no any link.
    Webgl still not working.

  9. mrr says:

    If you use mesa libraries you only get webgl with software acceleration. I have not checked for firefox 4 (I am using chrome). But if you have direct rendering support for opengl without the browser you should only need to enable a flag in about:config and not the mesa one.

  10. blink4blog says:

    Why we need this setting if your graphic card already supporting hardware OpenGL rendering capabilities. If you dig from Synaptic on this package:

    Mesa Off-screen rendering extension

    OSmesa is a Mesa extension that allows programs to render to an
    off-screen buffer using the OpenGL API without having to create a
    rendering context on an X Server. It uses a pure software renderer.

    This package provides both 16-bit and 32-bit versions of the off-screen
    renderer which do not require external libraries to work.

    Canonical provides critical updates for libosmesa6 until April 2013.

  11. mrr says:

    Strange I do not need that library to get webgl with native hardware support to work with chrome.

  12. Ernesto says:

    Thank you very much! It worked for me.
    I am using Firefox 11, Ubuntu 11.04 and Gnome 2.32.

  13. Ootmann says:

    imo the path should be “/usr/lib/i386-linux-gnu/libOSMesa.so.6”. Tested with ubuntu 12.04.

Leave a Reply

Your email address will not be published. Required fields are marked *