Fractal Mountains

Based on this paper by Eli Meir and Ben Haller

Part 1: Making Triangles

We represent the mountain as a collection of vertices.

The most efficient way to store them is simply as a 2D array of height values.

The x and y coordinates can be derived from the index in the array, and the z coordinate is the height value.

When viewed directly from above, the mountain appears as a grid of 2D triangles. The z coordinate is irrelevant.

The triangles are then formed by connecting adjacent vertices.

Part 2: Adding Height Values

Coming soon!