Sign in to follow this  

How to Use Perlin Simplex Noise?

This topic is 1726 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am incredibly new to noise, so please bear with me here.  So I used the code from http://cabbynode.net/2012/06/10/perlin-simplex-noise-for-c-and-xna/ to create my noise.  I simply filled a jagged float array with these values and used a white 16x16 texture colored on draw based on value to represent the result visually.  Here is that result:

 

noise2.png

 

So, it appears to be interpolating nicely enough.  But the question is how do I use this?  I can think of a couple of possibilities:

 

Each value is a block, and the material (i.e. - stone, dirt, etc.) of the block is based on that value.

 

OR

 

Each value is a chunk of the map, and the material (i.e. - stone, dirt, etc.) that the chunk is made of.

 

OR

 

I have completely no idea what I am doing and need the answer given to me lol.

 

On a side note, I changed the way I was looking at it so that if the value was >= 0.5 it was land, if not open space.  The result is what appears to be a pretty natural looking cave network.  So I guess I could use it that way as well, to tell me if there are caves.

Edited by BlueSin

Share this post


Link to post
Share on other sites

You can use Perlin noise for literally EVERYTHING. There is no natural phenomena that you can simulate that won't benefit from this kind of noise input. Terrain maps, mold growth, pimple production, creature mannerisms, river networks, galaxy formation, you name it. Perlin noise simulates nature on many, many levels.

 

EDIT: I forgot to mention social aggression in bonobos, and many other things.

Edited by cephalo

Share this post


Link to post
Share on other sites
Here are a couple journal posts I did some time back, when I built the initial prototype that evolved into my current game. They might give you some ideas, maybe:

http://www.gamedev.net/blog/33/entry-2249260-procedural-islands-redux/
http://www.gamedev.net/blog/33/entry-2249282-hooking-into-the-tree-to-build-a-map/
http://www.gamedev.net/blog/33/entry-2227887-more-on-minecraft-type-world-gen/
http://www.gamedev.net/blog/33/entry-2249106-more-procedural-voxel-world-generation/

As cephalo indicated, they are pretty useful for a lot of things.

Share this post


Link to post
Share on other sites

This topic is 1726 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this