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

Simplex3 value range #2

Open
arcanis opened this issue Apr 2, 2013 · 1 comment
Open

Simplex3 value range #2

arcanis opened this issue Apr 2, 2013 · 1 comment

Comments

@arcanis
Copy link

arcanis commented Apr 2, 2013

Hi,

What is the value range for Simplex3 ? According to the example source code (Math.abs(simplex(...))*256) it seems to be [-1;1], but I haven't been able to get a value greater than 0.5, and I never seen white color on the demo page.

Thanks,

@josephg
Copy link
Owner

josephg commented Apr 2, 2013

I'm not sure. I figured it out at one point, but I've forgotten. It would be good to normalize simple2 and simplex3 to the [-1,1] range.

This repository is a GPU version of the same code:
BrianSharpe/GPU-Noise-Lib@e4fa623
... and he's normalized the simplex functions, but I'm not sure how those normalization factors work. The math is explained briefly here:
http://briansharpe.wordpress.com/2012/01/13/simplex-noise/#comment-36

It'd be good to dig into that and make noisejs normalized too.

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