How can I make a terrain generator that makes more realistic terrain? My current generator makes this type of terrain:
how can I make it make more real terrain, like lakes and rivers?
But the key difference is that randomly generated content is based on hard values and rules without any further input or control from the game while procedural lets the game create content.
Minecraft terrain, like most 3D terrain in video games, is entirely based on noise. When you begin the game, a random 64 bit number called a Seed is generated (or chosen by the player), and this seed is used to generated the world.
No Man's Sky is a game built on procedural generation; that is, each planet, creature, ship, multi-tool and other items are created procedurally using algorithms in the game itself, rendering diversity through each item created.
Basically you define and apply a set of filters on your generated terrain.
I can't go into full detail but I'll provide some hints for you to google:
For rivers you could create a voronoi diagram that has thin dark lines between the light cells. You could have some gradient from dark to light for smooth transitions. Then you mulitply that diagram with your generated terrain effectively lowering hight along those lines. Together with the irregular shape of your terrain you could get some non-straight "proto"-rivers.
Next you could apply an erosion filter that simulates rain, water flow and erosion to get more realistic and smooth rivers and lakes.
This should get you started.
For more information pay VTerrain.org a visit, for example this page: http://vterrain.org/Elevation/Artificial/, or this for water simulation (hydrogeology): http://vterrain.org/Water/index.html#Hydrogeology
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With