Jump to content

  • Log In with Google      Sign In   
  • Create Account






moist

Posted by freeworld, in ecosim 17 October 2011 · 177 views

moist...? Messing around with the water simulation in the ecosim. Trying to get it to flow over the height map properly. I think my values are just off scale or I'm still not getting the rules right.

Currently this is the rules governing how water flows.

For each Cell;
-- if Cell water > threshold

---- if Cell height > neighbor height

------ if Cell water > neighbor water - height difference

-------- Spread water from Cell to neighbor

Basically, the cells height has to be greater or within a range of the neighbor. Then the cell must have more water that the neighbor before the cell will spread it's water.





Happy Coding




Latest Visitors

PARTNERS