Mr.doob adds WebGL Minecraft demo to three.js
mrdoob.github.com
mrdoob.github.com
:D
To get this working in Webkit Nightly - webkit.org
1. install Webkit Nightly from http://nightly.webkit.org/
2. paste the following into terminal: defaults write com.apple.Safari WebKitWebGLEnabled -bool YES
3. visit the link (this has minor render issues for me under webkit)
To get it working in Chromium:
1. first install latest chromium from: http://build.chromium.org/f/chromium/snapshots/chromium-rel-...
2. Drag into Applications folder
3. launch from terminal using: ./Chromium.app/Contents/MacOS/Chromium --enable-webgl
4. visit the link
You might want to check out http://www.chromium.org/developers/demos-gpu-acceleration-an... for some more awesome webGL demos.
or, mrdoob's awesome site of course: http://mrdoob.com/
I can't imagine how it would work anywhere, actually, since the error it's throwing says it's missing that method.
This error message is not about missing custom method, it's about missing Typed Array data type:
https://cvs.khronos.org/svn/repos/registry/trunk/public/webg...
All browsers that support WebGL have these data types, older ones can be missing them.
"Not working on the latest Chrome or FireFox under XP either."
Could you please give us more details (exact browser version, graphics card, eventual error messages / warnings in alerts / console), so that we could figure out where is problem?
For example, "latest Chrome" could be latest dev-channel, latest canary or latest Chromium continuous build.
Both are out-of-the box, with auto-updates on. So it's pretty much what you'd get if you were a typical user on that browser.
It sounds like you're targeting the next crop of as-yet unreleased browsers for your thing. You might want to note that on the demo somewhere, since pretty much nobody but you will be able to make it work right now without downloading a new browser.
Thanks. This explains it, neither of these browsers does support WebGL.
"It sounds like you're targeting the next crop of as-yet unreleased browsers for your thing. You might want to note that on the demo somewhere, since pretty much nobody but you will be able to make it work right now without downloading a new browser."
Exactly, you are right. WebGL demos are very much work in progress. They are targeted for browsers which should reach mainstream just sometimes early next year.
There is supposed to be an alert about missing WebGL support, but yes, this could be handled in a nicer way.
Khronos (WebGL standards body) has some plans for handling this "properly". There is a site where should be "official" explanations and instructions how to get WebGL running:
Idea is that application developers could then just point users to this. Though as this is not ready yet, people resort to own case-by-case solutions.