Pedro Quijada Leyton

Game programmer with good level of mathematics skills and knowledge of C#, C++, Java and HTML5.


Terrain Generator

Team project - 26th of January, 2015


The objective of this project was to create a terrain generator using fractals, Perlin Noise and Bezier surface with the graphic engine Unity. By repeating a pattern by a number of cycles, namely fractals, the terrain is generated along the 3d scene, maintaining the Y axis value for every point in the terrain. Over this terrain generated, Perlin Noise is applied so it changes the value of the Y axis for every individual point in the terrain depending on the current values of X and Z axis of this point. Once the Perlin Noise is applied to every point, the algorithm applies Bezier curve as patches all over the terrain; in this case as the terrain is presented in a 3D space, Bezier curve is applied as Bezier patches taking 8 by 8 points successively.




An user interface offers the option of manipulating the creation of the terrain; the user can select the cycle of the fractal, going between the second and fourth cycle and also change the Perlin factor. Moreover the user can create the terrain only using Perlin or Perlin + Bezier, a camera is rotating to help the user visualize the results of their terrain, also the user can explore the terrain generated through creating and controlling an explorer.