Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to allow flat spots in procedural generated terrain?

Asked by 3 years ago

Alright, so I am using some of the code from this game: https://www.roblox.com/games/2686487577/Procedural-Terrain-Engine-Demo?refPageId=1ecf49f7-888b-44b7-a218-484236bac382

I am trying to figure out how to flatten an area so that I could add a premade model/building in that area. I know what to do, but I don't know how to do it. I have never worked with procedural generation and Perlin noise. A friend suggested that I check for slopes by comparing the center of the edges of the chunk and determine roughly how flat it is. After that, decide if the chunk should be entirely flat to reduce the amount of steepness on the sides. How could I get started with this?

Answer this question