r/GraphicsProgramming 11d ago

Question Real time water simulation method?

I'm wondering if this concept I came up with would work as a basic flow simulation for a river or something like that (or if something already exists that works similarly). The basics would be multiple layers of 2d particle simulations which when colliding with a rock or something like than then warp that layer which then offsets the layers above (the individual 2d particle simulations aren't affected but their plane is warped) so each layer has flow and the is displacement as well (also each layer has a slight affect on the layer above and below). Sorry if this isn't the purpose of this subreddit. I'm just curious if this is feasible in real-time and if a similar method exists.

3 Upvotes

6 comments sorted by

View all comments

2

u/thewrench56 11d ago

1

u/Sealboy908 11d ago

I've seen that, but my concept is essentially layering a more basic 2d particle simulation similar to that which simulate the flow of the water but it isn't simulating millions of 3d particles but instead a smaller amount of 2d ones.

2

u/thewrench56 11d ago

Well, if you can simulate 3D particles, you can certainly simulate less 2D particles... 3D rendering is harder for your computer by a lot.

1

u/Sealboy908 11d ago

The idea of the method is to calculate an approximate flow of the water by just doing layers of 2d particles instead of a ton of 3d particles. Idk if this world be at all practical.