WebGL Dungeon
ambiera.at
ambiera.at
I think it is now clearly demonstrated that WebGL is indeed a binding of OpenGL to javascript, for web-browsers. Therefore it is unsuprising, and now clear, that any openGL which isn't too CPU-intensive can be mapped to javascript+webGL without too much difficulty.
Come back when someone has either something impressive you couldn't do offline, or a game of high quality. While I'm sure people have fun porting off-line demos to javascript, I've seen enough now.
Additionally, the lighting algorithm in this demo is horrid, you could never make a dungeon crawler with any sort of realistic lighting the way it is setup now. Notice how the light goes through walls if the textured face is facing the light, but is dark if it is facing away from the light. (Meaning they it isn't a more complicated algorithm for some sort of radiant lighting)
There are other things WebGL is good for as well :)
On the other hand, all the 3D Flash 11 demos work vey well.
The ideal solution in my opinion is to just offer mouse capturing as a user-enabled permission on page load from a domain (kind of how geolocation works now). The user would see a bar near the top of the browser asking if they want to give control of their mouse to the website, with the option to always break-out of that control with some key (such as ESC).
- Bug tracker: http://code.google.com/p/chromium/issues/detail?id=72754
- Design doc: https://sites.google.com/a/chromium.org/dev/developers/desig...
W = Forward
S = Backward
A = Turn Left
D = Turn Right
Q = Strafe Left
E = Strafe Right
That way, you don't need a mouse, and you only lose strafing by using the arrow keys.
I suppose you could be defining audience to only be talking about the desktop, and that's probably legitimate when talking about the next 1-2 years. But if you're talking about longer term then you have to consider the tablet/mobile market as figuring into a large portion of the audience. Neither flash nor WebGL is currently really viable there, but I'd definitely bet that WebGL has a better shot at making inroads than Flash.
Firefox worked.