Live data from Hacker News

MineCraftWebGL

danielribeiro.github.com

1–10 of 59 posts

Re: MineCraftWebGL

#2
If only there were an API for mouse capturing.

Is there any reason why it couldn't work if it were implemented like full screen mode (displaying a message telling the user to press escape to reclaim the mouse)?

Edit: Actually it looks like this is being worked on after all – http://dvcs.w3.org/hg/pointerlock/raw-file/default/index.htm...

Re: MineCraftWebGL

#3

If only there were an API for mouse capturing. Is there any reason why it couldn't work if it were implemented like full screen mode (displaying a message telling the user to press escape to reclaim the mouse)? Edit: Actually it looks like this is being worked on after all – http://dvcs.w3.org/hg/pointerlock/raw-file/default/index.htm...

Seriously, what the hell is the point of even creating something like webgl if a key feature for immersion is kept out?

It's like building a car starting with the frame.

God speed to whoever is fighting the good fight on those frigging w3c boards.

Re: MineCraftWebGL

#4

If only there were an API for mouse capturing. Is there any reason why it couldn't work if it were implemented like full screen mode (displaying a message telling the user to press escape to reclaim the mouse)? Edit: Actually it looks like this is being worked on after all – http://dvcs.w3.org/hg/pointerlock/raw-file/default/index.htm...

Yeah, it does exist and is usable in current versions of Chrome if you change the flag for it. I'm not sure if the Chrome version of the API is what the final one will be though, since it seems to differ somewhat from the version documented on MDN: https://developer.mozilla.org/en/API/Pointer_Lock_API

Still it would probably be fairly easy to add support for it to this and replace the annoying click-drag camera movement when possible.

Re: MineCraftWebGL

#5
Really nice looking impl in JS, though I'd add that doing perlin noise over a limited grid is a pretty limited subset of what Minecraft does.

Minecraft's terrain generator does a couple of passes (last I read about this, things may have changed) that generates cave systems, the surface level topography, forests, etc. http://notch.tumblr.com/post/3746989361/terrain-generation-p...

Still, definitely a cool project.

Re: MineCraftWebGL

#6

If only there were an API for mouse capturing. Is there any reason why it couldn't work if it were implemented like full screen mode (displaying a message telling the user to press escape to reclaim the mouse)? Edit: Actually it looks like this is being worked on after all – http://dvcs.w3.org/hg/pointerlock/raw-file/default/index.htm...

This exists in Firefox as of 14, currently in Aurora, so this will be in a stable release in a few weeks.

It also exists in recent Chrome versions, however it seems to be disabled by default for some reason, but you can enable it in the flags menu.

No reason why this cool site can't use it on those browsers, there are lots of demos on the web that do. Mouse lock is very important.

Re: MineCraftWebGL

#7

If only there were an API for mouse capturing. Is there any reason why it couldn't work if it were implemented like full screen mode (displaying a message telling the user to press escape to reclaim the mouse)? Edit: Actually it looks like this is being worked on after all – http://dvcs.w3.org/hg/pointerlock/raw-file/default/index.htm...

Seriously, what the hell is the point of even creating something like webgl if a key feature for immersion is kept out? It's like building a car starting with the frame. God speed to whoever is fighting the good fight on those frigging w3c boards.

As mentioned above, this feature does in fact exist.

Re: MineCraftWebGL

#8
post #7

Earlier quoted context omitted.

Seriously, what the hell is the point of even creating something like webgl if a key feature for immersion is kept out? It's like building a car starting with the frame. God speed to whoever is fighting the good fight on those frigging w3c boards.

As mentioned above, this feature does in fact exist.

Ah, wrote before the edit.

Re: MineCraftWebGL

#10
Pretty cool but another thing missing from this is the dynamic lighting. If you make an enclosed space it's just as bright inside as daylight. The lighting in minecraft is simple but extremely effective. Here's a nice demo/test from Notch from when he was working on that:

http://www.youtube.com/watch?v=xnvqvFsNkq0

Post reply on HN