Procedurally generated terrain

A script that generates random terrain from predefined patterns: slopes, craters, hills. The script also controls the height and size of these elements, as well as their types of surface: smooth or craggy.

What I learned :

  • C# : Generating meshes from code (monobehaviour scripts)

  • C# : Displacing vertices from code to generate different combinations of terrain and surfaces: smooth slopes, craggy craters, etc.

  • Math : recalculating the vertices’ normals using the cross product of 2 sides of each triangle

Précédent
Précédent

The solar system - a shader project

Suivant
Suivant

Mario 3d World inspired platformer