Floody water
#1
I've created a new SVN branch to play with an algorithm for water physics that I've wanted to try out. I call it "floody water", because what I expect it to do is to distribute water much more aggressively than the vanilla algorithm, yet it should be perfectly predictable, unlike our current fluid simulator.

The general idea is to completely remove current fluid simulators, then code the fluid physics in the block update handlers. The block udpate handler will decide if it wants to flow or not, based on the block ID (same as vanilla MC; the reason for having still-water and regular water); if it wants to flow, it will check the immediate neighborhood of itself in 4 directions and try to flow into all 4, if possible. Then it will mark itself as having flowed, not wanting any more updates, until a block next to it updates.

The vanilla algorithm tries to search for a "hole" that would allow it to flow lower, and then only flows towards such a hole. "Floody" will flow all over the place, reaching not only the hole, but all its surroundings.

I believe it will be possible to finally include a switch and have the world use either Floody or Vanilla algorithm, based solely on server admin's desire.
Reply
Thanks given by:


Messages In This Thread
Floody water - by xoft - 10-03-2012, 12:40 AM
RE: Floody water - by FakeTruth - 10-03-2012, 01:10 AM
RE: Floody water - by xoft - 10-03-2012, 01:29 AM
RE: Floody water - by NiLSPACE - 10-03-2012, 02:23 AM
RE: Floody water - by xoft - 10-03-2012, 05:05 AM
RE: Floody water - by NiLSPACE - 10-03-2012, 05:14 AM
RE: Floody water - by xoft - 10-03-2012, 05:17 AM
RE: Floody water - by NiLSPACE - 10-03-2012, 05:19 AM
RE: Floody water - by FakeTruth - 10-03-2012, 06:43 AM
RE: Floody water - by Taugeshtu - 10-03-2012, 08:18 AM
RE: Floody water - by xoft - 10-03-2012, 04:32 PM
RE: Floody water - by ThuGie - 10-03-2012, 11:04 PM
RE: Floody water - by xoft - 10-03-2012, 11:08 PM
RE: Floody water - by xoft - 10-13-2012, 08:01 PM
RE: Floody water - by l0udPL - 10-14-2012, 02:21 AM
RE: Floody water - by xoft - 10-14-2012, 03:21 AM
RE: Floody water - by xoft - 10-15-2012, 02:26 AM
RE: Floody water - by FakeTruth - 10-15-2012, 03:56 AM
RE: Floody water - by xoft - 10-15-2012, 04:34 AM
RE: Floody water - by FakeTruth - 10-15-2012, 09:02 AM
RE: Floody water - by NiLSPACE - 10-15-2012, 04:56 AM
RE: Floody water - by xoft - 10-15-2012, 04:58 AM
RE: Floody water - by NiLSPACE - 10-15-2012, 05:00 AM
RE: Floody water - by xoft - 10-15-2012, 06:13 AM
RE: Floody water - by ThuGie - 10-15-2012, 09:31 AM
RE: Floody water - by xoft - 10-15-2012, 07:57 PM
RE: Floody water - by xoft - 10-16-2012, 06:17 AM
RE: Floody water - by NiLSPACE - 10-17-2012, 04:28 AM
RE: Floody water - by xoft - 10-17-2012, 05:36 AM
RE: Floody water - by NiLSPACE - 10-17-2012, 03:17 PM
RE: Floody water - by ThuGie - 10-18-2012, 05:49 AM
RE: Floody water - by xoft - 10-18-2012, 07:17 AM
RE: Floody water - by ThuGie - 10-18-2012, 02:49 PM
RE: Floody water - by NiLSPACE - 10-19-2012, 02:26 AM
RE: Floody water - by xoft - 10-19-2012, 04:00 AM
RE: Floody water - by NiLSPACE - 10-19-2012, 04:33 AM
RE: Floody water - by xoft - 10-19-2012, 05:42 AM
RE: Floody water - by NiLSPACE - 10-23-2012, 10:51 PM
RE: Floody water - by xoft - 10-24-2012, 01:50 AM
RE: Floody water - by NiLSPACE - 10-25-2012, 07:13 PM
RE: Floody water - by NiLSPACE - 03-21-2013, 04:10 AM



Users browsing this thread: 4 Guest(s)