Minetest on a spherical planet
- paramat
- Developer
- Posts: 3700
- Joined: Sun Oct 28, 2012 00:05
- GitHub: paramat
- IRC: paramat
- Location: UK
Re: Minetest on a spherical planet
You just need a mapgen that blends across the wrap-edges, it could be done with a lua mapgen or a custom core mapgen.
- D00Med
- Member
- Posts: 949
- Joined: Sat Feb 07, 2015 22:49
- GitHub: D00Med
- Location: Australia...somewhere
Re: Minetest on a spherical planet
This looks incredible!
edit: it is 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
My subgame: viewtopic.php?f=15&t=14051#p207242
-
- Member
- Posts: 204
- Joined: Sun Jul 10, 2016 05:00
- Location: Under Le' Sea
Re: Minetest on a spherical planet
Cool!
Look at that, a signiture box! To bad I have nothing to put in i-... Wait...
-
- Member
- Posts: 204
- Joined: Sun Jul 10, 2016 05:00
- Location: Under Le' Sea
Re: Minetest on a spherical planet
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...
- 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
Wow coming back to the forums and seeing this. You are awesome Jeija :)
My mods : The Cube minigame, Spleef minigame, Unbreakable screwdriver, Warp,Notifying doorbell
Serveur francophone : game.minetest-france.fr:30000 <3
Serveur francophone : game.minetest-france.fr:30000 <3
Re: Minetest on a spherical planet
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.
Re: Minetest on a spherical planet
Please fix this @Jeija
Prot wrote:Very awesome, but "stitch problems" present..
https://youtu.be/OmJ2UNU-3P0
- paramat
- Developer
- Posts: 3700
- Joined: Sun Oct 28, 2012 00:05
- GitHub: paramat
- IRC: paramat
- Location: UK
Re: Minetest on a spherical planet
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).
Re: Minetest on a spherical planet
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 :)
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 (466.99 KiB) Viewed 1090 times
-
- screenshot_20161206_105901.png (429.58 KiB) Viewed 1090 times
- 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
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.
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.
- paramat
- Developer
- Posts: 3700
- Joined: Sun Oct 28, 2012 00:05
- GitHub: paramat
- IRC: paramat
- Location: UK
Re: Minetest on a spherical planet
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.
-
- Member
- Posts: 13
- Joined: Tue Apr 05, 2016 22:03
Re: Minetest on a spherical planet
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.
- 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
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 ;-)
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 ;-)
Re: Minetest on a spherical planet
Deleted message
Last edited by Chiantos on Mon Sep 30, 2019 04:41, edited 1 time in total.
- 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
Remember to add
In your minetest.conf, otherwise the engine won't know what planet size to use and will just act as default minetest.
Code: Select all
planet_radius = 2
- 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
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?
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?
-
- Member
- Posts: 96
- Joined: Sat Oct 17, 2015 10:47
Re: Minetest on a spherical planet
Awesome stuff!! Really needs to be polished and included on future minetest releases!
- 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
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.
Re: Minetest on a spherical planet
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.
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.
- 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
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!
DMs are always open if you want to get in touch!
- ForgiveAndromedalol
- Member
- Posts: 225
- Joined: Tue Apr 11, 2017 12:34
- GitHub: ForgiveAndromedalol
- IRC: Andromeda
- In-game: Yam
Re: Minetest on a spherical planet
Wow... Sonic Adv 2 nostalgia <3. Amazing job jeija <3 !!! :) Thank You so much!!!
- ForgiveAndromedalol
- Member
- Posts: 225
- Joined: Tue Apr 11, 2017 12:34
- GitHub: ForgiveAndromedalol
- IRC: Andromeda
- In-game: Yam
Re: Minetest on a spherical planet
I think that the proper size of the spherical world would it be in 200, or maybe 100.Prot wrote:Very awesome, but "stitch problems" present..
https://youtu.be/OmJ2UNU-3P0
-
- Member
- Posts: 96
- Joined: Sat Oct 17, 2015 10:47
Re: Minetest on a spherical planet
I tried on a bit quasi-flat world and it's awesome!!
Re: Minetest on a spherical planet
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.
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.
Re: Minetest on a spherical planet
If sometimes this will be implemented the game should named voxyplanet.azekill_DIABLO wrote:the problem isthat the map must be on flat mapgen to be wrapped properly :/
Who is online
Users browsing this forum: No registered users and 8 guests