Home Download Tutorial Algorithms GitHub



Fractalized Mesh Algorithm
Zachary Ferguson



Step 1: Sub-divide the mesh to create new vertices between the original ones.
  1. Use the original mesh to create a new mesh.
  2. Copy over the values of the original mesh.
  3. 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.
  1. Iterate over the new vertices
  2. Change their heights by the result of the random function.
Step 3: Set the mesh to be drawn to the newly fractalized mesh.