Procedural World Generation

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.

b28a2fe13f81797eec046cc5bb8f190d69aef477_2_690x355

Feedback on island generator

Does anyone know how to make terrain based off procedural generation? Or how the island generation works in the post listed above?

2 Likes

Well I never thought I’d use this paragraph but I can finally do so.
So I was reading up on Parallel Luau | Documentation - Roblox Creator Hub a couple of months ago and I saw this paragraph: Parallel Luau | Documentation - Roblox Creator Hub that you might be interested in.

It has an example script on how you’d efficiently implement it. Hopefully you can make more sense of it than I did when I first read it.

2 Likes

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 cant believe you lied’‘’‘’‘’ to me’…

Although this should be in… scripting.

I think that isn’t his, but an example of what he wants…

Ok. But put this in scripting suppport.

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.

2 Likes

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.

1 Like

Although the generation code works, I was not able to understand it well enough to make it not look islands.

I’m working on a survival/RPG game that generates Infinite terrain (it’s on my profile, check it out :slightly_smiling_face:).

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.

workspace.Terrain:FillBlock(CFrame.new(posx, posy, posz), Vector3.new(sizex, sizey, sizez), Enum.Material.Grass)

The generation is based off this video, but I used terrain instead of parts

Now all I need is to make a falloff map.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.