Getting a WebGL Implementation: Difference between revisions
Kbr google (talk | contribs) Updated to indicate spec has reached 1.0 |
m →Firefox: update to point to FF4 release |
||
Line 3: | Line 3: | ||
=== Firefox === | === Firefox === | ||
WebGL is supported in [http://www.mozilla.com/en-US/firefox/ | WebGL is supported in [http://www.mozilla.com/en-US/firefox/new/ 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". | |||
=== Safari === | === Safari === |
Revision as of 05:45, 27 April 2011
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".
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 release of Chrome.
To test the most up-to-date code on Linux, Mac OS X and Windows, you can download the continuous builds of Chromium. Chromium is the Open Source project behind the Google Chrome browser.
- Linux 32-bit: http://build.chromium.org/f/chromium/continuous/linux/LATEST/
- Linux 64-bit: http://build.chromium.org/f/chromium/continuous/linux64/LATEST/
- Mac OS X: http://build.chromium.org/f/chromium/continuous/mac/LATEST/
- Windows: http://tools.google.com/dlpage/chromesxs (the Chrome Canary Build)
Linux/32, Mac point to the folder containing chrome-linux.zip
, chrome-mac.zip
, or chrome-win32.zip
. Unpack the zip archive and run the chrome executable in the resulting directory. Windows has the Chrome Canary build which should just install.
Please report issues you find to either the public WebGL mailing list or via the Chromium issue tracker.
Opera
WebGL is supported on Windows in the Opera 11 preview build. Support for other operating systems is underway.