Search Unity

Wrapping the terrain

Discussion in 'Editor & General Support' started by Harrk, Feb 28, 2014.

  1. Harrk

    Harrk

    Joined:
    Oct 11, 2013
    Posts:
    16
    Hi, I've just put together a terrain object with some water and made a little island. I'm now trying to get the terrain to wrap around so that if you approach the edge, instead of seeing the edge of the terrain, you see the opposite side of it. I've googled a little and I found something about using a mesh with mirrors. I just recently started learning Unity so I have no idea how I go about doing that either.

    Thanks!
     
  2. Recluse

    Recluse

    Joined:
    May 16, 2010
    Posts:
    485
    You might be able to achieve this effect by using Render Texture... I've never used this feature though so I can't offer a step by step solution.

    http://docs.unity3d.com/Documentation/Components/class-RenderTexture.html

    I did make a demo with a plane flying over an endless terrain once. The way I did this was to copy my original scenery tile (I think it was something like 500 x 500 meters in size) into a grid layout, and move the pieces that are out of sight behind the player to a new offset in front of the player, just before they come into view.

    It would be great if Unity had a built-in wrap terrain feature.