How do I make an infinite 3d noise terrain generator like minecraft?

Hello. I’m trying to make an infinite 3d generator like :pick: minecraft but I’m not sure how I would do the chunks system and how to make it ∞ Infinite

but I’ve got this cache thing ready for decreasing lag

local Cache = workspace:WaitForChild("PartCache")

local CachePosition = Vector3.new(0,10000000000000000000000000000000000000000000,0)

function GetPart()
	if Cache:FindFirstChild("Part") then
		return Cache["Part"]
	else
		for _ = 1,10 do
			Lighting["Part"]:Clone().Parent = Cache
		end
		return Cache["Part"]
	end
end

function CachePart(Part)
	Part.Parent = Cache
	Part.Position = CachePosition
end
1 Like

Somebody has already solved this question for me a while ago. See here

I never got an answer on the math behind it but my understanding is its an allocating 2d matrix of voxels.

1 Like

But how would I add the Y Vector?. I would like to have the terrain noise 3d instead of flat 2d

Can you be more concise? What do you mean? Just modify the code he did to generate the perlin. I am sure you know its the product sum of them

1 Like