I translated the improved 3D perlin noise from this webside from c# to c++. But the resulting values are strange.
First lets look at the code:
<