News for hackers. Stuff that matters.
Re:Mr.doob adds WebGL Minecraft demo to three.js by spacemanaki on Monday December 06, 2010 @08:28AM (#1975047)
I'm getting "Uncaught ReferenceError: Float32Array is not defined" on Chrome on OS X. Anyone else get it to work?
Re:Mr.doob adds WebGL Minecraft demo to three.js by nkassis on Monday December 06, 2010 @09:39AM (#1975266)
You 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.)
Re:Mr.doob adds WebGL Minecraft demo to three.js by mrdoob2 on Monday December 06, 2010 @08:33AM (#1975062)
Chrome 9+, Firefox 4+
Re:Mr.doob adds WebGL Minecraft demo to three.js by sparky on Monday December 06, 2010 @09:38AM (#1975260)
Works for me too, about 10FPS in Chromium 9 on 64-bit Ubuntu, 2.4GHz C2D, Nvidia 8400M GS.
Re:Mr.doob adds WebGL Minecraft demo to three.js by trotsky on Monday December 06, 2010 @10:23AM (#1975426)
I'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.
Re:Mr.doob adds WebGL Minecraft demo to three.js by spacemanaki on Monday December 06, 2010 @08:58AM (#1975120)
Thanks, that worked! This is pretty awesome.
Re:Mr.doob adds WebGL Minecraft demo to three.js by jasonkester on Monday December 06, 2010 @09:30AM (#1975237)
Not 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.

Re:Mr.doob adds WebGL Minecraft demo to three.js by bd on Monday December 06, 2010 @10:20AM (#1975412)
"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/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.

Re:Mr.doob adds WebGL Minecraft demo to three.js by jasonkester on Monday December 06, 2010 @10:32AM (#1975464)
Chrome 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.

Re:Mr.doob adds WebGL Minecraft demo to three.js by bd on Monday December 06, 2010 @11:24AM (#1975665)
"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/

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.

Re:Mr.doob adds WebGL Minecraft demo to three.js by zephjc on Monday December 06, 2010 @10:23AM (#1975421)
It horks out about the same error in Safari/OS X