I’m not gonna ask anyone to write me a script cuz that would be unfair, but I am, however, curious on how to get started
just make some noise, then add another noise with the double frequency on top of the first and you have a fractal noise with 2 octaves
but if you need some noise functions here is my noise class http://cloud.invidec.net/public.php?service=files&t=9f91cd7b687ac5e973e2cc42dcbcfff9
use it like…
Texture2D texture = new Texture2D(200,200);
for (int x = 0; x < texture.width; x++) {
for (int y = 0; y < texture.height; y++) {
float noise = DaveNoise.ValueNoise2DCosine(x,y,120,0.45f,0.68f,10);
texture.SetPixel(x,y, new Color(noise,noise,noise));
}
}
texture.Apply();
Output will look like this
thanks man!
What about noise that is good for generating peaks and caves…Diamond-square algorithm?
depends on what type of game you are trying to make
but you could try 2D and 3D noise in combination to make caves and overhangs.