5 ms·
Oliver's simple fluid dynamics simulator in Javascript
- sdp 17y agoI recommend that you don't turn it up to 512 resolution on a macbook in firefox. =(
- solutionyogi 17y agoThat's why you use Google Chrome. I turned it up to 512 and that particular tab got hosed but I could easily kill it. :)
- TrevorJ 17y agoWow, that's mesmerizing. I would love to see this on a multi-touch display. I wonder if you could make an iphone app like this. Maybe have a little paper boat that floats on the surface which you can't interact with directly but you have to use your fingers to change the flow of the water to shepherd the boat through certain obstacles? If anybody wants to do this I'll donate my time to make the art :-P
- ccc3 17y agoAutodesk has an iphone app called "Fluid". Pretty much the same idea.
- axod 17y agoYou can do all the multitouch stuff with javascript on the iPhone. No need for an app.
- whughes 17y agohttp://memo.tv/msafluid_for_processing http://memo.tv/msafluid_for_processing Also ported to Flash: http://blog.inspirit.ru/?p=248 http://blog.inspirit.ru/?p=248 I've tried it on a multi-touch display, and it is a lot of fun even without any additional things to play with. Pretty heavy on the processor with a lot of people, though.
- sp332 17y agoDefinitely something that would benefit from the new Javascript "web workers" (worker threads). http://blog.mozbox.org/post/2009/04/10/Web-Workers-in-action http://blog.mozbox.org/post/2009/04/10/Web-Workers-in-action
- kingsley_20 17y agoweb workers don't have DOM access.
- sp332 17y agoI doubt updating the UI is real processor-intensive. The worker threads would do the math without blocking the UI.
- olliej 17y agoThe actual issue is parallelising it appropriately -- realistically the best you can do (with this approach) is hoist computation into a worker (which i'm working on) and you get hit by data transfer costs at that point as workers do not allow any form of data sharing between threads. I'm not sure if there is any way to feasibly improve threading of computation in a non-shared-state threading model.
- palish 17y agoBroken in Chrome on Vista Ultimate 32-bit.
- prospero 17y agoWorking in Chrome on Windows 7 32-bit.
- baddox 17y agoIt works much faster in Chrome than Firefox.
- tlrobinson 17y agoIt's even faster on recent WebKit builds (the "official" editions with SquirrelFish). Not too surprising, considering Oliver works on SquirrelFish ;)
- roblocop 17y agomore specifically still faster in chrome beta than firefox 3.5 beta on leopard