dnebeker wrote:..
With that in mind, where can I look in the code to find existing water flow dynamics?
...
I once used a program called Scapemaker. It simulated erosion by calculating "waterdrops". Version 1.3 is still on the net but the old homepage seems broken. It could import greyscale hightmaps saved as png and export results as png again. I imported some maps to WorldPainter and exported that to MC. Was fun, got some epic failures until I figured out how to tweak the maps.
If I remember correctly this wasn"t the only program to produce pixelmap based hightmaps. Seems the format for this for the unproffesional. Don't know what Terragen can export to but there is a script to get the results into Blender.
To design own maps we would need something along the line of WorldPainter (search MC forums). Maybe the makers can be convinced to export to Minetest as well. Is there an import/export library somewhere? A whole map in WE format might be to large. Maybe a tool to feed a large zipped we file into sqlite? Could a hightmap be fed to the terraingenerator which adds its other magic over and underground but keeps the hight information?
As for the ingame terrain generating with water might prove difficult. At the moment the map is generated chunkwise as you visit the area. Seeing what happens to the trees of the more trees mod when they generate near chunk borders with one chunk loaded and the other not when calculated, I can imagine a lot of problems with water flowing over chunk borders. Water would not be restricted like the flowing lava in caves. One sollution would be to generate all chunks which are connected by flowing water. You would also have to generate chunks to see if your chunk might recieve water from a new one. This could go on for ever, so generating would have to be limited by producing island worlds devided by at least chunk wide oceans. Hmmm ... oceans .... I would love that ... buildable ships ... not one node boats ... real ships ... I'm off dreaming ... er there are threads on rivers somewhere on the forum ... I'm of to the seaside ...