Fractalized Mesh Algorithm
Zachary Ferguson
Step 1: Sub-divide the mesh to create new vertices between the
original ones.
-
Use the original mesh to create a new mesh.
-
Copy over the values of the original mesh.
-
Add new rows and cols between the original rows and cols while copying.
These new vertices' heights should be the average of the adjacent
original vertices' heights.
Step 2: Change the new vertices' height value to a value
specified by a random function.
The range of the random function is half the previous range that the fractalize
function was called.
-
Iterate over the new vertices
-
Change their heights by the result of the random function.
Step 3: Set the mesh to be drawn to the newly fractalized mesh.