Live data from Hacker News

Oliver's simple fluid dynamics simulator in Javascript

nerget.com

1–10 of 16 posts

Re: Oliver's simple fluid dynamics simulator in Javascript

#3
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

Re: Oliver's simple fluid dynamics simulator in Javascript

#5
post #3

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

Autodesk has an iphone app called "Fluid". Pretty much the same idea.

Re: Oliver's simple fluid dynamics simulator in Javascript

#9
post #4

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

web workers don't have DOM access.

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

Re: Oliver's simple fluid dynamics simulator in Javascript

#10
post #3

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

You can do all the multitouch stuff with javascript on the iPhone. No need for an app.
Post reply on HN