Skip to content

Possible irregularity around 0,0,0 for Noise3Dgrad #13

@TheWand3rer

Description

@TheWand3rer

First of all, many thanks for this noise library.
I am using your Noise3D gradient function (converted to HLSL though) for a terrain generation system. I have noticed that whenever the function is called with input (0,0,0) it glitches. See here:

Image

As you can see one vertex is completely wrong. If I add a bias of 0.1 on any of the coordinates it goes away (i.e. passing 0, 0.1, 0). I am using the result of the noise function as the height of the vertex.

Image

As far as I can tell the HLSL version of the function is identical, save obviously for the vecn / floatn changes. I realise debugging this must be super hard, but maybe it does this on your end too.

Here's just one octave of the noise, with the other terrain chunks removed:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions