Re:Introduction to Position Based Fluids
by nobodysfool on Wednesday April 24, 2013 @12:21PM
(#5602333)
I've never seen water simulations that can pass the U test. Basically, take a pipe, bend it into a U shape, pour the water in one side, and see if the water levels even out. If it does, then it's a very accurate simulation of water.
[ Parent
| on HN ]
I think that's backwards -- if it's a very accurate simulation of water, it will pass the U test, but you can add hacks to make a simple, inaccurate system pass it, too. See, for example, Dwarf Fortress's pressure system: http://dwarffortresswiki.org/index.php/DF2012:Flow#Fluids_un....
I agree, the U test is very hard. I spent many days trying to make a working 2D approximation with cellular automata, but I couldn't find any way to make the pressure propagation fast enough. The water would eventually level out on both sides of the U, but it took a very long time to do it.
Re:Introduction to Position Based Fluids
by andypants on Wednesday April 24, 2013 @12:53PM
(#5602516)
What happens instead in the simulations that fail?
Re:Introduction to Position Based Fluids
by nobodysfool on Wednesday April 24, 2013 @03:22PM
(#5603396)
usually the water fills up the bottom part of the U until it reaches the width of the pipe, the only one side fills up (the supply side). So if I fill up the left side of the U pipe, the water forms an L shape. On some simulations, the other side rises, but doesn't really even out.