- Home /
Seamless infinte terrain
i wanted an infinite terrain, i am working on the rendering but basically i use planes instead of terrains, i have 1 starting plane which when touching the player spawns 4 more planes, the planes are random generated by using "perlin noise" and sometimes when you go into a newly generated terrain the border to them both don't connect and cause holes in the map any idea how i can smooth them out to fit or not??
and also if you step into a new terrain it will spawn a new plane ontop of a previously generated plane any idea how to stop it??
just ask if you need scripts
Answer by greatwhiteshark17283 · Aug 15, 2013 at 11:02 PM
What you could do is design the world with all of the terrains in it. Then duplicate that into 9 and make a square. Make the player spawn in the center duplicate. Then if the player tries to leave it, they will be teleported backwards. I did this in one of my games and it looked just like endless terrain. If you want to make something like Minecraft where the player can change what the world looks like, then you would have to make the terrains cloned each time they leave. But otherwise, do what I said above. It makes the game run faster, too.
i like where you're going with the 9 squares, i might just make it generate 9 squares of terrain when you reach a certain point... i need it so you can come back to the place you started and it would be as you left it, if not changed by an ai