Diamond-square terrain generation problem
- by kafka
I've implemented a diamond-square algorithm according to this article:
http://www.lighthouse3d.com/opengl/terrain/index.php?mpd2
The problem is that I get these steep cliffs all over the map. It happens on the
edges, when the terrain is recursively subdivided:
Here is the source:
void DiamondSquare(unsigned x1,unsigned y1,unsigned x2,unsigned…