Hi, I’m new to perlin noise, and I’ve learn enough to manage to generate 3D Perlin Noise terrains, but I have a problem. I want to extract only 1 layer within the perlin noise, I used a gradient map to seperate the sky and ground and underground, but the layer thickness is inconsistent (Sometimes it would be 1 block thick, but sometimes it’s few blocks thick.)
The paint drawing is a 2D version of my explanation. Y is the gradient map value, it’s based on the perlin noise in that area. Ignore the Y Axis, it’s extra. Could I use derivative to get the
My current code example.
if (perlinNoise >= y && perlinNoise < y-0.1){
generateABlock();
}
Thanks in advance!