Terrain generation and water simulation in Unity C#. (42 Silicon Valley)
Made in Unity version 2018.3.12f1
Recommended screen resolution: 1024 x 768
After building the game in Unity, copy Assets/Maps
to <build_directory>/Assets/Maps
.
W
,A
,S
,D
,Q
,E
Move around.Left Shift
+Move Mouse
Look around.
- Enter terrain file name in text field, and then click
Load Terrain
to build height map in Unity Terrain object.- demo1.mod1
- demo2.mod1
- demo3.mod1
- demo4.mod1
- demo5.mod1
- Click
Random Terrain
to generate and texturize a 3D mesh from layered Perlin noises.- Adapted from Sebastian Lague's Procedural Terrain Generation tutorial.
Voxel Size
Adjust water size.Numpad 1
Initialize water around 4 edges of terrain.Numpad 2
Initialize water along 1 edge of terrain.- Tap
Numpad 3
Spawn rain. - Hold
Numpad 6
Spawn rain. - Tap
Numpad .
Take 1 step in water-filling simulation. - Hold
Numpad 0
Fast-forward water-filling simulation.
Particle Size
Adjust water size.1
Spawn water around 4 edges of terrain.2
Spawn water along 1 edge of terrain.3
Spawn rain.
- Tap
P
Spawn a toon witch, who does not like water. - Hold
M
Activate Moses. R
Remove all water and monsters.