- Home /
Minecraft Biomes: How to Make?
I've been making a minecraft-like game, but based on surface exploration, not mining. So no breaking blocks.
I have a 50x50 grid of cubes snapping to the player's position, and they are updated every frame to a height corresponding to their position using perlin noise.
My question is, how do I divide the land into "patches" or biomes based on their position? I just need a simple algorithm.
For a ton of information about all things $$anonymous$$inecraft in Unity, check out this thread:
Answer by MorphingDragon · Jul 04, 2013 at 10:40 AM
I assume you just want to divide land into regions and not a lot else?
You could generate a random Voroni Diagram and use its resulting cells to classify blocks. http://en.wikipedia.org/wiki/Voronoi_diagrams
You could make the classification as part of the generation system and use a 3D Langdon's ant. http://en.wikipedia.org/wiki/Langton%27s_ant
I guess I should have made this clearer. I have an infinite world, and I don't want to generate the sections randomly. I need it to be the same EVERY TI$$anonymous$$E I generate it, the same way that unity's PerlinNoise function generates the same thing with the same coordinates. I want a quick and efficient way to group regions, and the only constant variable when the land is regenerated is the land's position. So I have to use positions to achieve this.
I dunno if you can use the Random class in generating your stuff, but you can manually specify your seed. It'll then spit out the same values every time that seed is used.
Answer by Negagames · Aug 18, 2013 at 05:10 PM
By "patches" or biomes I assume you mean something like this: http://puu.sh/44OWx.jpg
In which case you need to create a minimum of 3 perlin functions to determine a biome. You can call them what you want but most people refer to Ground Height, Rainfall, and Temprature to determine the outcome for a biome. That's what I used in this example. I hope that help clarify this a little.
Your idea sound's very interesting but is there not a large ammount of "empty" or default space in between?
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Cube style terrain 1 Answer
World Seed 2 Answers
How can I smoothen my cubic mesh using marching cubes? 0 Answers
Texture mapping procedural mesh with texture atlas? (Minecraft style terrain gen) 1 Answer