# unlimited (wraparound) 3d terrain

How can I create a wrap around unlimited 3D terrain: To make it clear: If I step out of terrain in (1) or (A) I want to get to (2) resp. (B)

        |B
V
+----------+
2 -->|          |--> 1
|          |
|          |
+----------+
|A
V


I do not know how to wrap around the terrain and all the items which are on the terrain(NPCs etc) I thought of portals, but then I have problems on the corners of the terrain. In 2D it is quite simple(even trivial), but on 3D I cannot find a solution.. Any advice or tutorial ailable?

• What makes it harder in 3D compared to 2D? – msell May 3 '13 at 8:42
• in 2D I render a 2D screen and can easily use modulo to check if I need to draw an item. In 3D I usually need to use frustum culling. I do not know how to wrap the frustrum around the terrains edges – Peter Parker May 3 '13 at 9:13
• Your comment implies you're actually asking how to draw the terrain and your question seems to be asking about movement. – MichaelHouse May 3 '13 at 12:43
• I am asking about drawing or better retrieving the list of items to draw(especially when I am near the edges of the wrap around) – Peter Parker May 3 '13 at 15:38