annoying question that's been pestering my mind. lowest prio possible.

idk where it'd fit and it's not really about how the mod works in a way that's helpful to anyone, so i figured i'd just leave it here until someone could answer in their spare time. i'm sorry in advance for this one. so, DH shows us stuff from further away in a smaller lv of detail, that i get. however, how does it know what's ahead? like, i have never visited a chunk that's far away. as a matter of fact, i dont even intend on going said way, so minecraft had never generated it and has no reason to generate it, because im not even threatening going there. then how did DH know what to generate there? how does it know where there's any given block 400 blocks away? im so sorry for asking this but this question has been on my mind repeating itself like a glitched disc, i need it gone from my mind. it doesnt know whats ahead, my chunk thing is set to 10, simulation to 12. how does it know?
6 Replies
hardester
hardester5mo ago
In the simplest form possibe: Distant Horizons ask Minecraft what's over there, Minecraft says there's this and that, Distant Horizons then says okay and build the LODs for that area. Whatever Distant Horizons does, it make use of Minecraft's functions (or methods if we're being technical) to do stuff in the game.
gab
gabOP5mo ago
ok, but again, let' say i have a render distance of 12. minecraft won't render past that, and as it is procedurally generated, it doesn't really know what it'll generate until whatever kickstarts the world gen says 'okay, generate this' happens, right? it wouldn't make sense for it to know what's 400 blocks ahead if i couldn't see it, would it? is it tied to how the worlds generate around seeds? i have no idea how seeds and anything works, but like, if i use the seed 5544, it'll always generate the same thing. is the seed a 'command' or instruction that tells the game what to put in any given place, and this is it how it knows? but even then, what??? why would it know what's like 20 chunks away if i didn't even move for it to have any info. wat is there for DH to know what's there if said thing hasn't even rendered? does it have info but just doesnt generate anything until asked to?
Yeshi
Yeshi5mo ago
DH calls worldgen directly for distant generation, it just doesn't save the chunks afterwards (only the LODs get saved) That's also what makes it slow at high distances, vanilla's worldgen is only optimized to be fast enough for tiny distances where it usually will be fast enough to keep up
hardester
hardester5mo ago
Also... Minecraft already knows what to generate at any given location via a value known as the world seed. Give it the same seed, coordinate and such, you will get the same terrain generation, LOD generation and what not.
Miki_P98
Miki_P985mo ago
Well not the same, the chunks will vary slightly depending on the order they generate
hardester
hardester5mo ago
Ah right, that one bug regarding inconsistencies based on order of generation.

Did you find this page helpful?