How to make infinite worlds
MartinTintin3 opened this issue · comments
I noticed that all the functions require normalized coordinates from 0 to 1, but how do I normalize coordinates if I have an infinite world? This is very important and kind of counterintuitive, since Perlin noise is used for infinite world generation a lot...
Perlin noise repeats every 256 units in each coordinate direction (noise(0.1, 2.3, 4.5) == noise(256.1, 258.3, 260.5)
)
You can produce non-repeating results by synthesizing multiple noise functions or manually controlled influences.
Related article: https://developer.nvidia.com/gpugems/gpugems3/part-i-geometry/chapter-1-generating-complex-procedural-terrains-using-gpu (see 1.3.3 and 1.3.4)