ugh i hate recursive problems. figuring out how to render a water block is simple: just set the water level at the corners to the highest water level of its neighborsbut wait. now i need to know what the water levels for the neighbors corners are. well, solution is simple: just set the water level at the corners to the highest water level of its neighborsoh. oh no

you are viewing a single comment's thread
view the rest of the comments
[–] [S] 1 point 1 week ago (4 children)

anyway it's not really an issue, i don't think. i'm guessing this is why minecraft never generates flowing water. you generate water in a known configuration (all blocks are full of liquid) which lets you set water levels without recursion by applying a few simple rules. then after that you can update liquid levels based on a limited set of propagating block updates

  • source
  • hideshow 4 child comments
  • [–] [S] 1 point 6 days ago (3 children)

    hmmm. minecraft only stores a single water level in the block data so clearly it's not precomputing the corners for each water blockso there has to be a way to calculate this without recursing somehow right??

  • source
  • parent
  • hideshow 3 child comments