News for hackers. Stuff that matters.
Re:WebGL Shader Toy by abi on Thursday March 17, 2011 @02:34AM (#2335287)
I don't think enough people are understanding (1) how cool this is (switch to the tunnel presets and start tweaking the inputs and the shader!) and (2) how important this is for introducing/teaching people about computer science. Now, for the first time ever, we can actually teach kids how to program cool 3D graphics with just a browser (no downloads, no messing with installation issues, no platform-dependent crap).

I'm planning on teaching a class on WebGL for high schoolers at my university (for those of you who are curious, it's through this program [1]). All I have to do is get them to open Chrome/Safari, show them this page and teach them a few basic concepts about OpenGL/vertices/textures/shaders and they can start learning stuff on their own. Hacking and tweaking stuff is the most fun way to learn something. And I think this could be a major milestone for computer science education.

[1] http://www.stanfordesp.org/

Re:WebGL Shader Toy by stevenashley on Thursday March 17, 2011 @07:40AM (#2335776)
I can vouch for this approach. When I was younger I discovered the magic of the Winamp AVS Editor. I would not be developing software today if I hadn't of discovered it.

It should be possible to perform audio analysis within the shader using the Web Audio API. Google has some demos [1] that seem to do this sort of thing though they don't seem to work for me.

These new APIs have me quite excited :)

[1] http://chromium.googlecode.com/svn/trunk/samples/audio/index...

Re:WebGL Shader Toy by buza on Friday March 18, 2011 @07:00PM (#2342370)
This is absolutely a wonderful project, from a very talented member of the demoscene. However, "for the first time ever" isn't entirely accurate. Web-based visual experimentation environments for 2d/3d programming have existed for years, from the Flash-based (wonderfl.net), to Java, to (many) based on processing.js. Being shader-based, I'd say this is actually less accessible to kids, unless you're just teaching them that moving sliders and changing parameters is 'programming'.
Re:WebGL Shader Toy by Geee on Wednesday March 16, 2011 @10:43PM (#2334880)
Thanks, this is like totally awesome. I've often wanted to hack shaders, but never really got to it. This seems like a nice tool for that purpose.
Re:WebGL Shader Toy by tintin on Thursday March 17, 2011 @04:12AM (#2335438)
Note that Iñigo Quílez is big in the demo scene: http://www.iquilezles.org/prods/index.htm

It's amazing what he can do in realtime.

Re:WebGL Shader Toy by wtracy on Thursday March 17, 2011 @12:45AM (#2335106)
Anyone care to explain this to someone who doesn't have a WebGL-enabled browser handy?
Re:WebGL Shader Toy by AndrewMoffat on Thursday March 17, 2011 @01:35AM (#2335198)
It's basically an interactive shader editor with some great presets. Let's you see the code and the resulting effect basically in realtime.
Re:WebGL Shader Toy by Zolomon on Thursday March 17, 2011 @05:16AM (#2335529)
I've started Chrome with WebGL enabled, but nothing happens when I press the playbutton? How can I verify that WebGL is truly enabled, am I just not using the app correctly?
Re:WebGL Shader Toy by Zolomon on Thursday March 17, 2011 @05:21AM (#2335533)
http://learningwebgl.com/lessons/example02/ told me it could not initialize WebGL - think I'm missing the DirectX runtime.
Re:WebGL Shader Toy by mieses on Thursday March 17, 2011 @01:04AM (#2335151)
along these lines, another nice WebGL demo is fractal.io
Re:WebGL Shader Toy by derleth on Thursday March 17, 2011 @12:49AM (#2335112)
Fair warning: Some of these really grab CPU cycles.
Re:WebGL Shader Toy by endtime on Thursday March 17, 2011 @03:05AM (#2335338)
Hmm. Shouldn't it all be on the GPU?
Re:WebGL Shader Toy by nossralf on Thursday March 17, 2011 @03:29AM (#2335379)
I believe both Chrome and Firefox 4 uses ANGLE if the 3D driver is too old. So it's possible to only hit the CPU with WebGL in certain instances.
Re:WebGL Shader Toy by endtime on Thursday March 17, 2011 @10:39AM (#2336203)
Yeesh. Running a pixel shader on a CPU is not a pretty thought.