Hey guys! I tried to create a random mesh generator for my game! I want to create the terrain in chunks, so i can change the subdivision when i get closer! I made good progress and the script works for me!
But now there is a problem: when i create more than one chunk they dont fit together as they should! (They are wrong-positioned) And i can not figure it out how to solve it!
When you open the blend file you can see the script on the right! In the 3d viewport you can see a larger chunk and 4 smaller chunks!
When you scroll up to the top of the script you can change the value of the xpos and the ypos coordinates in the first number of the for command! By increasing this number you can tell blender where it should generate the chunk! When you set both to zero it will generate the chunk at 0,0,0
When you increase xpos to 1 it will generate the chunk one “chunksize” further on x-direction! So they are already at the right location!
You can also tell blender how much of this chunks should be generated by changing the “2”!
for xpos in range(0,2):
for ypos in range(0,2):
You can also change the size of the chunks by increasing the chunksize, but the final result should be size 10!
But to get a smooth terrain these chunks should have the same vertices on the edges, so it looks like “one”! And i can not figure it out how to solve this, so that they fit together, because they always have a different shape!
Can you teach me how to solve this?
Thank you for your help!
Random TerrainOnline.blend (602 KB)