Settings

Theme

Oliver's simple fluid dynamics simulator in Javascript

nerget.com

53 points by nickb 17 years ago · 15 comments

Reader

TrevorJ 17 years ago

Wow, 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

baddox 17 years ago

It works much faster in Chrome than Firefox.

  • tlrobinson 17 years ago

    It's even faster on recent WebKit builds (the "official" editions with SquirrelFish).

    Not too surprising, considering Oliver works on SquirrelFish ;)

    • roblocop 17 years ago

      more specifically still faster in chrome beta than firefox 3.5 beta on leopard

sp332 17 years ago

Definitely something that would benefit from the new Javascript "web workers" (worker threads). http://blog.mozbox.org/post/2009/04/10/Web-Workers-in-action

  • olliej 17 years ago

    The 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.

  • kingsley_20 17 years ago

    web workers don't have DOM access.

    • sp332 17 years ago

      I doubt updating the UI is real processor-intensive. The worker threads would do the math without blocking the UI.

sdp 17 years ago

I recommend that you don't turn it up to 512 resolution on a macbook in firefox. =(

  • solutionyogi 17 years ago

    That's why you use Google Chrome. I turned it up to 512 and that particular tab got hosed but I could easily kill it. :)

palish 17 years ago

Broken in Chrome on Vista Ultimate 32-bit.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection