News for hackers. Stuff that matters.
Re:Quake Live goes native and drops OS X, Linux by nailer on Friday November 08, 2013 @10:07AM (#6696424)
So:

- Every browser now supports WebGL

- This would allow their customers to play Quake without plugins OR downloads (eg, this demo http://media.tojicode.com/q3bsp/)

and instead they ditch platforms and require an installer?

Re:Quake Live goes native and drops OS X, Linux by prg318 on Friday November 08, 2013 @10:23AM (#6696540)
The QuakeLive team currently only has a single developer and it seems that they would have nowhere near the developer bandwidth to do a WebGL port (as great as a WebGL QuakeLive would be!)
Re:Quake Live goes native and drops OS X, Linux by azakai on Friday November 08, 2013 @11:02AM (#6696868)
The Unreal Engine 3 was ported in one week by a few developers, so porting the much smaller Quake Live codebase should be reasonable. ( http://www.unrealengine.com/en/news/epic_games_releases_epic... )

As a long-time fan of the Doom&Quake games I would personally want to volunteer to help out on the JS porting aspect (I work on Emscripten, the compiler used in the Unreal Engine port and others).

However, how feasible this would be would depend on how portable the codebase is and so forth, which is not publicly known.

Re:Quake Live goes native and drops OS X, Linux by sponge on Friday November 08, 2013 @12:07PM (#6697428)
Many Quake players play at such a high-level of play, that the limitations of the web would instantly make the game unplayable to them. There's an awesome project at http://www.quakejs.com that have basically done this with emscripten (I'm friends with inolen, you've probably already talked to him).

Problem is, websockets are currently TCP only (TCP is unacceptable for a fast-paced real-time game). I guess there's WebRT but the support for that is not very widespread. Chrome and Firefox render webgl using vsync, which adds an unacceptable amount of mouse latency to mouse input. Chrome apparently won't render at 60hz+ even if your refresh rate is above it. I'm sure there's some additional latency between mouse events and updating the game too. It's a very compelling tech demo, but not something at the level that could be sold as a complete product yet.

Re:Quake Live goes native and drops OS X, Linux by azakai on Friday November 08, 2013 @01:11PM (#6697941)
WebRTC works well in Firefox and Chrome, and provides UDP networking. See for example https://developer.mozilla.org/en-US/demos/detail/bananabread - so we should definitely be able to do that in quakejs. Totally agree that TCP is not great for FPS games.

About vsync etc., I am not an expert on those. But the game should be able to render at 60fps (equal or better to consoles), see the demo above and also Epic Citadel etc.. Any worse means there is a bug, and we should file an issue and try to get it fixed.

Re:Quake Live goes native and drops OS X, Linux by sponge on Friday November 08, 2013 @01:30PM (#6698099)
Sorry, I meant to say greater than 60hz. QuakeJS certainly hits 60, but 60 is often considered the minimum, especially as 120hz LCDs become more popular. (Most QUAKE LIVE LAN tournaments are played on 120hz LCDs, and there is still a small but loud segment of players that will play on CRTs to get 144hz)

Disabling vsync in about:flags definitely works, although it's an ugly thing for end-users to have to do. I've benchmarked 100> FPS by quake3's timedemo command through this method, although I don't recall trying to play the game and determining if the frames are actually being painted at that rate.

Re:Quake Live goes native and drops OS X, Linux by azakai on Friday November 08, 2013 @05:10PM (#6699472)
Yeah, I guess for that community super-high refresh rates can matter. But I think it's reasonable for those types of users to know how to change an about:config option ;)
Re:Quake Live goes native and drops OS X, Linux by vinkelhake on Friday November 08, 2013 @11:27AM (#6697099)
The Unreal demo has some annoying micro stuttering that a Quake Live player would never put up with. Besides rendering there's also sound, input and networking to sort out. It's not insurmountable, but there's a big difference between a tech demo and a final product.
Re:Quake Live goes native and drops OS X, Linux by azakai on Friday November 08, 2013 @11:52AM (#6697319)
Not sure which stutter you refer to. Could be a bug in a particular browser.

Sound and networking are certainly possible. Sound will use HTML audio or Web Audio, if the C codebases uses SDL audio (there is audio in the citadel demo). And networking is possible with not much effort, see for example https://developer.mozilla.org/en-US/demos/detail/bananabread

But I fully agree that a week for a tech demo is a small part of the work that a full product needs. Still, that it was just a week seems to say that a full product is feasible, probably months of work. Perhaps id doesn't want to spend that amount of time, and that's understandable if they have other priorities.

Re:Quake Live goes native and drops OS X, Linux by inolen on Friday November 08, 2013 @12:29PM (#6697604)
At this point (as you know), quakejs is a fairly ironed out port of ioquake3.

I've just never released it due to assets. I wanted to finish cross-compiling quake3 QVM-based mods to JS in order to enable playing some of the popular mods (with their own assets), but that just never happened.

I really wish some permission could be granted to use the original quake3 demo assets - it'd be great to have such a demanding gaming project for browsers to work on improving.

Re:Quake Live goes native and drops OS X, Linux by azakai on Friday November 08, 2013 @01:07PM (#6697899)
Yeah, definitely aware :) I didn't mention quakejs because I wasn't sure you wanted attention on it yet.

If assets are the last thing missing for you to launch it, what would it take to resolve that (not using the official assets, but something else)? Perhaps I can help or we can find others that can.

Re:Quake Live goes native and drops OS X, Linux by thrillgore on Friday November 08, 2013 @02:42PM (#6698617)
Have you considered having contributors use the Xonotic assets? Would that even be possible?
Re:Quake Live goes native and drops OS X, Linux by oomkiller on Friday November 08, 2013 @11:26AM (#6697083)
QuakeLive is basically Quake 3 right? They GPLed the source a while a go.
Re:Quake Live goes native and drops OS X, Linux by azakai on Friday November 08, 2013 @11:53AM (#6697332)
It is based on Quake 3, but it is unclear how much they modified it for Quake Live, that part is not public.

The UI for example is mostly new, I am not sure about rendering, asset management etc.

Re:Quake Live goes native and drops OS X, Linux by pjmlp on Friday November 08, 2013 @10:21AM (#6696516)
> - Every browser now supports WebGL

With 2006's 3D performance and access to all source code.

Re:Quake Live goes native and drops OS X, Linux by nailer on Friday November 08, 2013 @10:24AM (#6696551)
2006's 3D performance is an xbox 360.

Code access is to a minified client-only source * for an Open Source engine, gamers could possibly write their own backend matchmaking service and host and maintain it themselves, but I suspect this isn't worth most people's time.

(that said, anti-aimbot type stuff might be a real problem)

* As someone else pointed out, ASM.JS is more than just minified, it's unreadable. Eg, Epic have UE3 ASM.JS hosted online.

Re:Quake Live goes native and drops OS X, Linux by bilbo0s on Friday November 08, 2013 @11:01AM (#6696861)
"...I suspect this isn't worth most people's time...."

Doesn't have to be.

Only needs to be worth one person's time to render the effort commercially dubious.

Re:Quake Live goes native and drops OS X, Linux by nailer on Friday November 08, 2013 @11:33AM (#6697141)
Sure, it only takes one guy to write an OSS backend clone. Does he host it, or does the user host it? If the user hosts it, does it work on Windows, is it a simple install, can an average person figure out how to run their own dedicated server using the software? Does the maintainer respond to bugs? Does the maintainer have time to maintain the app? Does the maintainer work for free?
Re:Quake Live goes native and drops OS X, Linux by azakai on Friday November 08, 2013 @11:04AM (#6696892)
> With 2006's 3D performance

WebGL runs at basically full speed on the GPU. And JS can run at about half the speed of native code, when compiling a C++ codebase like we are talking about here.

So this would be far faster than typical 2006 perf.

> and access to all source code.

Look at optimized+minified compilation output in JS, it is just as unreadable as a native binary.

Re:Quake Live goes native and drops OS X, Linux by angersock on Friday November 08, 2013 @12:31PM (#6697623)
First, it's a C codebase (assuming Quake 3).

Second, there's a lot of little fiddly bit-twiddling for certain parts of it, like the PVS sets and whatnot. I would be unsurprised if JS doesn't deal with that well.

Third, the level of play is such that stuttering, pauses, or hiccups, even if only on the order of tens or hundreds of milliseconds, can be unacceptable.

Re:Quake Live goes native and drops OS X, Linux by azakai on Friday November 08, 2013 @01:03PM (#6697864)
It's possible bit twiddling etc. would be a problem. Need to look at the actual code as used in Quake Live.

Of course stuttering is unacceptable, as you say. But it should not happen. If you see it in a browser, please file a bug.

Re:Quake Live goes native and drops OS X, Linux by kayoone on Friday November 08, 2013 @10:23AM (#6696537)
the QuakeLive Engine is from 2000/2001 and has been open sourced years ago. Its actually pretty perfect for asm.js it seems.
Re:Quake Live goes native and drops OS X, Linux by mistercow on Friday November 08, 2013 @11:49AM (#6697285)
>access to all source code

Access to emscripten output is about as useful as access to disassembled native code.

Re:Quake Live goes native and drops OS X, Linux by Herald_MJ on Friday November 08, 2013 @10:24AM (#6696545)
Also, WebGL wouldn't run with Quake 3's codebase (which is basically what QuakeLive does).
Re:Quake Live goes native and drops OS X, Linux by venomsnake on Friday November 08, 2013 @11:16AM (#6697006)
And now I feel nostalgic for the times when there was shooting if the shooters.

There was always something special about the Quake 3 (and 2) engines - the fluidity, freedom and speed they provided in the games were unmatched. I don't know if it was the engine itself or the developers that flocked to these engines but the feeling of the shooting and movement on the games developed on the Unreal base is much more clumsy. Don't know exactly why.

Re:Quake Live goes native and drops OS X, Linux by angersock on Friday November 08, 2013 @12:26PM (#6697579)
Was at a hackathon at a university a while ago, and took a few minutes to unwind by fragging some nightmare bots in Q3. I ended up with a few students looking over my shoulder, asking what game I was playing.

There's a certain elegance and efficiency of movement the old arena shooters give you that's missing in many of the CoD clones these days--Painkiller has come closest to matching it, along with the Serious Sam tomfoolery.

Re:Quake Live goes native and drops OS X, Linux by sofal on Friday November 08, 2013 @10:19PM (#6700540)
They didn't even know what game you were playing?

Goddamn am I old or what?

Re:Quake Live goes native and drops OS X, Linux by kzahel on Friday November 08, 2013 @10:52AM (#6696784)
https://chrome.google.com/webstore/detail/web-quake/ibkbfanm...

Something like this for quake live would be cool.

Re:Quake Live goes native and drops OS X, Linux by aw3c2 on Friday November 08, 2013 @11:07AM (#6696917)
Re:Quake Live goes native and drops OS X, Linux by epsylon on Friday November 08, 2013 @05:13PM (#6699488)
They already required an installer, since it was a plugin.