338 points · by robin_reala · 12y ago · 89 comments
C64 Music video: http://oos.moxiecode.com/js_webgl/c64_shader/
Attack on the Death Star with an X-Wing: http://oos.moxiecode.com/js_webgl/xwing/index.html
Endless Forest: http://oos.moxiecode.com/js_webgl/forest/index.html
Particle Waterfall: http://oos.moxiecode.com/js_webgl/waterfall/index.html
Gold Rays: http://oos.moxiecode.com/js_webgl/godrays/index.html
Spiders 2 (Hammertime): http://oos.moxiecode.com/js_webgl/spiders_2_hammertime/
Stopping by Woods on a Snowy Evening: http://oos.moxiecode.com/js_webgl/woods_xmas/
EDIT:
R-Type on the SNES! http://oos.moxiecode.com/js_webgl/snes_retro/
Seeing this makes me think of a future when we'll be doing the same and instead of looking at this in a browser, we'll actually be able to stand under a tree and watch the leaves fall.
As technologists, we have to make sure not to get too caught up in our own bubble. We have to remember what kind of a job our technology actually does for people, what kind of a role it actually plays in their lives. And I think the VR enthusiasts right now have a tendency to lose sight of that.
So, what kind of role could VR play in our lives? Creating more immersive, interactive cinema. This is an old idea from the 60's: http://www.vasulka.org/Kitchen/PDF_ExpandedCinema/ExpandedCi....
What I wish you said, however, is that we have a responsibility to remember what we need to do for people. The argument for standing under a tree rather than watching this could be: you can have a totally enveloping, tranquil experience without burning coal, without fracking, without necessitating the employment of exploited factory workers, without supporting the mass extraction of resources (and corresponding environmental destruction), and without adding another broken gizmo to the landfill in 5 years.
For those working on the technology, rather than building escapist fantasy worlds, you could work to make our actually existing, real, external world (note: fallacy), which is dysfunctional for billions of people, more functional. You could also refuse to build escapist fantasy worlds for people who themselves could be making a difference in the world rather than consuming resources and funneling money to the wealthy corporations in exchange for "virtual goods."
And you could also do this through VR. HMD's don't even necessarily need to display virtual worlds. Virtual worlds don't need to be purely hedonic.
All that said, maybe lying on a tempur-pedic mattress and staring up at an artificial autumn-scape is exactly what someone needs. Who can say.
No, but a lot of VR stuff is BS recreation of reality -- not a Tarkovsky.
A personal theory (though, I limit myself from saying it because it sounds kind of nuts) is that the world we're in currently (i.e. our "real world") is merely the advanced simulation of a past civilization. In essence, the Matrix is real and we're hooked into a machine somewhere. Though, I can't say I fully agree with dystopian humans-as-robot-fuel theory.
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.
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.
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.
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.
The demo run just fine (perceivable 10-15fps) on my oldest chromebook - C710. And it is amazing.
Yes, a sense of joy.
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.
On my S3 I have to enable it on Chrome and most people are using the native Android browsers.
On my Windows Phone, my 3D samples turn into a wireframe models.
Instead we have more restricted web languages, but at the cost of performance.
Basically.
Second, web sites are not allowed to execute native code, but all the modern JavaScript engines compile down to native code. My intuition tells me to expect the performance of compiled JavaScript to be low, however I have seen endless benchmarks that say that's not the case and JITed JavaScript should be plenty fast.
However I feel this disconnect between those benchmarks and reality. The benchmarks say it's fast, while in fact I perceive it to be pretty slow and a resource hog.
On my fairly old MBP, all fullscreen 3D apps (also native games) kick the fan into high gear immediately and the bottom gets warm very quickly, while most "reasonable" WebGL demos don't have this effect (e.g. some of the lighter ones from here: http://alteredqualia.com/)
Interesting discussion: http://security.stackexchange.com/questions/13799/is-webgl-a...
I agree the approach raises some doubts, as it gives untrusted web content a degree of indirect control over what kind of "safe" shader code gets passed to the GPU shader compilers. But the first-order issues are addressed by the specced security model (https://www.khronos.org/webgl/security/).
Microsoft says the security is too bad to develop for, but that could be a play for DirectX (whatever it's called now) more than a real security worry.
Point is, it seems like a lot of the WebGL security is based on "don't worry, we tested everything!"
https://code.google.com/p/angleproject/
It is likely the IE team didn't worry about portability of IE between Windows, Linux and OSX, thus they did some direct connection to DirectX that wasn't that feasible for the Chrome team.
[1] http://www.phoronix.com/forums/showthread.php?106228-RadeonS...
[2] http://amd-dev.wpengine.netdna-cdn.com/wordpress/media/2012/...
Edit: Didn't crash second time around. Still Beautiful.
I'm looking forward to a plugin-free web! Now if only we could get people to upgrade from IE8 and 9.
Fun demo.
thanks for sharing