moist

Published October 17, 2011
Advertisement
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
Previous Entry TDMTG
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement