It’s kind of like a jigsaw puzzle – the chunks that make up the world are the individual puzzle pieces, and it’s only when they all come together that you begin to see a complete picture. Minecraft terrain generation really happens at two different levels – the individual “chunk”, and the wider world as a whole. Now that we have that background info out of the way, let’s get into the nitty-gritty details. These functions determine everything from the height of the terrain, to where different biomes are located, to the location of ore clusters and underground strongholds. I talked a lot about noise functions in my previous video, but the main idea is that these functions are random in the sense that you can’t predict what you are going to get from them, but they are “smooth” – the value you get depends on the values around it, rather than each one being independent. This seed is used to generate noise functions, which are used to control every aspect of the world. Different seeds will produce different worlds, and if you use the same seed you will always get the same result (at least, in the same version of Minecraft, as the details of terrain generation change from version to version). When you begin the game, a random 64 bit number called a Seed is generated (or chosen by the player), and this seed is used to generated the world. Minecraft terrain, like most 3D terrain in video games, is entirely based on noise. This is only possible because Minecraft doesn’t actually store the worlds themselves – it only stores the instructions to make them. This is a mind-boggling amount of content, and what is especially impressive is that it comes in a shockingly small package – while most modern games are tens or even hundreds of Gigabytes, Minecraft fits all of these worlds in only a few hundred Megabytes. That would already be pretty impressive if there was only a single Minecraft world, but there are actually around 2.8 Trillion different possible worlds that can be generated, and each one is unique. That’s a whole lot of terrain to generate! The first thing to know about Minecraft worlds is that they are huge – each world extends for 30 million blocks in every direction (except for height), and since each block represents one square meter this means that a single Minecraft world has a surface area about 8 times the size of the surface of the Earth. If you are watching this video you are probably already familiar with Minecraft worlds, but before we get into the details of how they are generated we should first cover some quick background. In that one I cover a lot the fundamentals of terrain generation by coding a procedurally generated 3D landscape from scratch, and this video will be building on a lot of the foundational concepts introduced in that video. Well to find out I mined through the Minecraft source code to dig up some answers, and crafted this video to share them with you.īefore we begin, if you haven’t seen my previous terrain generation video, it might be a good idea to watch that one before continuing with this one. Have you ever wondered how Minecraft worlds were generated? Probably, since you clicked on this video.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |