News for hackers. Stuff that matters.
Re:Physically Based Rendering Comes to WebGL by bhouston on Wednesday December 10, 2014 @01:22PM (#8730724)
Sweet! Beautiful work.

PS. https://Clara.io also has support for physically-based rendering in WebGL, just use the "Physical" material. :)

Re:Physically Based Rendering Comes to WebGL by mrmoka on Wednesday December 10, 2014 @01:28PM (#8730765)
Nice! Is there are any nice demo with CubeMaps?
Re:Physically Based Rendering Comes to WebGL by bhouston on Wednesday December 10, 2014 @01:31PM (#8730790)
It isn't yet officially released so I am not yet showing off the demos. But you can try it yourself, just create a new scene and add a Physical material to an object. From a technical perspective, it is an implementation of GGX, Schlick, Anisotropy/Anisotropy Rotation, Translucent SSS, and Clear Coat.
Re:Physically Based Rendering Comes to WebGL by duaneb on Wednesday December 10, 2014 @03:40PM (#8731548)
I gotta say, it's mighty ironic to use CubeMaps when testing out physically based rendering. Clearly, only the material is physically based :P
Re:Physically Based Rendering Comes to WebGL by swalsh on Wednesday December 10, 2014 @01:02PM (#8730605)
This is the first time I've seen playcanvas. It's a very impressive platform so far. A pretty good potential competitor with unity in the future?
Re:Physically Based Rendering Comes to WebGL by bhouston on Wednesday December 10, 2014 @01:23PM (#8730729)
PlayCanvas is very nice! And nice people as well.

It is hard to compete with Unity with the same efficiency on all the non-web platforms platforms supported by Unity when it has to run in a browser/JavaScript. But for web-based games PlayCanvas beats out Unity clearly.

Re:Physically Based Rendering Comes to WebGL by nacs on Wednesday December 10, 2014 @04:05PM (#8731685)
> But for web-based games PlayCanvas beats out Unity clearly.

For the moment at least, if you discount the Unity plugin approach.

Unity 5, the coming version, features a (plugin-less) WebGL-export (and I believe the Unity 5 beta already supports it):

https://blog.mozilla.org/blog/2014/03/18/mozilla-and-unity-b...

Re:Physically Based Rendering Comes to WebGL by daredevildave on Wednesday December 10, 2014 @05:01PM (#8731996)
The Unity WebGL export is great news. It is pushing forward the platform.

However, the reality is that they are desktop only, at least for the foreseeable future. The Emscripten Webplayer generates a significant blob of Javascript which doesn't work well on mobile.

Raw Javascript engine's like PlayCanvas are ~500Kb compared to ~10MB for Unity in Javascript.

Re:Physically Based Rendering Comes to WebGL by bhouston on Wednesday December 10, 2014 @04:15PM (#8731745)
To a degree, but Unity 5 isn't at all like a JavaSCript app. It's WebGL approach is basically to convert C++ and C# -> JavaScript via emScripten. It is a messy approach and it doesn't really take advantage of what the web offers -- because you still create your game in C#.

I think anyone that wants to target the web primary should use something that isn't based on a large emScripten blob as their engine. This will become more and more of a liability as time goes on.

But this does give Unity 5 a checkbox besides WebGL.

Re:Physically Based Rendering Comes to WebGL by duaneb on Wednesday December 10, 2014 @03:39PM (#8731539)
Maybe, but performance is still pretty terrible for a number of reasons (GC/optimized features vary greatly across browsers) compared to one run by a more static VM. As a raw GPU driver, it works pretty well, though.
Re:Physically Based Rendering Comes to WebGL by solarmist on Wednesday December 10, 2014 @01:59PM (#8730941)
Did anyone else think of the book when they read the title?

http://www.pbrt.org/

Re:Physically Based Rendering Comes to WebGL by bhouston on Wednesday December 10, 2014 @02:06PM (#8730985)
That is where this originated, at least in part. :)

BTW one of the best references is this: http://blog.selfshadow.com/publications/s2013-shading-course...

Re:Physically Based Rendering Comes to WebGL by Htsthbjig on Wednesday December 10, 2014 @05:00PM (#8731995)
Worked in Firefox with a recent iMac, but slow in fullscreen.

So I opened it in chrome and it hangs my iMac. I do graphics programming and use 3D a lot, and it is the first time my machine hangs.

Re:Physically Based Rendering Comes to WebGL by Raticide on Wednesday December 10, 2014 @08:26PM (#8732713)
Runs fullscreen in Chrome on my iMac just fine. Framerate isn't so hot though.
Re:Physically Based Rendering Comes to WebGL by kagia on Wednesday December 10, 2014 @01:39PM (#8730832)
It worked really well for me, and I hope to see some more demos!
Re:Physically Based Rendering Comes to WebGL by mauricesvay on Wednesday December 10, 2014 @01:09PM (#8730639)
Re:Physically Based Rendering Comes to WebGL by Maken on Wednesday December 10, 2014 @01:50PM (#8730888)
I love how the physically-based model include an ambient map. Because you can't have those with Blinn-Phong shading.

Also, by physically-based rendering I assume they mean physically-plausible shaders.

Re:Physically Based Rendering Comes to WebGL by mrmoka on Wednesday December 10, 2014 @01:11PM (#8730653)
Weird, but sketchfab demo is really slow here.
Re:Physically Based Rendering Comes to WebGL by bhouston on Wednesday December 10, 2014 @01:33PM (#8730796)
It seems broken right now. I think this was a special purpose demo. It did work back when it was released.