Minetest on a spherical planet

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

Re: Minetest on a spherical planet

by paramat » Post

You just need a mapgen that blends across the wrap-edges, it could be done with a lua mapgen or a custom core mapgen.

User avatar
D00Med
Member
Posts: 949
Joined: Sat Feb 07, 2015 22:49
GitHub: D00Med
Location: Australia...somewhere

Re: Minetest on a spherical planet

by D00Med » Post

This looks incredible!
edit: it is incredible!
Last edited by D00Med on Tue Nov 15, 2016 08:06, edited 1 time in total.
Look! I have a signature :]
My subgame: viewtopic.php?f=15&t=14051#p207242

BlueTangs Rock
Member
Posts: 204
Joined: Sun Jul 10, 2016 05:00
Location: Under Le' Sea

Re: Minetest on a spherical planet

by BlueTangs Rock » Post

Cool!
Look at that, a signiture box! To bad I have nothing to put in i-... Wait...

BlueTangs Rock
Member
Posts: 204
Joined: Sun Jul 10, 2016 05:00
Location: Under Le' Sea

Re: Minetest on a spherical planet

by BlueTangs Rock » Post

Is it compatible with mods that add extra biomes,or mods that add new terrain blocks?
Look at that, a signiture box! To bad I have nothing to put in i-... Wait...

User avatar
indriApollo
Member
Posts: 146
Joined: Fri Sep 26, 2014 11:34
GitHub: indriApollo
IRC: indriApollo
In-game: SudoAptGetPlay
Location: Belgium
Contact:

Re: Minetest on a spherical planet

by indriApollo » Post

Wow coming back to the forums and seeing this. You are awesome Jeija :)

patrick55
Member
Posts: 29
Joined: Sat Jul 30, 2016 03:16

Re: Minetest on a spherical planet

by patrick55 » Post

Can you fix this or give details suggestion so others can fix? I meet the same bugs when playing this.
paramat wrote:You just need a mapgen that blends across the wrap-edges, it could be done with a lua mapgen or a custom core mapgen.

patrick55
Member
Posts: 29
Joined: Sat Jul 30, 2016 03:16

Re: Minetest on a spherical planet

by patrick55 » Post

Please fix this @Jeija
Prot wrote:Very awesome, but "stitch problems" present..
https://youtu.be/OmJ2UNU-3P0

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

Re: Minetest on a spherical planet

by paramat » Post

Well you could either write a lua mapgen that smoothly changes at all 4 edges to an ocean with a fixed seabed depth (easy), or, use a set of continuously-blended noises to make terrain match at the 4 wrapping edges (more difficult).

patrick55
Member
Posts: 29
Joined: Sat Jul 30, 2016 03:16

Re: Minetest on a spherical planet

by patrick55 » Post

Hi paramat. I try to put some block on the edges, this is what I get. see the attachments for details. the lava source can't go through to the other side. so I wonder if just change some nodes on the edges, it may not work. I don't know the details of the impl. correct me if I'm wrong.
Anyone who can fix this, please help. I love this mod :)
paramat wrote:Well you could either write a lua mapgen that smoothly changes at all 4 edges to an ocean with a fixed seabed depth (easy), or, use a set of continuously-blended noises to make terrain match at the 4 wrapping edges (more difficult).
Attachments
screenshot_20161206_105908.png
screenshot_20161206_105908.png (466.99 KiB) Viewed 1090 times
screenshot_20161206_105901.png
screenshot_20161206_105901.png (429.58 KiB) Viewed 1090 times

User avatar
taikedz
Member
Posts: 698
Joined: Sun May 15, 2016 11:11
GitHub: taikedz
IRC: DuCake
In-game: DuCake
Location: Scotland, UK
Contact:

Re: Minetest on a spherical planet

by taikedz » Post

patrick55, Prot - I think you are under the impression that Jeija's engine does something it actually does not do...

The aim was to discuss the mathematics behind mapping a plane to a sphere from a mathematical point of view - not to make a playable, ready-to-deploy game.

Jeija has already said he will not maintain this any further - it has been an awesome Proof of Concept on how to create the illusion of a spherical planet, nothing more.

If you want it maintained, you might have to roll up your own sleeves ;-)

So.

This is not really a spherical planet with a matching mapgen. It's a regular mapgen, which does not know that the engine is going to do some positional translations from one location to the other. If you want your edges to match up, use a flat mapgen. Even, try fractal, see how that goes.

Of paramat's suggestions, making a sea at the schism edges seems to be the most sensible, otherwise it means forcing matching geographies at the cardinal borders, maybe by using a buffer space at the cardinal edges, inside which a slope to the mean can be performed, but even that is likely to have quirks - what if you have a sea on one side and a cave under a mountain on the other, for example...?

Either way, this means making a custom mapgen, or adding "sphere" hooks to the mapgen calls.

Beyond that, it would require a re-write of a few of the Lua API calls so that position-related functions (find_nodes_inside_area for example) make use of the wrap awareness, as well as providing the information to the map. It may also require re-writing portions of the positional calculation libraries so that they are aware of the world radius.

This would allow mobs, liquids, and throwables to cross boundaries, follow/"see" players, and flow through.

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

Re: Minetest on a spherical planet

by paramat » Post

Yeah this just adds visual distortion so that edges of a small world appear to be next to each other, they are actually at opposite ends of a small world.

MillersMan
Member
Posts: 13
Joined: Tue Apr 05, 2016 22:03

Re: Minetest on a spherical planet

by MillersMan » Post

Maybe there is an easier solution than to patch up the whole API: Change the map to repeat sectors outside the bounds of the small world. It might be needed to also patch some uses of sector/map-block positions but I wouldn't be supprised if this only affects a very small part of the world. The big advantage of this approach is, that it might also solve the missing faces from blocks beyond the borders and flowing liquids.

User avatar
taikedz
Member
Posts: 698
Joined: Sun May 15, 2016 11:11
GitHub: taikedz
IRC: DuCake
In-game: DuCake
Location: Scotland, UK
Contact:

Re: Minetest on a spherical planet

by taikedz » Post

MillersMan - that would only cause the display of a similar map ab initio.

I think you're suggesting - for example - at the west-most side of the map displaying the corresponding east-most sector, as generated on the map as a copy?

Firstly, any sector outside the inner bounds is never displayed at all.

Secondly, even if they were, what happens once the "real" east-most block is changed? (dig, build, etc)?

Also, it doesn't solve the terrain altitude difference problem, just makes it more evident ;-)

Chiantos
Member
Posts: 377
Joined: Sun Jan 15, 2017 09:04

Re: Minetest on a spherical planet

by Chiantos » Post

Deleted message
Last edited by Chiantos on Mon Sep 30, 2019 04:41, edited 1 time in total.

User avatar
taikedz
Member
Posts: 698
Joined: Sun May 15, 2016 11:11
GitHub: taikedz
IRC: DuCake
In-game: DuCake
Location: Scotland, UK
Contact:

Re: Minetest on a spherical planet

by taikedz » Post

Remember to add

Code: Select all

    planet_radius = 2
In your minetest.conf, otherwise the engine won't know what planet size to use and will just act as default minetest.

User avatar
taikedz
Member
Posts: 698
Joined: Sun May 15, 2016 11:11
GitHub: taikedz
IRC: DuCake
In-game: DuCake
Location: Scotland, UK
Contact:

Re: Minetest on a spherical planet

by taikedz » Post

What is the result of "minetest --version" ?

Also, have you added "planet_enable = true" as well? This is documented in the README of the source code

Post the relevant section from your minetest conf

Are you doing a single player game or connecting to a server?

Also, you are aware that this was a one-off item and it will not be receiving updates right? The original coder will not be maintaining it (at least for now) and nobody has so far stepped up to the plate?

crazy_baboon
Member
Posts: 96
Joined: Sat Oct 17, 2015 10:47

Re: Minetest on a spherical planet

by crazy_baboon » Post

Awesome stuff!! Really needs to be polished and included on future minetest releases!

User avatar
MinisterFarrigut
Member
Posts: 75
Joined: Fri Oct 14, 2016 14:59
In-game: singleplayer
Location: The ruins of my basement

Re: Minetest on a spherical planet

by MinisterFarrigut » Post

I don't think it will be included in any Minetest games. It is a good idea to try, but it just doesn't make sense. People are used to the plane. Putting a set sphere on a world would kinda throw people off, I suppose.
I build buildings. I don't usually make mods...I use them.

User avatar
Sergey
Member
Posts: 784
Joined: Wed Jan 11, 2017 13:28
Location: Russia

Re: Minetest on a spherical planet

by Sergey » Post

GREAT IDEA to generate not a minetest world but a minetest planet. Huge planet.

It would be very cool to explore it. When there is no world edge. When you feel like you are in a flat world but really -- on a sphere. And if you go in one direction for a very very long time you could sometimes return to the same point from the opposite.

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: Minetest on a spherical planet

by azekill_DIABLO » Post

the problem isthat the map must be on flat mapgen to be wrapped properly :/
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
ForgiveAndromedalol
Member
Posts: 225
Joined: Tue Apr 11, 2017 12:34
GitHub: ForgiveAndromedalol
IRC: Andromeda
In-game: Yam

Re: Minetest on a spherical planet

by ForgiveAndromedalol » Post

Wow... Sonic Adv 2 nostalgia <3. Amazing job jeija <3 !!! :) Thank You so much!!!
My MODS: Water Colors - viewtopic.php?f=9&t=18241
BTW BLOCKS - viewtopic.php?f=9&t=17654

User avatar
ForgiveAndromedalol
Member
Posts: 225
Joined: Tue Apr 11, 2017 12:34
GitHub: ForgiveAndromedalol
IRC: Andromeda
In-game: Yam

Re: Minetest on a spherical planet

by ForgiveAndromedalol » Post

Prot wrote:Very awesome, but "stitch problems" present..
https://youtu.be/OmJ2UNU-3P0
I think that the proper size of the spherical world would it be in 200, or maybe 100.
My MODS: Water Colors - viewtopic.php?f=9&t=18241
BTW BLOCKS - viewtopic.php?f=9&t=17654

crazy_baboon
Member
Posts: 96
Joined: Sat Oct 17, 2015 10:47

Re: Minetest on a spherical planet

by crazy_baboon » Post

I tried on a bit quasi-flat world and it's awesome!!

User avatar
Ferk
Member
Posts: 337
Joined: Tue Aug 18, 2015 17:18
GitHub: Ferk

Re: Minetest on a spherical planet

by Ferk » Post

I didn't see this before, really cool. Nice idea to use a torus. It would be very appropriate for concepts like the moon mapgen, which currently resorts to creating a floating sphere.

Imho, it would be cool if the mapgens in minetest had an option to wrap around and the engine could simulate spatial continuity from one edge to another, even if these changes for the spherical distortion were not to be merged.
{ ☠ Dungeontest ☠ , ᗧ••myarcade•• }

User avatar
Sergey
Member
Posts: 784
Joined: Wed Jan 11, 2017 13:28
Location: Russia

Re: Minetest on a spherical planet

by Sergey » Post

azekill_DIABLO wrote:the problem isthat the map must be on flat mapgen to be wrapped properly :/
If sometimes this will be implemented the game should named voxyplanet.

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests