I am currently working on an endless survival game. I want to create random world generation but I don’t know where to start. I don’t want to use parts because the would be too blocky for my game. I also don’t want to use triangles to fill those gaps between parts. I want to use the Roblox Terrain feature similar to this post made a couple of years ago.
The above is a good answer related to using actors for making the generation code run quicker. Either way you’ll have to customize their voxel generation code though. For a baseline you could use Perlin Noise (math.noise). There should be a decent amount of information there just googling around. Then just modify the algorithms until you get the desired effect.
I believe the way it works is that you generated terrain between 2 height points
For instance y = 0 → y = 100
Then you generated terrain that can have a height between that level.
Then you set a ocean level. For example y = 60
Then the mountains will appear as islands.
I’d recommend checking out this Roblox plugin called Infinite Scripter, which gives you options to generate random terrain using a UI, using perlin noise. The plugin uses modules that are in the actual game, so it’ll give you the code behind the generation.
If you want there’s a really long video explaining all of it’s features.
I’m working on a survival/RPG game that generates Infinite terrain (it’s on my profile, check it out ).
Look into the terrain class on the Roblox dev pages, it’s pretty simple to generate terrain and the documentation is written well, and its basically not laggy at all.
Fillblock and fillregion methods are probably going to be a good starting point to use, and u can use other methods depending on your needs.
Although it’s not perfect, I found a solution for world generation. It basically uses noise and a grid to generate terrain. I used vvv to generate terrain.