4 ms·
Mr.doob adds WebGL Minecraft demo to three.js
- spacemanaki 16y agoI'm getting "Uncaught ReferenceError: Float32Array is not defined" on Chrome on OS X. Anyone else get it to work?
- mrdoob2 16y agoChrome 9+, Firefox 4+
- spacemanaki 16y agoThanks, that worked! This is pretty awesome.
- sparky 16y agoWorks for me too, about 10FPS in Chromium 9 on 64-bit Ubuntu, 2.4GHz C2D, Nvidia 8400M GS.
- trotsky 16y agoI'm impressed that all of this & my hardware rendering are working "straight out of the box". I'm getting ~50fps in chromium 9.0.598.0 under openSUSE 11.3 with a radeon mobility 5650.
- jasonkester 16y agoNot working on the latest Chrome or FireFox under XP either. I can't imagine how it would work anywhere, actually, since the error it's throwing says it's missing that method.
- bd 16y ago"I'm getting "Uncaught ReferenceError: Float32Array is not defined" on Chrome on OS X" 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/webgl/doc/spec/TypedArray-spec.html 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.
- jasonkester 16y agoChrome 8.0.552.215 FireFox 3.6.12 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.
- deleted 16y ago[deleted]
- bd 16y ago"Chrome 8.0.552.215 FireFox 3.6.12" 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: http://get.webgl.org/ http://get.webgl.org/ 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.
- nkassis 16y agoYou can start chrome with --enable-webgl on the command line if you are using the latest stable build or as was pointed out, use the dev channel version. (On the chrome download page, right under the huge button for download there is a link to the development version download.)
- zephjc 16y agoIt horks out about the same error in Safari/OS X
- mrdoob2 16y agoMindcraft -> Minecraft. tree.js -> three.js. webgl -> WebGL. Mr. Doob -> Mr.doob. :D
- cdr 16y agoFair warning: froze my browser.
- maushu 16y agoGetting "Could not initialise shaders VALIDATE_STATUS: false, gl error [0]" on chromium 10, I think it might be related to the probable lack of shader support in the graphics card of this computer.
- MrNibbles 16y agoInstructions under OSX To get this working in Webkit Nightly - webkit.org 1. install Webkit Nightly from http://nightly.webkit.org/ 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-mac/ 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-and-webgl 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/ http://mrdoob.com/
- viraptor 16y agoOn the daily minefield (4.0b8pre from today, ubuntu 10.10, i3 gpu), I get only a flash of some triangles the first time I open the page. Otherwise it's completely empty :( Other webgl demos work well.