A fun website that simulates fluid
paveldogreat.github.io
paveldogreat.github.io
3 months ago: https://news.ycombinator.com/item?id=23955527
Here is one short code example using Euler's method where Y(n+1) = Yn + step_size * f(Xn,Yn,Zn)
c.width|=X=Y=Z=6;for(i=3e3;i--;)
X+=.1*(Y-X),
Y+=.01*(X*(29-Z)-Y),
Z+=.01*(X*Y-1.6*Z),
x.fillRect(960+X*30,Z*22,6,9)I’ve been playing Cities: Skylines since it came out and I love the fluid simulation in the rivers and mountains and dams, but I would love to see the course of the river change over the years. I’d love to see the rivers carving paths out of the mountains, and have floods/tsunamis change the shape of the coast.
I doubt they’re going to add that to Cities: Skylines any time soon, but does anyone know of any toy/game like that? Interactive fluid and erosion simulators?
It would be nice if there was something web-based that falls between the extremely basic and things like SimScale
https://play.google.com/store/apps/details?id=games.paveldog...
https://play.google.com/store/apps/details?id=games.paveldog...
Those things are so rude. I just close on principle anything which has one.
Newsletters, too.
Mine was sloppy cpu-based C# code and not this butter-smooth webGL, but mathematically it's "relatively straightforward" so long as you aren't doing anything too tricky with the boundaries
Rendering also becomes significantly more complex, as you wouldn't be able to see anything interesting if it remained fully opaque.
Most GPUs support 3D texture maps, and changing something like this to support 3D should be fairly trivial. From what I remember, the calculations for each dimension are identical.