Getting a WebGL Implementation: Difference between revisions
Kbr google (talk | contribs) No edit summary |
made clear that WebGL is not only supported by Chrome but Chromium too |
||
Line 21: | Line 21: | ||
This command only needs to be run once. All future invocations of the browser will run with WebGL enabled. | This command only needs to be run once. All future invocations of the browser will run with WebGL enabled. | ||
=== Chrome === | === Chrome / Chromium === | ||
WebGL is available in the [http://www.google.com/chrome/ | WebGL is available in the stable releases of [http://www.google.com/chrome/ Chrome] and [http://www.chromium.org/Home Chromium] for desktop platforms. Chromium is included in many software repositories for Linux based systems. Chrome for Mobile does not yet support WebGL due to known limitations with existing graphics drivers. | ||
Please report issues you find to either the [https://www.khronos.org/webgl/public-mailing-list/ public WebGL mailing list] or via the [http://code.google.com/p/chromium/issues/list Chromium issue tracker]. | Please report issues you find to either the [https://www.khronos.org/webgl/public-mailing-list/ public WebGL mailing list] or via the [http://code.google.com/p/chromium/issues/list Chromium issue tracker]. |
Revision as of 22:54, 22 November 2012
The WebGL 1.0 specification has recently been released, and the latest builds of several browsers are close to reaching full conformance. Here are instructions on how to obtain a copy of a browser supporting the WebGL specification. As various implementations reach 100% conformance, expect that browsers will have this functionality built in to their latest releases, and not require any manual steps to enable it.
Firefox
WebGL is supported in Firefox/4.0
For testing/debugging purposes, software rendering can be used through OSMesa (off-screen Mesa), by setting the "webgl.osmesalib" variable to point to the OSMesa shared library (typically /usr/lib/libOSMesa.so). Note that the OSMesa library is required to use "gl" prefixes, not "mgl".
You can also try setting the "webgl.force-enabled" variable to true if WebGL is not working. Variables can be accessed by typing "about:config" in the address bar.
Safari
WebGL is supported on Mac OS X 10.6 in the WebKit nightly builds.
After downloading and installing the browser, open the Terminal and type the following:
defaults write com.apple.Safari WebKitWebGLEnabled -bool YES
This command only needs to be run once. All future invocations of the browser will run with WebGL enabled.
Chrome / Chromium
WebGL is available in the stable releases of Chrome and Chromium for desktop platforms. Chromium is included in many software repositories for Linux based systems. Chrome for Mobile does not yet support WebGL due to known limitations with existing graphics drivers.
Please report issues you find to either the public WebGL mailing list or via the Chromium issue tracker.
Opera
WebGL is supported in Opera 12 beta but you must enable it in the user preferences. Enter opera:config in the address bar. In the User Prefs section set both Enable Hardware Acceleration and Enable WebGL to 1. Scroll to the bottom of the list of user preferences and click the Save button. Restart the browser.