lifacy
(lifacy)
November 1, 2020, 7:35pm
2
I have used perlin noise before for something similiar. I can go in studio in some of those old projects and grab some code if you have more questions, but here are some discussions I found on the forums that should help you out:
Just typed it up in segments through the day at school
This is a tutorial for the 3D math function called perlin noise, used for “fog screens” and random terrain generation, and perlin worms.
What is the function
The function for perlin noise is very simple:
math.noise(X,Y,Seed)
X is your… X value, Y is your Y or Z value, and the seed is the seed used to calculate the numbers.
If the seed is greater than 0 and less than 1, the Y value will be between -1 and 1. It’s common range is -0.5 to …
I will try to explain how I made my first map using Perlin Noise.
(I am not a professional at this)
Making the map:
local Part = Instance.new("Part") --For cloning
Part.Anchored = true
Part.FormFactor = "Custom"
Part.Size = Vector3.new(4,4,4)
Part.TopSurface = "Smooth"
local seed = math.random(1, 10e6)
local frequency = 3
local power = 4
local resolution = 100
for x = 1, resolution do
for z = 1, resolution do
local y1 = math.noise(
(x*frequency)/resolution,
…
4 Likes