How can I implement terrain generation?

Hello. How do you think the system for generating buildings and landscapes is implemented in dusty trip? Does this load the system and how can I do it myself?

1 Like

I’m not familiar with that game, but I’m working on an infinitely generated terrain game that loads in ‘areas’. These areas a re pre built, and will load in randomly on a terrain chunk. The game is on my profile (for examples). Though they are pre built, there is still random NPCs/shop NPCs, etc loaded into the pre built generated areas as well.

Do you mean that the map consists of many cubes? Like in SCP-3008, for example? This is not exactly what I need. On a dusty ride, the terrain can create a mountain, leading upward, rather than going stupidly in a straight line.

You can implement a system of chunks, that load and disappear whenever a player gets close and far away.
You can use Perlin Noise if you are looking to generate mountains and varying terrain.
This can be achieved from math.noise()

Yeah it’s cubic and expands outward horizontally forever, but the height is different per cube generated, creating ‘mountains’, all though the terrain generated is basic atm (it’s not creating super realistic mountains with a bunch of noise).

1 Like

Yes. I scoured the Internet and found a very interesting video. He talks in great detail about Perlin noise and in general how to generate.

1 Like

Epic, if you implement anything useful, you should update this topic for users in the future to stumble upon your topic when asking/searching about terrain generating

1 Like