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

GetNormalizedData return value bigger than 1 #8

Open
MatrixBai opened this issue Jan 18, 2016 · 3 comments
Open

GetNormalizedData return value bigger than 1 #8

MatrixBai opened this issue Jan 18, 2016 · 3 comments

Comments

@MatrixBai
Copy link

 _mLandShapeModule = new Perlin
 {
     OctaveCount = 1,
     Frequency = 0.03f,
     Persistence = 0.7f
 };
 var landShapeNoise2D = new Noise2D(128, 128, _mLandShapeModule);
 landShapeNoise2D.GeneratePlanar(0, 128, 0, 128);
 var vs = landShapeNoise2D.GetNormalizedData();//Some value is bigger than 1
@ghost
Copy link

ghost commented Jun 7, 2017

I know it's like over a year later, but I found this answer. Easy to implement, I'm not too sure how right it is.

@MatrixBai
Copy link
Author

Thanks. I'll verify it when I have time.

@discordianfish
Copy link

Just ran into this too, looks like it's this line then?

return ((xvg * xvp) + (yvg * yvp) + (zvg * zvp)) * 2.12;

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