#Perlin Noise Generation

1 messages · Page 1 of 1 (latest)

latent kiln
#

Script

local Size = 500
local Resultion = 100
local Amplitude = 10
local Frequency = 3
-- DONT SET IT TO 1024 OR HIGHER IF YOU DONT WANT A DESTROYED PC

function NoiseValue(X,Z)
    local Noise = math.noise(X/Resultion*Frequency,Z/Resultion*Frequency)
    Noise = math.clamp(Noise,-0.5,0.5) + 0.5
    return Noise
end
if not game.Workspace:FindFirstChild("NoiseTerrian") then
    Instance.new("Folder",workspace).Name = "NoiseTerrian"
end
for X = 0,Size do
    for Z = 0,Size do
        local Height = NoiseValue(X,Z)
        local Part = Instance.new("Part",workspace.NoiseTerrian)
        Part.Anchored = true
        Part.Size = Vector3.one
        Part.Position = Vector3.new(X - Size/2,Height * Amplitude,Z - Size/2)
        Part.Color = Color3.new(Height,Height,Height)
    end
    game["Run Service"].Heartbeat:Wait()
end
topaz moth
#

Add octaves

latent kiln
#

octaves?

latent kiln
#

what are octaves???

uncut mist
#

idk

latent kiln
#

well

#

do you like the terrian?

#

@topaz moth what are octaves

topaz moth
#

Imagine overlaying noise maps

#

With altering frequencies

latent kiln
#

im not a region expert

#

well

#

thats impossible to add ngl

topaz moth
topaz moth
latent kiln
#

well

#

how do we get a region to have different frequencys

#

in 1 script

#

like how?

#

if it is possible to add its gonna be like 1000+ lines longer

#

wait

#

i just realised

topaz moth
#

Nono

#

It adds like 15 lines of code

#

4 - 5 is gonna be variables with amplifiers

#

Like lacunarity, gain, fbm

latent kiln
topaz moth
#

Yeahyeah

#

Octaves just adds detail

latent kiln
topaz moth
#

I know

topaz moth
latent kiln
#

well i made script under 10 minutes and i was running it battery powered and it took like 40%

topaz moth
#

I like fbm

latent kiln
#

oh god

topaz moth
#

This was on a small scale but on a large scale it can make amazing hills and valleys

#

With alterations

latent kiln
#

i dont get how i can

#

i dont get how i can possibly do that

#

im not that advanced

topaz moth
#

Every single thing

latent kiln
#

we;;

#

well

#

uh

#

i have no idea why you need detail in a visuliser

topaz moth
#

Ohhh I might be in the wrong channel then

#

😭

latent kiln
#

its alright

#

feel free to use the script

hasty wing
latent kiln
#

i need to get it to be a editable mesh but i dunno how

latent kiln
scenic rock
#

on devforum

latent kiln
#

no

#

im just trying to make terrain

scenic rock
#

but they use editable meshes to make the oceans

#

so u can just see how they edit the meshes and do it for terrain

#

because they are editting the vertices to create the ocean and u can edit the vertices to create your terrain

latent kiln
#

but the mesh can be massive like over 4096x4096...

#

i use 1028x1028 because its very laggy

#

and its rendering over 12 million triangles

#

so an editable mesh would be better

scenic rock
#

read what i said

#

water with editable mesh edit vertices to make the water effect. you can edit the vertices to make terrain

#

read about the water to learn how to edit vertices

#

and implement that code into your terrain system

latent kiln
#

ok'

pure snow
#

Tldr doing perlin noise generation requires you to understand what it is and how to fine tune it.

topaz moth
#

Do it like chunks

#

Instead of a mega mesh

latent kiln
#

i dont know exactly how to do chunks

#

im not a perlin noise expert

hasty wing
#

It’s the exact same

#

ChunkCenter + vector3.new(x,0,z)

#

Then use that for Perlin noises xy argument

latent kiln
#

ok fine