WebGL Action | October 21st, 2009
It’s been a while since I’ve blogged last time. We’ve just wrapped up a project with VanAqua (See Chris Stone’s post for more info) and now with my down time, I started looking into WebGL. WebGL is OpenGL for web (duh) but it is currently underdevelopment and it is supported in very few browsers.
This is something I’ve come up with today. I am planning on turning this into some sort of game. Use A-S-W-D keys to move your box.
IMPORTANT!!!: You’ll need to have the latest WebKit Nightly build to run this. To set up, just follow the instructions on this page.
_
Peace out.
October 21st, 2009 at 1:04 pm
gl.clearDepth was left in so you no workey on da Firefoxy
October 22nd, 2009 at 4:08 am
Hey there,
Just tried it on the latest Firefox nightly build (also WebGL compatible) and got this:
Error: uncaught exception: [Exception... "Could not convert JavaScript argument - 0 was passed, expected object. Did you mean null? arg 1 [nsICanvasRenderingContextWebGL.bindBuffer]” nsresult: “0×80570035 (NS_ERROR_XPC_BAD_CONVERT_JS_ZERO_ISNOT_NULL)” location: “JS frame :: http://nitobi.com/yohei/WebGL%20Sample1/js/utils3d.js :: makeBox :: line 206″ data: no]
The two browsers’ implementations are currently divergent in a number of areas; I guess whether you want to spend the time to make your demo compatible with both is up to you
Cheers,
Giles
October 22nd, 2009 at 6:27 am
[...] Shimomae has put together an interesting-looking demo; it doesn’t run on the current Firefox, but should with [...]
October 22nd, 2009 at 9:01 am
Newer builds of Firefox support gl.clearDepth, but unfortunately even with them there’s another problem — don’t know whether the problem’s on FF’s or your demo, though. The error message I get is:
Error: uncaught exception: [Exception... "Could not convert JavaScript argument - 0 was passed, expected object. Did you mean null? arg 1 [nsICanvasRenderingContextWebGL.bindBuffer]” nsresult: “0×80570035 (NS_ERROR_XPC_BAD_CONVERT_JS_ZERO_ISNOT_NULL)” location: “JS frame :: http://nitobi.com/yohei/WebGL%20Sample1/js/utils3d.js :: makeBox :: line 206″ data: no]
October 26th, 2009 at 10:46 pm
Social comments and analytics for this post…
This post was mentioned on Twitter by dalmaer: The awesome @Nitobi crew and getting their WebGL groove on! Check out their early game http://blogs.nitobi.com/yohei/?p=43…
November 2nd, 2009 at 11:30 am
[...] awesome @Nitobi crew and getting their WebGL groove on! Check out their early game 6:02 PM Oct [...]
December 8th, 2009 at 10:34 am
This was cool
December 8th, 2009 at 10:35 am
SOrry but i meant the whole thing was