News for hackers. Stuff that matters.
Re:WebGL Path Tracing by hebejebelus on Wednesday August 10, 2011 @09:18AM (#2868012)
That's fantastic. I've been meaning to get into WebGL (perhaps make some sort of tech demo game with it). I've held off because of performance issues (also, I admit, I'm not too excited about dealing with shaders).

I think I should stop procrastinating now and actually do something with it. This is very exciting!

Re:WebGL Path Tracing by dualogy on Wednesday August 10, 2011 @09:22AM (#2868032)
Shaders are fun! Looks a bit like "scary c++" at first but not too steep a learning-curve actually. No header files, pointers and the likes. Just a couple of maths functions and maths types (vec3, float etc). Pixel shaders return a "color" vector, vertex shaders a vertex "position" and "that's about it".
Re:WebGL Path Tracing by hebejebelus on Wednesday August 10, 2011 @11:10AM (#2868575)
Oh, really? That sounds eminently doable. Do you happen to have any fantastic resource for shaders?
Re:WebGL Path Tracing by dualogy on Wednesday August 10, 2011 @01:58PM (#2869375)
Learn them together with WebGL -- I recommend "The Lessons" over at LearningWebGL.com very highly.
Re:WebGL Path Tracing by hebejebelus on Wednesday August 10, 2011 @07:07PM (#2870605)
That's a great site, thanks very much.
Re:WebGL Path Tracing by Groxx on Wednesday August 10, 2011 @12:28PM (#2868968)
Re:WebGL Path Tracing by daeken on Wednesday August 10, 2011 @01:12PM (#2869189)
I learned the basics of OpenGL from NeHe many years ago, and while things have gotten better, I can't recommend the site anymore. It's all written for old-school OpenGL (3 and below) and is generally a compendium of what you shouldn't do when writing OGL code. I still love it, but it's a bad resource for people new to OGL.
Re:WebGL Path Tracing by gcr on Wednesday August 10, 2011 @04:27PM (#2870028)
What's better?
Re:WebGL Path Tracing by daeken on Wednesday August 10, 2011 @04:49PM (#2870126)
The Orange Book, Red Book, Lighthouse3d tutorials, and general experimentation. One nice thing about WebGL is that the cruft is largely gone, due to its ES parentage. This means that a lot of old tutorials are completely irrelevant, but that you can safely use just about everything without running into horrible practices. (Not that there aren't plenty of pitfalls left.)
Re:WebGL Path Tracing by AndrewMoffat on Wednesday August 10, 2011 @12:09PM (#2868862)
The OpenGL orange book has helped me tremendously http://www.amazon.com/gp/product/B002HMJYC4/ref=pd_lpo_k2_dp...
Re:WebGL Path Tracing by crazygringo on Wednesday August 10, 2011 @11:51AM (#2868762)
This is one of the coolest things I've seen all year, without exaggeration. The gradual rendering alone is new to me (and utterly fascinating), but the fact that diffuse lighting can be rendered in a browser... this completely redefines what I understand a browser to be capable of. Seriously amazing.
Re:WebGL Path Tracing by aidenn0 on Wednesday August 10, 2011 @12:40PM (#2869035)
If you haven't seen path-tracing before, you should check out LuxRender: http://www.luxrender.net/ It's an open source unbiased renderer that uses similar techniques.

It's a massively parallel problem, so the recent abilities to run general purpose code on a graphics accelerator has really been a huge boost to performance something like: http://www.youtube.com/watch?v=70uNjjplYzA would have been impossible before CUDA came out.

Re:WebGL Path Tracing by davidwparker on Wednesday August 10, 2011 @10:37AM (#2868389)
Fantastic use of WebGL. It's amazing how much can be done in browsers today. Also amazing how much it heats up my MBP!
Re:WebGL Path Tracing by jxcole on Wednesday August 10, 2011 @04:59PM (#2870164)
This guy is an inspiration:

http://madebyevan.com/about/

I've been struggling to complete a web page app like this for a while, and he has finished several even though he's still in school.

Re:WebGL Path Tracing by dark_c on Wednesday August 10, 2011 @08:48AM (#2867925)
Warning: caused a complete system hangup here with Chrome 13 on Windows 7, Intel graphics.
Re:WebGL Path Tracing by palish on Wednesday August 10, 2011 @08:58AM (#2867953)
Warning: This is incredibly epic, and worked fine for me. May cause heart attack due to awesomeness.
Re:WebGL Path Tracing by barrydahlberg on Wednesday August 10, 2011 @09:06AM (#2867976)
Chrome 13, Windows 7 - display driver (Intel Integrated) crashed but Windows managed to recover it. Intel graphics related issue maybe?
Re:WebGL Path Tracing by jasonkostempski on Wednesday August 10, 2011 @09:28AM (#2868063)
Exact same setup and experience for me.
Re:WebGL Path Tracing by dualogy on Wednesday August 10, 2011 @09:19AM (#2868025)
Seems like a general WebGL issue -- I've seen most WebGL examples hang up or freeze on integrated graphics / Intel graphics but they always run absolutely smoothly on "full-blown" gamer-like GPUs (nVidia etc.) Unless your nVidia is on a MacBook but running Linux instead of OSX und thus odd drivers.
Re:WebGL Path Tracing by sonnyz on Wednesday August 10, 2011 @10:43AM (#2868424)
Worked great for me until I switched tabs back to HN to read comments. My screens instantly went black while my video card driver thew up all over my desk.
Re:WebGL Path Tracing by Joe8Bit on Wednesday August 10, 2011 @09:02AM (#2867966)
No problems for me at all. Chrome 14, Windows 7, nVidia graphics.
Re:WebGL Path Tracing by 4J7z0Fgt63dTZbs on Wednesday August 10, 2011 @02:51PM (#2869638)
up-to-date Chrome, Mac Lion - worked without causing any disturbance.
Re:WebGL Path Tracing by timb on Wednesday August 10, 2011 @10:07AM (#2868232)
Beautiful... the fading grain as it renders is extremely pleasing.
Re:WebGL Path Tracing by pstadler on Wednesday August 10, 2011 @10:34AM (#2868379)
Indeed, very polished. It's so awesome! Nice experience, very smooth (OSX/Radeon/FF5).
Re:WebGL Path Tracing by ansonparker on Wednesday August 10, 2011 @11:25AM (#2868644)
Found a little easter egg. Enter

javascript:ui.setObjects(makeRecursiveSpheres())

in the location bar with the page open and you'll really torture your graphics card.

Re:WebGL Path Tracing by ansonparker on Wednesday August 10, 2011 @11:21AM (#2868629)
This is killer. Be sure to try dragging the scene/objects!
Re:WebGL Path Tracing by jak3px on Thursday August 11, 2011 @09:17AM (#2872644)
Looks very promising. Congrats for the imp of the idea. Now I'll try to get out javascript/browser from the performance equation and see how it rocks.
Re:WebGL Path Tracing by evilswan on Wednesday August 10, 2011 @11:14AM (#2868591)
Works splendidly - 2011 MBP w/Radeon latest FF stable.
Re:WebGL Path Tracing by azakai on Wednesday August 10, 2011 @01:00PM (#2869133)
Works great here too, FF8 on Linux with NVidia drivers.
Re:WebGL Path Tracing by windsurfer on Wednesday August 10, 2011 @11:39AM (#2868714)
Works great! Until I overloaded it. Made my graphic driver crash.
Re:WebGL Path Tracing by dewbot on Wednesday August 10, 2011 @02:40PM (#2869579)
well you should try http://www.3dtin.com too then
Re:WebGL Path Tracing by atilimcetin on Wednesday August 10, 2011 @01:58PM (#2869374)
amazing! converges very fast.