World-Wrapping

Post Reply
User avatar
SegFault22
Member
Posts: 872
Joined: Mon May 21, 2012 03:17
Location: NaN

World-Wrapping

by SegFault22 » Post

Many games including some of the earlier Final Fantasy games implement a world where every edge is connected seamlessly to the opposite edge, so you can go to the other side of the world by traveling in a straight line past an edge. I was thinking about that and I figured that it would be nice if a similar feature could be implemented in Minetest, where the edges of the world always connect seamlessly to the opposite edge.

The chunks at the opposite edge would load as the next chunks at each client, and the coordinates would "wrap" as well. Also, node neighbors would have to wrap - so if a node is placed at an edge or corner, its neighbors past the edge(s) would be the nodes at the opposite edge(s), which allows mesecons to work across the "seam". It may be difficult to make the map generation noise wrap over and connect seamlessly, but surely there is some way to do this, as the boundaries between chunks are connected seamlessly in a similar fashion.

I think it would be best for the limit size to be configurable, so that a server owner may adjust the size however is desired (rounded to number of chunks/blocks, of course)

Sure, you could write a simple mod to teleport the player to the other side of the world when they go past a certain distance - but that leaves much to be desired, such as being able to see what is at the other side, seamless terrain generation across the boundary, mesecons working across the boundary, building a house across the boundary, and so on.

Is this feasible?

User avatar
stu
Member
Posts: 923
Joined: Sat Feb 02, 2013 02:51
GitHub: stujones11
Location: United Kingdom

Re: World-Wrapping

by stu » Post

Did you see this topic: Minetest on a spherical planet
Maybe not quite what you are asking for but it might give you some idea of what is possible.

User avatar
paramat
Developer
Posts: 3700
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

Re: World-Wrapping

by paramat » Post

This has been discussed a lot and comes up regularly, see viewtopic.php?f=5&t=9183 that may discuss wrapping later in the thread.

User avatar
SegFault22
Member
Posts: 872
Joined: Mon May 21, 2012 03:17
Location: NaN

Re: World-Wrapping

by SegFault22 » Post

Nevermind the flat wrapped world idea, spheretest is much better and accomplishes this perfectly. If I set the radius to a large enough value, it will be too difficult to see the spherical distortion, right?

User avatar
poikilos
Member
Posts: 67
Joined: Thu Feb 18, 2016 13:45
GitHub: Poikilos
In-game: Poikilos

Re: World-Wrapping

by poikilos » Post


Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests