News for hackers. Stuff that matters.
Re:Autumn by zerr on Friday October 24, 2014 @09:33AM (#8503539)
Can anybody explain what's special about WebGL demos? I mean, don't we already know that WebGL exposes possibilities of OpenGL to JavaScript through browser? Am I missing something?
Re:Autumn by acdha on Friday October 24, 2014 @09:54AM (#8503628)
As others have pointed out:

1. I click in Firefox and it just works

2. I click in IE and it just works

3. I click on my iPhone and it just works

… repeat as desired …

That's never been true of OpenGL (or 3D in general) before so there's always been this divide in what people consider possible for a web app (i.e. convenient, easily shared) and the conventional software model where someone needs to download and install something first – a big step up in delay and complexity, and a reasonable hesitation for the security-conscious.

The excitement comes from the fact that now none of that is necessary for many uses – if you're working on a non-AAA game, 3D object viewer, interactive diagram, etc. etc. etc. you get support for 70% of web users globally without having to take on the expense of desktop development and support or supporting so many different toolchains. This isn't a big change for the major players who are still going to do that for other reasons but it simplifies a ton of casual usage.

Re:Autumn by robin_reala on Friday October 24, 2014 @09:57AM (#8503640)
Plug, but the ga.me people (https://ga.me/) work just down the road from me and are doing some pretty amazing stuff with WebGL games. OK, it’s not AAA, but worst it’s as least as good as the majority of Kongregate stuff and best it’s much better. And this is all just in the browser, no engine download or plugin necessary.
Re:Autumn by andreyf on Friday October 24, 2014 @04:35PM (#8505835)
Wow, impressive! And on an open platform, too: http://news.turbulenz.com/post/49430669886/turbulenz-engine-...
Re:Autumn by richardwhiuk on Friday October 24, 2014 @11:19AM (#8504099)
It really isn't true. It doesn't just work. I'm running Chrome 38 on a modern desktop PC and it doesn't render at a reasonable frame rate.
Re:Autumn by Someone1234 on Friday October 24, 2014 @11:25AM (#8504121)
You're missing the point.

WebGL runs everywhere that is objectively a Good Thing™. Your criticism is aimed at the optimisation rather than the technology.

The person who created this could, theoretically, add a little slider to let you adjust the visual quality to meet your PC's performance characteristics.

Additionally WebGL can also be utilised for things which only get rendered once (e.g. single 3D frames). Like generating 3D graphs for one suitable example.

Re:Autumn by jonas21 on Friday October 24, 2014 @11:38AM (#8504178)
> The person who created this could, theoretically, add a little slider to let you adjust the visual quality to meet your PC's performance characteristics.

If they wanted to, they could even auto-scale the quality based on frame-rate to ensure that everybody had a good experience.

Re:Autumn by badname on Friday October 24, 2014 @11:47AM (#8504212)
Cool but had to close the window 'cause CPU fans were creating turbulence in the room.
Re:Autumn by acdha on Friday October 24, 2014 @11:50AM (#8504223)
Check out chrome://gpu to see whether your specific driver is blacklisted - it sounds like you're hitting software rendering. GL becoming a mainstream feature has put pressure on vendors to ship fixes for known bugs – the Chrome team usually links to the actual bug reports so you can see why something is disabled.

Right now, this is still maturing – e.g. for me that demo runs great even on an old iPhone 4S, 2010 MacBook Air, etc. but on a lowest-bidder Dell laptop with the cheapest possible Intel integrated graphics, it struggles. One hardware generation refresh, however, and even the cheap equipment is adequate for many uses - after all, that 2010 MBA was only $1k 4 years ago.

The upshot is that the excitement is because this is finally reaching the point where support will have matured by the time most people will ship a serious app. There are already some interesting WebGL-only applications like Polarr (https://www.polarr.co/editor) which suggest that the model is already plausible for many projects.

Re:Autumn by anon1385 on Friday October 24, 2014 @09:52AM (#8503615)
>Am I missing something?

No not really. Just web developers being excited that the lords and masters who control their s̶h̶a̶c̶k̶l̶e̶s̶ sandbox have dropped them a few crumbs allowing them to compete with the native software of 1996.

Re:Autumn by robin_reala on Friday October 24, 2014 @10:00AM (#8503653)
1996 was pre-GeForce256. Your timeline is off.
Re:Autumn by Igglyboo on Friday October 24, 2014 @10:09AM (#8503707)
No way in hell you could do this realtime in 1996, native or not.
Re:Autumn by adrianN on Friday October 24, 2014 @11:08AM (#8504044)
There are some impressive demos from the late 90's. For example

https://www.youtube.com/watch?v=bUm8_b8fIuU

Re:Autumn by jdmichal on Friday October 24, 2014 @12:33PM (#8504467)
Demos are not typical and in no way demonstrate the general usage of a GPU. They use very dirty tricks to render out a specific output, and are practically useless otherwise.

Here's a list of actual software that was released in 1996:

http://en.wikipedia.org/wiki/1996_in_video_gaming

Notable entries for this conversation:

* Duke Nukem 3D * Civilization II * Quake * Command & Conquer: Red Alert * Diablo * Quake

These were good games, but not necessarily what anyone would consider graphical powerhouses with a modern frame of reference.

Re:Autumn by Igglyboo on Friday October 24, 2014 @01:41PM (#8504851)
In addition to my sibling, we have no idea if those demo's are realtime. While we can see that the OP is realtime.

Compare a pixar film to your average AAA video game, hour(s) of rendering time vs millisecond(s).

Re:Autumn by krisgee on Sunday October 26, 2014 @01:51PM (#8511665)
They're real time, that's the whole point of demos.
Re:Autumn by 21echoes on Friday October 24, 2014 @12:27PM (#8504431)
i think you're flipping the script here: the web isn't "shackled", it's a virtual machine that almost everyone and their grandmother has chosen to install. tell me how one could, in 1996, get any computer made in the last two or four years to run this software at this quality in under 3 seconds? virtual machines are slower in exchange for their universality, and we're now at the point where they're fast enough to do awesome things.
Re:Autumn by malkia on Friday October 24, 2014 @09:37AM (#8503552)
I was able to see and interact with it, without downloading a binary file, installing it, or directly running it.

The demo run just fine (perceivable 10-15fps) on my oldest chromebook - C710. And it is amazing.

Re:Autumn by malandrew on Friday October 24, 2014 @01:27PM (#8504774)
because hyperlinks. Everything is better when you can hyperlink to it.
Re:Autumn by benihana on Friday October 24, 2014 @11:27AM (#8504125)
>Am I missing something?

Yes, a sense of joy.

Re:Autumn by zerr on Friday October 24, 2014 @12:00PM (#8504267)
Well, I had a joy for the first 4-5 demos of WebGL, OK :)
Re:Autumn by Touche on Friday October 24, 2014 @09:40AM (#8503567)
> Can anybody explain what's special about WebGL demos?

Yes, you are able to see it by clicking a link on news.ycombinator.com.

In fact, all articles on Hacker News are viewable by clicking a link. That's why they're here.