Right. That's enough terrain generation for a while I think...It's not exactly brilliant but it makes fairly interesting locations and you can hand-craft the heightmap if you want.

So now I got it to polygonize the rivers and lakes and generate contours. I was wondering if anyone can point me to a nice contour-hierarchy producing algorithm...you know, like "contour B is inside contour A, and contours C,D and E are inside contour B" and so on....(I already looked at openCV and didn't understand what was going on with that implementation, so...). At the moment they're a bit dodgy.

pic1.png