Special "Spherical" World Gen Idea...

User avatar
aFoxNamedMorris
Member
 
Posts: 14
Joined: Sat Aug 11, 2012 15:57

Special "Spherical" World Gen Idea...

by aFoxNamedMorris » Tue Feb 18, 2014 05:49

Heya. I was discussing Minetest with a friend of mine, and I asked him what could be added to the game to make it more unique. He came up with a system of chunk loading that would essentially count up or down in a direction until it spawned you on the opposite side of the map. I added in the idea of a render mode that causes the horizon to appear bowed... this would allow for a SpaceTest mod to give the illusion of a round planet, moon, or asteroid, while still remaining flat.

So you'd have a new variable for world size in chunks, and a fake chunk loader for seamlessly wrapping you from one side of the world to another, with a screen rendering system that causes the horizon to appear slightly curved, maybe based on the world size. :3

Dunno if it's a good or bad idea per-se, but I thought it would be a good idea to suggest it anyway.


~Morris
 

User avatar
Novacain
Member
 
Posts: 285
Joined: Sat Aug 31, 2013 01:03

by Novacain » Tue Feb 18, 2014 06:08

this has been discussed before. you can refer to this thread for ideas on what to do.
EXTERMINATE!!!
My Tronrealm modpack
My tronblocks mod
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

by paramat » Tue Feb 18, 2014 08:08

In the meantime, you can create a truly spherical planet-realm using my flexrealm mod https://forum.minetest.net/viewtopic.php?id=7887 with the option:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
local planet = true -- Planet sphere
Last edited by paramat on Tue Feb 18, 2014 08:09, edited 1 time in total.
I rely on donations to help provide an income https://forum.minetest.net/viewtopic.php?f=3&t=14935
 

User avatar
aFoxNamedMorris
Member
 
Posts: 14
Joined: Sat Aug 11, 2012 15:57

by aFoxNamedMorris » Tue Feb 18, 2014 20:33

Novacain wrote:this has been discussed before. you can refer to this thread for ideas on what to do.


That's only half of the same idea. The bowed rendering would complete the illusion. I'm not good with C# or LUA, so I'd need a lot of help to get this implemented. Also, I'd like to get the discussion going again, and personally don't like posting in topics that are a year or more old.
 

User avatar
Novacain
Member
 
Posts: 285
Joined: Sat Aug 31, 2013 01:03

by Novacain » Tue Feb 18, 2014 21:27

well, it would help you get closer.
EXTERMINATE!!!
My Tronrealm modpack
My tronblocks mod
 

User avatar
aFoxNamedMorris
Member
 
Posts: 14
Joined: Sat Aug 11, 2012 15:57

by aFoxNamedMorris » Wed Feb 19, 2014 01:16

We were thinking the wrapping could start at maybe 6,275,410 metres/blocks, and then starts loading chunks from the opposite side of the map, counting back to the start. :3
Last edited by aFoxNamedMorris on Wed Feb 19, 2014 02:15, edited 1 time in total.
 

User avatar
Novacain
Member
 
Posts: 285
Joined: Sat Aug 31, 2013 01:03

by Novacain » Wed Feb 19, 2014 03:37

aFoxNamedMorris wrote:We were thinking the wrapping could start at maybe 6,275,410 metres/blocks, and then starts loading chunks from the opposite side of the map, counting back to the start. :3
hmm... except that a world is approx 64,000 x 64,000 nodes for x and z.
EXTERMINATE!!!
My Tronrealm modpack
My tronblocks mod
 

thetoon
Member
 
Posts: 106
Joined: Tue Dec 11, 2012 12:55

by thetoon » Wed Feb 19, 2014 08:34

"Bowed" horizon would only make sense on a spherical world. Not a donut-shaped one like what you suggested.
 

User avatar
Enke
Member
 
Posts: 469
Joined: Fri Nov 15, 2013 02:56
GitHub: NANOsoldierEnke
IRC: Enke
In-game: Enke

by Enke » Thu Feb 20, 2014 02:19

Novacain wrote:
aFoxNamedMorris wrote:We were thinking the wrapping could start at maybe 6,275,410 metres/blocks, and then starts loading chunks from the opposite side of the map, counting back to the start. :3
hmm... except that a world is approx 64,000 x 64,000 nodes for x and z.

And y as well. ~64000*64000*64000.
Lush8
ExtraVars for Red Eclipse

<Anarchid> my turn was still the most awesome, yielding all the cripples, two captured paranormals, and death rate of about 30%
<ORCACommander> Anarchid: you need to work harder
<ORCACommander> I am hereby putting you under review until you can increase the casualty rate
 

User avatar
aFoxNamedMorris
Member
 
Posts: 14
Joined: Sat Aug 11, 2012 15:57

by aFoxNamedMorris » Thu Feb 20, 2014 03:25

thetoon wrote:"Bowed" horizon would only make sense on a spherical world. Not a donut-shaped one like what you suggested.


Um... I never said "donut"
shaped. I am referring to a spherical world.

@Enke: In regards to world size, it's whatever. All I care about is the principle.
Last edited by aFoxNamedMorris on Thu Feb 20, 2014 03:26, edited 1 time in total.
 

thetoon
Member
 
Posts: 106
Joined: Tue Dec 11, 2012 12:55

by thetoon » Thu Feb 20, 2014 08:16

aFoxNamedMorris wrote:
Um... I never said "donut"



And you didn't have to. What you describe (wrapping a plane around X, then Y ; or the other way around) doesn't make a sphere, it makes a donut. The technical word is "torus", though.

Image
Last edited by thetoon on Thu Feb 20, 2014 08:17, edited 1 time in total.
 

User avatar
Novacain
Member
 
Posts: 285
Joined: Sat Aug 31, 2013 01:03

by Novacain » Thu Feb 20, 2014 16:32

thetoon wrote:
aFoxNamedMorris wrote:
Um... I never said "donut"



And you didn't have to. What you describe (wrapping a plane around X, then Y ; or the other way around) doesn't make a sphere, it makes a donut. The technical word is "torus", though.

http://upload.wikimedia.org/wikipedia/commons/6/60/Torus_from_rectangle.gif


and the geometry is important why? it is a game. plus, judging from the diagram you showed, a bent horizon would still apply.

Enke wrote:And y as well. ~64000*64000*64000.


I thought there was only a limit on the lower y.
EXTERMINATE!!!
My Tronrealm modpack
My tronblocks mod
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Thu Feb 20, 2014 16:56

It is a game. It doesn't matter that it is a torus, it just gives the effect of being a spherical world.

For example, most games use ray casting instead of bullets for guns. It doesn't matter to the player, it still looks like a gun.

In this case, most players won't care, or notice.

Novacain wrote:
Enke wrote:And y as well. ~64000*64000*64000.


I thought there was only a limit on the lower y.


The game goes to 32,000 on each axis.
Last edited by rubenwardy on Thu Feb 20, 2014 16:57, edited 1 time in total.
 

User avatar
Novacain
Member
 
Posts: 285
Joined: Sat Aug 31, 2013 01:03

by Novacain » Thu Feb 20, 2014 22:24

rubenwardy wrote:The game goes to 32,000 on each axis.


I thought I had heard that the upper limit was 64,000. maybe I misread something :P never been to the end of any world.
EXTERMINATE!!!
My Tronrealm modpack
My tronblocks mod
 

User avatar
LionsDen
Member
 
Posts: 525
Joined: Thu Jun 06, 2013 03:19

by LionsDen » Fri Feb 21, 2014 00:41

It is around 64,000, each axis of x, y and z goes from around -32,000 to 32,000.
Last edited by LionsDen on Fri Feb 21, 2014 00:42, edited 1 time in total.
 

User avatar
aFoxNamedMorris
Member
 
Posts: 14
Joined: Sat Aug 11, 2012 15:57

by aFoxNamedMorris » Sun Feb 23, 2014 04:48

thetoon wrote:
aFoxNamedMorris wrote:
Um... I never said "donut"



And you didn't have to. What you describe (wrapping a plane around X, then Y ; or the other way around) doesn't make a sphere, it makes a donut. The technical word is "torus", though.

http://upload.wikimedia.org/wikipedia/commons/6/60/Torus_from_rectangle.gif


I don't mean a literal 3D wrap. In 2D, it'd be like Pac-Man warping from left-screen to right, top to bottom, vice-versa-etc.

The only spherical shape I want at all is the screen perspective distortion. Everything else would actually still be flat.
Last edited by aFoxNamedMorris on Sun Feb 23, 2014 04:49, edited 1 time in total.
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

by Krock » Sun Feb 23, 2014 07:53

LionsDen wrote:It is around 64,000, each axis of x, y and z goes from around -32,000 to 32,000.

Wrong.
Proof:
Image
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
LionsDen
Member
 
Posts: 525
Joined: Thu Jun 06, 2013 03:19

by LionsDen » Sun Feb 23, 2014 19:08

[spoiler=Previous Message]
Krock wrote:
LionsDen wrote:It is around 64,000, each axis of x, y and z goes from around -32,000 to 32,000.

Wrong.
Proof:
http://i.imgur.com/p6ywgIY.png
[/spoiler]

I don't see the proof you are looking for, the coordinates say 30927.2, -30912.5, -30912.5. All within the approximately 32000 limit in each direction. I don't remember the exact number but I did say it was around -32,000 to 32,000. I still think you are a little short of the limit but I don't remember the exact numbers. But I did go to the corner as well and they do seem to be the same numbers for me in a new game of minetest with no mods. So I was close but a lot of posts that I had been seeing lately have been throwing around the -32,000 to +32,000 for the limits so that is likely where it came from for me. So it seems to be almost 62,000 nodes in each direction. I will try to remember that.
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 7 guests

cron