Re:HTML5/WebGL source port of Quake
by zanny on Saturday February 16, 2013 @12:10PM
(#5232126)
So you can write on the checklist of things html5.5 or 6 or whatever needs:
* Local config storage (doable in cookies or localstorage)
* Local save storage (probably too big to fit in 5MB of localstorage)
* Mouselook (mouse buttons work fine). I think you can already do this
though, I know you can at least track cursor position and you can implement mouselook off that.
* Mousewheel in firefox, at least, wasn't rebindable.
* I see problems in fullscreen browser games that take every single browser button and override it, so you would probably want a "you can't rebind this key" key. If there isn't already one.
Re:HTML5/WebGL source port of Quake
by snprbob86 on Saturday February 16, 2013 @04:42PM
(#5233143)
MouseloOk != MouseloCk
Tracking view position from mouse coordinates has always been possible, but handling mouse focus and coordinate wrapping is necessary for games with mouse look. The really tricky bit is that there are security implications in much the same way as full screen mode.
Re:HTML5/WebGL source port of Quake
by Mahn on Saturday February 16, 2013 @10:00AM
(#5231636)
It's a start. Browsers were not getting any faster before because no one was pushing their boundaries, but nowadays it's a different story. I think we can expect browsers to get a helluva lot faster within the next 3-4 years, specially when it comes to canvas processing and rendering.
Re:HTML5/WebGL source port of Quake
by skatepark on Saturday February 16, 2013 @05:04PM
(#5233211)
> Do we need all the power a PC provides natively to make great games?
I think the market has declared this to be a definitive "yes". Users don't want to waste their hardware dollars so that you can spend them on inefficient solutions.
When your competition takes advantage of the hardware, and you don't, then your application (or game) falls behind in the marketplace.
There's the argument that users are willing to have lesser performance ... for lesser cost. This is true, but quite different from your code performing more poorly than your competition's on the same hardware.
Re:HTML5/WebGL source port of Quake
by TheZenPsycho on Monday February 18, 2013 @12:30PM
(#5239381)
the function of computing power -> game quality is logarithmic, not linear. The 15 years behind of 15 years from now is a considerably smaller gap than the 15 years behind of now.
Re:HTML5/WebGL source port of Quake
by anon1385 on Saturday February 16, 2013 @12:01PM
(#5232093)
Crashing your browser (which browser?) or actually crashing the entire OS. Both are worrying from a security perspective, but the latter is very worrying.
Re:HTML5/WebGL source port of Quake
by tterrace on Saturday February 16, 2013 @01:56PM
(#5232522)
To update, it looks like both the gwt quake to and the OP's quake crash safari and chrome on osx, but work great in firefox. The quake 1 demo actually runs noticeably quicker than the gwt one for me. This is a great showcase for what's possible for js games.
Re:HTML5/WebGL source port of Quake
by BHSPitMonkey on Saturday February 16, 2013 @02:25PM
(#5232634)
I've always thought about how well we learn lore and geography inside games we love (for example, I know where everything is within several different lands of Hyrule), and yet it's very hard to get students to really learn actual Earth geography. Perhaps some aspects of this kind of teaching should move into a gaming environment in schools.
Re:HTML5/WebGL source port of Quake
by xuhu on Saturday February 16, 2013 @09:05AM
(#5231492)
I still don't understand his logic for this: Element fullscreen is not going to be added because there's already browser-wide F11 fullscreen.
If pointer-lock only works in element-fullscreen in Firefox (on which he develops) then what other choice is there ? Nobody plays shooters with the keyboard since wolf3d, and the BananaBread demo does pointer-lock precisely via element-fullscreen.
Re:HTML5/WebGL source port of Quake
by mathgladiator on Saturday February 16, 2013 @04:53PM
(#5233169)
I think it's an interesting question of time. Quake I came out june 1996; so, html5 is almost* capable of doing a 16 year old game. This... is interesting from a data point perspective.
There is an open question as to how html5 now compares to native some years ago since that's how (for gaming) it should be judged. I believe we will reach a limit point and in the long term, maybe the browser-related inefficiencies will just be marginal to the end user experience.
Re:HTML5/WebGL source port of Quake
by SiPlus on Saturday February 16, 2013 @04:21PM
(#5233087)
In Chrome on Mac and Linux, sound crashes the tab often. Play with ?-nosound or on Windows. The loading image is also not displayed in Chrome (unlike Firefox).
* Local config storage (doable in cookies or localstorage)
* Local save storage (probably too big to fit in 5MB of localstorage)
* Mouselook (mouse buttons work fine). I think you can already do this though, I know you can at least track cursor position and you can implement mouselook off that.
* Mousewheel in firefox, at least, wasn't rebindable.
* I see problems in fullscreen browser games that take every single browser button and override it, so you would probably want a "you can't rebind this key" key. If there isn't already one.
Tracking view position from mouse coordinates has always been possible, but handling mouse focus and coordinate wrapping is necessary for games with mouse look. The really tricky bit is that there are security implications in much the same way as full screen mode.
See here for details on Pointer Lock: http://www.chromium.org/developers/design-documents/mouse-lo...
We'll be 15 years behind the PCs of 15 years from now[1].
[1] Unless something changes drastically in the web stack.
Do we need all the power a PC provides natively to make great games?
I think the market has declared this to be a definitive "yes". Users don't want to waste their hardware dollars so that you can spend them on inefficient solutions.
When your competition takes advantage of the hardware, and you don't, then your application (or game) falls behind in the marketplace.
There's the argument that users are willing to have lesser performance ... for lesser cost. This is true, but quite different from your code performing more poorly than your competition's on the same hardware.
Also, quite scary how well you remember the maps, 15 years later.
Although the controls are really weird, right click goes forward, I can't aim with the mouse...
If pointer-lock only works in element-fullscreen in Firefox (on which he develops) then what other choice is there ? Nobody plays shooters with the keyboard since wolf3d, and the BananaBread demo does pointer-lock precisely via element-fullscreen.
Just kidding. :)
Running smooth in Chrome Canary.
There is an open question as to how html5 now compares to native some years ago since that's how (for gaming) it should be judged. I believe we will reach a limit point and in the long term, maybe the browser-related inefficiencies will just be marginal to the end user experience.
* mouse look is really what is missing.
16 on March 15
Running smoothly on Linux, tested on Firefox and Chrome.