Loading video...

Video Failed to Load

Go Home

Tried to use reintegration tracking for simulating something "shallow water equation" like. Curiously it was simply enough to put an ideal gas in a potential field of the terrain shape. In that case the density is proportional to the height of the water. (but you do need to find...

18,859 views • 2 years ago •via X (Twitter)

6 Comments

Mykhailo Moroz's profile picture
Mykhailo Moroz2 years ago

It can be derived by stating that the height of the fluid + terrain must be constant H = h + rho = const grad(h + rho) = 0 -> grad(h) = -grad(rho) So if the gradient of the density (which is our force here) is equal to the negative gradient of the terrain height then their sum should be flat.

Mykhailo Moroz's profile picture
Mykhailo Moroz2 years ago

In the simulation this can be done by adding the negative of the terrain gradient to the SPH pressure (which for an ideal gas is just the density). Since the simulation will tend to 0 net force, the surface will tend to flatness.

Mykhailo Moroz's profile picture
Mykhailo Moroz2 years ago

Also, initially I've implemented the "Trivial Algorithm for Interactive Water Simulation" paper, but I didn't like how handwavy it was and didn't have actual fluid inertia, but it does produces much nicer waves.

Mykhailo Moroz's profile picture
Mykhailo Moroz2 years ago

I still wonder if I can make the reintegration one less "viscous" Also a potentially interesting extension would be to try to add additional layers of the heighfield(density) to try to emulate a 3d liquid (2.5d). Tho no idea how exactly the algorithm will look like.

Mykhailo Moroz's profile picture
Mykhailo Moroz2 years ago

Comparing trivial water to reintegration tracking:

Mykhailo Moroz's profile picture
Mykhailo Moroz2 years ago

Comparing the surface quality: first is trivial water then reintegration

Related Videos

Robert F. Kennedy Jr.: "Fluoride was put in the water in the 1940s. And it was put in the water to stop tooth decay. Yes. But now it's recognized that most of our mouth washes and toothpaste have fluoride in them and you don't need fluoride in the water and it's a very inefficient way of preventing tooth decay because you're getting it in people's blood and that's how it's exposing the teeth." "And as it turns out, fluoride is very, very dangerous. It causes IQ loss. We know, you know, they haven't done a lot of studies that they should have done, but there are extensive studies that show if you put fluoride in water at double the rate that EPA now allows, that is in all of our water systems, they use it in this country, that it causes dramatic IQ loss in children and particularly in unborn fetuses. It also causes bone cancer, and we had an explosion of bone cancer beginning in the 1940s." "It causes arthritis, and it causes the deterioration of bones, of bone fractures, and it causes thyroid injuries. It also calcifies the pineal gland of the human brain, which is the part of our brain that actually creates our spiritual feelings. And so it's just something, yeah. It's something that you wouldn't want in a water supply. And it's a very easy, it's gonna have to be taken out anyway because of this court case, but the EPA will drag its feet and take 10 years or 15 years to do it." "This is so shocking to me because, you know, being against fluoride in the water was the single most reliable marker of mental illness, according to the US media for like, 60 years. Well, you know, it was, it was the, it was the subject of a conspiracy theory. Right. Put in our water by communists. Exactly. In order to sap the figure from the American people. And as it turns out, you know, it actually, the health injuries that... were predicted for it, were not exactly, but there are profound health injuries and it's just insane to have it in our water." "It's absolutely insane. So why would EPA fight the removal of it? CDC says it's one of the 10 greatest health introductions of any, or inventions of any in the 20th century. And so they've stuck their neck, it's like everything else that they do. They stick their neck out on something, they promote it to the American public and then they don't wanna dial it back." "They do not wanna admit that they made a mistake. And they do this with a lot of products. Once they approve them, they're gonna fight to keep them there. But it's one of the easiest thing you can do to start restoring American health is just get the floor out of the water. You're gonna have a higher IQ children. You're gonna have less bone cancer, less..."

Camus

130,603 views • 1 year ago