Jump to content

Help with noise generators


NotStirred

Recommended Posts

In net.minecraft.world.gen, is NoiseGeneratorOctaves, which has a function generateNoiseOctaves

Where can I find infomation on the return value of this and other noise generators? It returns an array of size 825 which is of some significance I assume.

Link to comment
Share on other sites

Sure!

 

I hadn't really looked into the generateNoiseOctaves function properly, it takes arguments:

(double[] noiseArray, int xOffset, int yOffset, int zOffset, int xSize, int ySize, int zSize, double xScale, double yScale, double zScale)

 

The return value shape is determined by the x-y-zSize parameters. These are the size of the region you want to sample. Changing the size will not change the scaling or the density of the noise, it sort of just expands the area generating new noise in those new parts.

The x-y-zScale parameters will of course change the scale.

The x-y-zOffset will move the noise around inside the area.

 

I then sampled points around this area with some interpolation to create the final world shape.

  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.