Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TheWand3rer opened this issue Jan 19, 2025 · 1 comment
Open

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

TheWand3rer opened this issue Jan 19, 2025 · 1 comment

Comments

@TheWand3rer
Copy link

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

@stegu
Copy link
Owner

stegu commented Jan 19, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants