Live data from Hacker News

Pearl Boy WebGL Demo

gooengine.com

51–60 of 83 posts

Re: Pearl Boy WebGL Demo

#51

>Your browser doesn't seem to support HTML5 and WebGL. The best thing to do is upgrade to a modern browser that supports all the awesome things the web has to offer. I am on the latest version of Opera which I guess is not a modern browser. Perhaps turning down the condescension a notch and changing that "Upgrade" message to "Best works in Chrome" will be a good move. You're a second class citizen on HN if you use an…

I was pleasantly surprised it worked in Opera for me (I usually get "fuck you, chrome 4ever" banners too).

Check opera:config if you have WebGL enabled and opera:gpu if your graphics card drivers aren't blacklisted for being insecure or buggy.

Re: Pearl Boy WebGL Demo

#52

Thanks for all the nice compliments and thanks for pointers on where we need to improve things ! :-) Consider signing up for the alpha, we hope we can let in another round of users soon !

Do you prevent default action in keyboard and click handlers? In Opera and Firefox I can sometimes see focus outline and text selection flashing, probably activated by my 1-key keyboard shortcuts.

Re: Pearl Boy WebGL Demo

#53
post #19
post #8

Not great if your keyboard is in Dvorak :-)

Yup, this is a real problem with game input on the Web platform right now. You can't get geographic keycodes, only virtual keycodes. I haven't stumbled on any specification / API proposal to fix this. Anybody know if browser vendors have something in the works?

Until then an option to choose Dvorak for the user and manual remapping of the keys would work for apps that want to support those keyboards.

Re: Pearl Boy WebGL Demo

#54
post #52

Thanks for all the nice compliments and thanks for pointers on where we need to improve things ! :-) Consider signing up for the alpha, we hope we can let in another round of users soon !

Do you prevent default action in keyboard and click handlers? In Opera and Firefox I can sometimes see focus outline and text selection flashing, probably activated by my 1-key keyboard shortcuts.

Good question. I looked at the code and it appears we preventDefault for mouseup and mousedown but not for keyup and keydown. I will ask around why that's the case. Can you give me an example keyboard shortcut where this is happening ?

Re: Pearl Boy WebGL Demo

#55

Even though it might have been already showcased some time ago I haven't seen it yet. It's beautiful. I especially like the reflective water. Parallax effect in the diving mode is also a nice touch adding some extra depth. Have any of you tried running it on iPhone 5? I wonder if there were any performance issues (if it worked at all!;).

There is a trick running the web browser on an iPhone with WebGL enabled using testflightapp. We hope that Apple will enable WebGL as a default soon. Basically the technology is all there...

Re: Pearl Boy WebGL Demo

#56
post #7

Earlier quoted context omitted.

But it's not a game, out of curiosity, are there any good games written in WebGL(because all I see are demos)?

http://www.runescape.com has been rewritten entirely in WebGL, they just released the beta and are upgrading the entire game in the next month or so. It's pretty big news, as far as I know they are the first major MMO to swap to WebGL. They were using Java and had been building on it for nearly 10 years but they found that WebGL offered better graphics performance and easier programming than it's Java equivalent so d…

they are still using java , just checked 1 hour ago.

Re: Pearl Boy WebGL Demo

#59
post #56

Earlier quoted context omitted.

http://www.runescape.com has been rewritten entirely in WebGL, they just released the beta and are upgrading the entire game in the next month or so. It's pretty big news, as far as I know they are the first major MMO to swap to WebGL. They were using Java and had been building on it for nearly 10 years but they found that WebGL offered better graphics performance and easier programming than it's Java equivalent so d…

they are still using java , just checked 1 hour ago.

"they just released the beta and are upgrading the entire game in the next month or so."

Re: Pearl Boy WebGL Demo

#60
post #50
post #46

Earlier quoted context omitted.

Doesn't work on the current release of Firefox though. Webkit/Chrome really is turning into the IE of this decade :P

Yep, getting TypeError: document.body is null in console in Firefox 21.0

Damn, this should work, we do support Firefox 21 ! It's probably a regression in the demo itself and not the engine. We'll fix it asap, thanks for the tip !
Post reply on HN