Current time: 11 May 2024, 04:15 PM



Minecraft - The Truth
Offline SmG Conan

SmG Booster
Booster
*******
12 Years of Service
Posts: 2,760
Threads: 89
Likes Received: 0 in 0 posts
Likes Given: 0
Joined: Jul 2011
Reputation: 37
Location: New York
Discord: Meatspin#9716
DrunkHand-held/Mobile GamerLegendarySapphire DonatorThanks From CloudChristmas 2018
GamerLeague of LegendsBronze MedalHalloween 2019Boost Gang
#11
Re: Minecraft - The Truth

well, minecraft saves what happened in that chunk so it can be loaded later. I mean, you're in
x 100 z 150, and you make a 10x10 hole. Later, you move to x-780 z-890, make your house there. After that, head back into the last coordinates x 100 z 150, and you will find the hole.

Minecraft needs to save every chunk. The reason why it doesn't not load "all" the chunk just one time, it's because it will take like 1 hour(probz more) to load them all.
[img=0x0]https://i.imgur.com/268RLZL.png[/img]
13 Oct 2012, 06:11 PM
Website Find Reply
Offline Ray88

Senior Member
Senior Member
******
12 Years of Service
Posts: 4,365
Threads: 237
Likes Received: 0 in 0 posts
Likes Given: 0
Joined: Sep 2011
Reputation: 29
GhostLegendary
#12
Re: Minecraft - The Truth

First of all, let me clarify some things about the “infinite” maps: They’re not infinite, but there’s no hard limit either. It’ll just get buggier and buggier the further out you are. Terrain is generated, saved and loaded, and (kind of) rendered in chunks of 16*16*128 blocks. These chunks have an offset value that is a 32 bit integer roughly in the range negative two billion to positive two billion. If you go outside that range (about 25% of the distance from where you are now to the sun), loading and saving chunks will start overwriting old chunks. At a 16/th of that distance, things that use integers for block positions, such as using items and pathfinding, will start overflowing and acting weird.

Those are the two “hard” limits.

Most other things, like the terrain generation seeds and entity locations use 64 bit doubles for locations, and they do much subtler things. For example, at extreme distances, the player may move slower than near the center of the world, due to rounding errors (the position has a huge mantissa, the movement delta has a tiny, so it gets cut off faster). The terrain generator can also start generating weird structures, such as huge blocks of solid material, but I haven’t seen this lately nor examined exactly what behavior causes it to happen. One major problem at long distances is that the physics starts bugging out, so the player can randomly fall into ground blocks or get stuck while walking along a wall.

Many of these problems can be solved by changing the math into a local model centered around the player so the numbers all have vaguely the same magnitude. For rendering, Minecraft already uses local coordinates within the block and offset the block position relative to the player to give the impression of the player moving. This is mostly due to OpengGL using 32 bit floats for positions, but also because the rounding errors are extremely visible when displayed on a screen.
[Image: 869aa92efa.jpg]
i7-5820k @ 4.7 ghz, Asus X99 sabertooth TUF, Kingston DDR4-3200 16 GB 
Corsair H110i GT AIO, Samsung 850 Evo 250 GB x 2, EVGA GTX 1080 Ti SC2 Hybrid
 Asus ROG Swift PG279Q 1440p/165hz, Corsair AX760w, Corsair Obsidian 750D
[Image: 2348111620.png]
13 Oct 2012, 07:15 PM
Find Reply
Offline Beasty

The Lord thy God
Senior Member
******
11 Years of Service
Posts: 7,654
Threads: 206
Likes Received: 14 in 11 posts
Likes Given: 0
Joined: Jun 2012
Reputation: 124
Location: Massachusetts
Discord: betsy#4548
WriterEmerald DonatorJokerOverwatch5KLegendary
Discord Warrior
#13
Re: Minecraft - The Truth

SmG Ray88 Wrote:First of all, let me clarify some things about the “infinite” maps: They’re not infinite, but there’s no hard limit either. It’ll just get buggier and buggier the further out you are. Terrain is generated, saved and loaded, and (kind of) rendered in chunks of 16*16*128 blocks. These chunks have an offset value that is a 32 bit integer roughly in the range negative two billion to positive two billion. If you go outside that range (about 25% of the distance from where you are now to the sun), loading and saving chunks will start overwriting old chunks. At a 16/th of that distance, things that use integers for block positions, such as using items and pathfinding, will start overflowing and acting weird.

Those are the two “hard” limits.

Most other things, like the terrain generation seeds and entity locations use 64 bit doubles for locations, and they do much subtler things. For example, at extreme distances, the player may move slower than near the center of the world, due to rounding errors (the position has a huge mantissa, the movement delta has a tiny, so it gets cut off faster). The terrain generator can also start generating weird structures, such as huge blocks of solid material, but I haven’t seen this lately nor examined exactly what behavior causes it to happen. One major problem at long distances is that the physics starts bugging out, so the player can randomly fall into ground blocks or get stuck while walking along a wall.

Many of these problems can be solved by changing the math into a local model centered around the player so the numbers all have vaguely the same magnitude. For rendering, Minecraft already uses local coordinates within the block and offset the block position relative to the player to give the impression of the player moving. This is mostly due to OpengGL using 32 bit floats for positions, but also because the rounding errors are extremely visible when displayed on a screen.

thank you ray ;)
13 Oct 2012, 07:28 PM
Find Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)
SmG Gaming, © 2010-2024
Theme By: «SmG» Cloud
Edited by: «SmG» Wires