News for hackers. Stuff that matters.
Re:Firefox Gets Better Video Gaming and Warns of Non-Secure ... by aorth on Tuesday January 24, 2017 @03:25PM (#13475124)
The WebGL demo "After the Flood" linked in the post is really beautiful. I don't play games but this technology is very impressive. Try it for yourself if you're on an updated Firefox (51+):

https://playcanv.as/e/p/44MRmJRU/

Re:Firefox Gets Better Video Gaming and Warns of Non-Secure ... by mattdesl on Tuesday January 24, 2017 @08:04PM (#13477461)
WebGL2 brings a few nice features but a lot of the cool stuff is already possible in current WebGL across most browsers.

Here's another WebGL2 demo I had the opportunity to work on — the WebGL 1 version looks pretty similar. :)

http://www.jam3.com/work/#mozilla-webgl

Re:Firefox Gets Better Video Gaming and Warns of Non-Secure ... by ferongr on Tuesday January 24, 2017 @04:51PM (#13475942)
Is it? I mean, it's nice that it can be played "in the browser" but from a graphics fidelity perspective (and artistic direction, but that's beside the point) it's not impressive. It looks like 6-7 year old game graphics, without the interactivity and complexity.
Re:Firefox Gets Better Video Gaming and Warns of Non-Secure ... by badsectoracula on Tuesday January 24, 2017 @05:49PM (#13476513)
Well, i think the clouds are procedural and you get soft edges in the water. But yeah, i like the scene but the performance is abysmal (45 FPS on "Ultra" on my GTX980 for a scene that generally looks emptier and more repeat-y than what you see when you exit Half-Life 2's metro station).

I'm not sure if it is because of WebGL 2, Firefox, the PlayCanvas engine or just this demo though. But unless WebGL 2 imposes big performance penalties, i doubt this is representative of what could be done.

Re:Firefox Gets Better Video Gaming and Warns of Non-Secure ... by mixedCase on Tuesday January 24, 2017 @05:26PM (#13476332)
I don't know why you were downvoted. This demo doesn't feel more impressive than the 13 year old Half Life 2, let alone the 10 year old Crysis. Both interactive games rather than a tech demo.
Re:Firefox Gets Better Video Gaming and Warns of Non-Secure ... by mattdesl on Tuesday January 24, 2017 @08:01PM (#13477440)
It's a combination of problems but IMHO mostly due to things like: lack of tooling, immaturity of graphics libraries and especially immaturity of WebGL2 in those libraries, and modelling/art direction.

The technology is pretty capable but the ecosystem around it pales in comparison to the platforms driving many of today's AAA and indie games.

Re:Firefox Gets Better Video Gaming and Warns of Non-Secure ... by kakarot on Wednesday January 25, 2017 @12:16AM (#13478759)
Unity and Unreal both provide limited exporting to WebGL.
Re:Firefox Gets Better Video Gaming and Warns of Non-Secure ... by akjainaj on Tuesday January 24, 2017 @06:49PM (#13476977)
And what's even worse, so many drivers have issues when compiling shaders that were writen maliciously (or even regular ones), that I'd say we'll see security problems with this really soon, the same we saw them when web fonts started to pop in and code that dealt with fonts simply wasn't written with security in mind
Re:Firefox Gets Better Video Gaming and Warns of Non-Secure ... by ndrake on Tuesday January 24, 2017 @04:13PM (#13475522)
This keeps crashing Firefox for me when I try it on a Mac
Re:Firefox Gets Better Video Gaming and Warns of Non-Secure ... by cpeterso on Tuesday January 24, 2017 @04:23PM (#13475627)
Can you share a link to a Firefox crash report from your about:crashes page? Does the site crash when loading or after you start playing the demo?

You might be seeing the following GeForceGLDriver crash:

https://bugzilla.mozilla.org/show_bug.cgi?id=1333534

Re:Firefox Gets Better Video Gaming and Warns of Non-Secure ... by techer on Tuesday January 24, 2017 @05:15PM (#13476206)
Mine crashes after all the assets have been loaded. Having trouble getting the report, sorry!
Re:Firefox Gets Better Video Gaming and Warns of Non-Secure ... by Caspy7 on Tuesday January 24, 2017 @10:16PM (#13478150)
Type about:crashes into the location bar and hit enter to find your crashes.
Re:Firefox Gets Better Video Gaming and Warns of Non-Secure ... by Twirrim on Tuesday January 24, 2017 @09:08PM (#13477809)
Mine just pans the view upwards. Nothing I do on the trackpad will get it to recentre. It's a very beautiful view of the sky I get :D

51.0, MacBook Pro (Retina, 13-inch, Early 2015.)

Re:Firefox Gets Better Video Gaming and Warns of Non-Secure ... by alogray on Wednesday January 25, 2017 @12:45AM (#13478939)
Same model laptop but I'm stuck spinning counter-clockwise instead of panning up.
Re:Firefox Gets Better Video Gaming and Warns of Non-Secure ... by Twirrim on Wednesday January 25, 2017 @12:14PM (#13483341)
Now I'm back in the office with a wired in mouse, it's working fine.
Re:Firefox Gets Better Video Gaming and Warns of Non-Secure ... by ArlenBales on Tuesday January 24, 2017 @04:31PM (#13475716)
What year and model is your Mac?
Re:Firefox Gets Better Video Gaming and Warns of Non-Secure ... by techer on Tuesday January 24, 2017 @05:16PM (#13476227)
MacBook Pro (Retina, 15-inch, Late 2013) 2.3 GHz Intel Core i7 16 GB 1600 MHz DDR3 NVIDIA GeForce GT 750M 2048 MB
Re:Firefox Gets Better Video Gaming and Warns of Non-Secure ... by jdashg on Tuesday January 24, 2017 @06:24PM (#13476786)
I did run into this driver issue. I have that same machine, so I'm looking into it.
Re:Firefox Gets Better Video Gaming and Warns of Non-Secure ... by pjmlp on Wednesday January 25, 2017 @12:41AM (#13478915)
Same here on Windows 10 with a GT 240M, using DX 10.1 and OpenGL 3.3 drivers.
Re:Firefox Gets Better Video Gaming and Warns of Non-Secure ... by flukus on Tuesday January 24, 2017 @09:12PM (#13477833)
Build once, test everywhere!
Re:Firefox Gets Better Video Gaming and Warns of Non-Secure ... by cJ0th on Wednesday January 25, 2017 @06:07AM (#13480422)
I just upgraded to FF 51 on debian from mozilla.debian.org and when I click your link I get this message: "This demo requires WebGL 2.0 support. Please update to the latest version of Mozilla Firefox."
Re:Firefox Gets Better Video Gaming and Warns of Non-Secure ... by bzbarsky on Wednesday January 25, 2017 @12:08PM (#13483260)
Just to check, what is the "webgl.enable-webgl2" preference set to in your Debian Firefox? You can use about:config to check this.
Re:Firefox Gets Better Video Gaming and Warns of Non-Secure ... by cJ0th on Wednesday January 25, 2017 @01:11PM (#13484089)
Surprisingly, it says "true"
Re:Firefox Gets Better Video Gaming and Warns of Non-Secure ... by bzbarsky on Thursday January 26, 2017 @01:27AM (#13489179)
OK. What does "window.WebGLRenderingContext" return when evaluated in the console? What about "window.WebGL2RenderingContext"?
Re:Firefox Gets Better Video Gaming and Warns of Non-Secure ... by cJ0th on Thursday January 26, 2017 @04:00AM (#13489826)
They both print nothing to the console. However, the console greets me with an interesting message:

> Error: WebGL: Failed to create WebGL context: WebGL creation failed: * WebGL 2 requires support for the following features: get_integer64_indexed * Exhausted GL driver options.

Could this have something to do with having the 32 bit version instead of the 64 bit version?

Re:Firefox Gets Better Video Gaming and Warns of Non-Secure ... by bzbarsky on Friday January 27, 2017 @10:36PM (#13504732)
I'm asking around to see what might be going on, but it's more likely to have to do with the specific graphics card and drivers you have than with 32-bit vs 64-bit.

Does about:support say anything interesting in the "graphics" section?

Re:Firefox Gets Better Video Gaming and Warns of Non-Secure ... by cJ0th on Saturday January 28, 2017 @09:48AM (#13506502)
There you go: http://imgur.com/R3GVqSx

the "graphic card" would be Intel's HD Graphics...

edit: the problem seems to be (somewhat) debian related. I found this on SE (see first answer):

https://unix.stackexchange.com/questions/207855/cant-get-int...

EDIT 2: After installing the correct drivers from the backport repository it finally works!! Thanks for your support!

Re:Firefox Gets Better Video Gaming and Warns of Non-Secure ... by bzbarsky on Monday January 30, 2017 @04:00PM (#13524963)
Excellent!

The day will come when graphics drivers aren't a pain. It really will. I have faith, and have for decades... ;)

Re:Firefox Gets Better Video Gaming and Warns of Non-Secure ... by ArlenBales on Tuesday January 24, 2017 @04:35PM (#13475759)
Works for me also on Chrome 56 beta on Ubuntu 16.04 and a GeForce GT 640 (Driver 367.57)

http://caniuse.com/#feat=webgl2

Re:Firefox Gets Better Video Gaming and Warns of Non-Secure ... by Latty on Wednesday January 25, 2017 @10:09AM (#13481950)
"I don't play games" is such a weird comment to me, just like "I don't read books" or "I don't watch TV" - writing off an entire medium seems rash. (Even if you are just stating you don't, rather than you wouldn't - the fact you identify yourself as not doing so presumably means you are not going to try some of the great works out there).

Although, to be fair, I guess "I don't read poetry".