My current issue involves the use of a function called CreateChunk(x,z)
, which generates a "chunk" of terrain at specific coordinates x and z. This chunk consists of a plane with vertex heights manipulated by Perlin noise, and is painted based on these heights (including a layer of water).
While everything functions as intended for a single chunk, problems arise when I attempt to generate multiple chunks:
I understand that this behavior is expected due to the nature of the generation process, but I am seeking suggestions on how to coordinate the chunks so that they seamlessly transition from one to another while maintaining procedural generation.
If necessary, I can provide the code, although I'm primarily looking for guidance on a potential approach.