I am attempting to create a 2d grid of more useful noise than static. I have it close to how I want it, but it is not quite right.
So far, the noise generator chooses a number of random points and assigns it a random value between 0-1,and for each other point finds the three closest chosen points and attempts to give it an average value, weighted by distance to the point.
I feel the issue is here, as google is quite barren of answers for how to do this right.
When you get a value from the noise, it should return a double between 0-1, but I am regularly getting values greater than 1.
Right now, I am displaying everything with Java Swing to help visualize results. Just looking at it, there seems to be sharp changes in colors at points and I just cant figure out what I am doing wrong.