2 ms·
So is this a variant of this https://en.wikipedia.org/wiki/Diamond-square_algorithm https://en.wikipedia.org/wiki/Diamond-square_algorithm Or is this exactly
by jokoon 11y ago
So is this a variant of this
https://en.wikipedia.org/wiki/Diamond-square_algorithm https://en.wikipedia.org/wiki/Diamond-square_algorithm
Or is this exactly this algorithm?
> The diamond step. For each square in the array, set the midpoint of that square to be the average of the four corner points plus a random value.
> The square step. For each diamond in the array, set the midpoint of that diamond to be the average of the four corner points plus a random value.
Seems pretty straightforward. If you couple this with a deterministic random function, you could generate a terrain which always is the same, so that would make multiplayer possible.
That's obviously what you would want in game which is very large, without having a game which is too large to download.