How to generate minecraft like levels

Hello. How can I generate minecraft-like levels? Where the world consists of cubes? Thanks. It would take too long to place each cube individually.

the levels themself ie the underlaying map is a thing of perlin noise.
the rest is just “interpret data and instantiate stuff”

Wtf is perlin noise?

this doesn’t answer my question…

You won’t get more answers with such reactions.

If that’s the quality of the answers then I don’t want any. How about if your going to post take some time to explain what you are saying. A so called ‘answer’ should not lead to more questions and frustration.

Well, if you don’t understand something about the answer you received from the fellow forum member you can always politely ask.

For example:
“Could you explain more about how Perlin noise could be used to generate maps?”

Respect the time he spent to write a response to you. This is not his job. You behave as if this forum owes you some “quality responses”.
What did you do to contribute to this community so far?

Your response is simply very rude by every rule of etiquette. Not only that, it also shows an ignorant and lazy approach to learning.
Instead of asking people what is perlin noise, you could just google for it. The information is out there, in much better form than anyone on this forum could give to you.

Why start a thread about something obvisously quite complex when you have absolutely no clue about what you’re getting into?

Now if I were to interpret that image to make a map I would for example write some code which took the color value of each pixel in the image and then add a number of cubes based on that value, thus I would get more cubes where it is lighter and less cubes where it is darker and hey presto I have a hilly terrain made of cubes.

Also, there’s been a gazillion threads about Minecraft here recently and if you bothered to look you’d find that Beezir posted an entire package for you here: http://forum.unity3d.com/threads/63149-After-playing-minecraft.../page2

Well, but if you wanna make something like Minecraft you should be capable of a LOT of frustration.

And why should anyone answer you if you’re 1: rude, and 2: totally unwilling to do research for your self.

perlin noise

EDIT
Ok, Twik was faster…

The main reason I answered like this is cause the question itself was as undefined as it just could be.

you want to know something that will take you weeks to implement in a post, which just won’t work out :slight_smile:

Thankyou GennadiyKorol for your polite and enlightening response. I suppose I was being a bit ignorant and rude to say that. But my day hasn’t exactly been a picnic.

Oh no. This is all too complex. I better stop doing it. Hell why even bother trying to learn?

If I had that attitude ^^^, how am I supposed to learn anything. May I ask you why you think I have no clue as to what I am getting myself into? I have been programming for about 1-2 years and even though it is not as long as some of you programming gurus I would say I have an ‘idea of what I am getting myself into’.

What makes you think I didn’t bother to look? I used the search function… Do you expect me to comb every single minecraft topic to find my answer?

because its rather obvious that you have no background in the field if perlin noise doesn’t give a bling to you.
you might have been doing programming but neither 3D nor game programming and thats a major difference as you will soon find out when your first code runs at 2 FPS and eats 2GB of RAM I fear and I can guarantee you, that will happen pretty surely.

Yes?
Thats the idea of searching, that you look if there is an answer to your question before asking it especially if there are only a dozen threads if not less. If you expect that people answer threads that were answered recently, then you are approaching some rather ugly future cause this new board has this nice little feature called ignore.

No I’ll admit that I have not been doing 3D programming for 1-2 years. Rather I started myself out in 2D and having been quite succesful in 2D I have just progressed to 3D. I have never heard of or used Perlin noise in my other projects. You are very ignorant to think that because I have not heard of Perlin noise I am no programmer.

I cannot simply waste hours looking for a piece of information.

You will realize that

  1. you wouldn’t have wasted time
  2. you will be spending dozens+ of hours on reading if you are newe to the stuff before you get anywhere realistically.

if thats a problem for you don’t approach a game thats just as complex as an average RPG, cause RPGs are the second most complex genre right after MMOs, do something simpler first then to learn the required materia and expand upon that

also nobody needs hours to check a dozen threads or so where you can fly over basically or if it does take that long for someone, he will definitely never finish any code

Sorry for offending you.

It was a number of things about your posts that set off my alarms:

Why even state this? Of course it’s stupid to create it manually and not a single programmer in the world would even consider it.

  1. Generating the world for a minecraft like game is probably the simplest thing about such a game. The questions I would expect regarding such a game include how not do drive even the most powerful computer to its knees with just a 10x10x10 world, how to add/remove cubes, how to save/load the world etc.

  2. When dreamora told you to use perlin noise a normal thing to do would be to google it, find any image example of it, i.e: or whatever and go from there. Instead you asked wtf it was which of course made no one here take you seriously.

But either way. Best of luck to you and what goes around comes around.

Thank you TwiiK for responding. I agree that I was out of line and should have googled it.

What do we look for in a noise function? Well, it’s essentially a random number generator.

function Noise1(integer x, integer y)
n = x + y * 57
n = (n<<13) ^ n;
return ( 1.0 - ( (n * (n * n * 15731 + 789221) + 1376312589) 7fffffff) / 1073741824.0);
end function

Here is all you need to ever know about perlin noise. Its fairly easy to understand even if you are not a math wiz…

http://freespace.virgin.net/hugo.elias/models/m_perlin.htm

Yes; that’s what the rest of us often have to do when researching a topic, and you can do it to.

I think once you gain more experience you’ll realize what a silly statement this is. Most people who are serious about programming have spent countless hours ‘looking for pieces of information’, whether that means researching a new topic, learning a new API, or whatever. In programming that kind of work isn’t easily avoided, so you better get used to it :wink:

There’s kind of a problem with storing large levels ).
I think there are two ways to approach the problem: either make small worlds (something like 256x256x256), or use the format which is used by Minecraft and which is opensource.

I think a How-To-Make-Minecraft-in-Unity-Tutorial would be downloaded a lot as the game is of interest and quite some people are more or less clueless about the way it works.