Would minecraft-like map-generation be possible? What does this terminology related to it mean?

So i have two questions, One:

Would roblox be able to handle minecraft-like map generation as in, would i be able to pre-load chunks, load them in when the player’s facing that chunk and generate new pre-loaded chunks (that’ll blend in with the chunks around it)

Secondly, What does the following terminology from this code mean:

Amplitude
Noise Scale

Thank you for your time. (P.S, The code is not mine so don’t flame me for the un-localized variables)

1 Like

Yes, Roblox would be able to handle it. The better question would be whether or not players’ computers would be able to handle it.

The code you provided is using Perlin noise and procedural generation. (Minecraft generates their worlds in a similar manner)

Amplitude in physics definitions is the highest extent of an oscillation, measured from it’s origin. Take a look at these Perlin noise graphs, you can see how a larger amplitude results in a higher point within the graph:

Graph

The noise scale is just a way to lessen the size of the integer returned by math.noise, presumably to make the world smaller.

3 Likes

Thank you for your answer, I’ll give it all a shot today, one last Q, how would i go about blending in the chunks smoothly

1 Like

By that, I assume you mean in terms of materials. Personally, I would use the height and magnitude from the origin of the block to determine which material it is: lower blocks probably get less sunlight and don’t grow grass; high blocks are colder, so they don’t grow grass either; blocks in the middle get the right balance of sunlight, so they grow grass. There are plenty of ways to do it and it all depends on how you want your world to look.

1 Like