I\'m trying to implement some source code I found online to generate a height map using Perlin Noise. I\'ve successfully managed to get the height map using the noise3 funct
Here's an example of surface generation I wrote a while ago in JavaScript using 3D Perlin Noise. Since in a surface voxels are either present or not I simply apply a threshold after calculating the Perlin Noise cube. In the example the noise probability is equal for all dimensions. You can get a more realistic landscape when you increase the random values towards the ground and reduce it towards the sky.
http://kirox.de/test/Surface.html
WebGL must be enabled. At the time of writing this I recommend to use Chrome for best performance.