How to Enable WebGL in FireFox, Chrome and Safari

Lately the buzz of HTML 5 is all around the web. Some say its okay if iPad doesn’t have flash, because there is HTML 5. Some say, HTML 5 won’t rescue us and simply can’t replace flash yet.

webGL Well, whether or not HTML 5  can or cannot do. At least it brings WebGL a hardware accelerated 3D render framework onto our modern day web browser.

WebGL is a cross-platform, royalty-free web standard for a low-level 3D graphics API based on OpenGL ES 2.0, exposed through the HTML5 Canvas element

For now HTML 5 WebGL hardware accelerated 3D render is functionally disabled by default, however you can enable them in Chrome, Latest Firefox, and Safari. (no IE support for now)

For Chrome add the following in the Target filed in properties.

chrome.exe –no-sandbox –enable-webgl

Note that enabling WebGL currently requires disabling Chromium’s security sandbox, which is strongly discouraged for arbitrary web browsing. Work is ongoing to remove this requirement.

For Firefox you need to download the latest build here and enable this in:

type about:config into the address bar, search for "webgl", and double-click "webgl.enabled_for_all_sites" to set it to true

Here is a demo of what WebGL can do in your browser. (Keep in mind that you need to have some sort of graphic hardware present else this will not work)

You can give it try with some of live demo Quake 3, Toy Car. It’s an endless possibility for future web gaming.

 quake_3_in_chrome

For more WebGL info see here

Update: For Safari, it only supports WebGL on Macs running Snow Leopard. So if you are on Leopard or Windows or Linux, try to use the other 2 browser Chrome and Firefox instead.

[via ajaxian]

  • Pingback: [Web Apps] My Font Book A Place to View and Organize All your Fonts In One | Windows 7 hacker

  • Pingback: IE9 misses a great opportunity by not supporting WebGL | Artefact

  • Thomas Kumlehn

    Sorry, but you forgot to describe the Safari part, mentioned in your title.

    • Jonathan

      I’ve updated the post. For Safari, it only supports WebGL on Macs running Snow Leopard. So if you are on Leopard or Windows or Linux, try to use the other 2 browser Chrome and Firefox instead.

  • Lau

    *Sigh* I still don’t get it: what was wrong with [VRML; Java 3D; Cult3D; add your own] so that now we need WebGL and new browsers?

  • Chris Ross

    But you still don’t say how to enable it on Safari if you *are* on a Mac, running Snow Leopard…

  • raper

    where to put code on chrome

  • philip

    safari did run some of the webgl example on my windows vista 64 rig. i cannot reproduce this though. at least i think it is disabled not becuz of technically issues..

  • raki

    What the hell..
    if u run chrome with no sandbox option u gonna c the hell with virus…

    Don’t follow these instructions blindly….

  • Pingback: Android terrain test « Ghoshehsoft's Blog

  • CzarnyZajaczek

    lol so we need to use unstable versions of browsers to enable this “great” extension… sorry, are you f’n joking, simply I never use unstable versions of browses on computer on which ie. access my bank account, mails etc.