Hi there, first of all, I'm quite new to rust, and am not sure if this is even the right forum to post this on, so sincere apologies in advance.
I created a perlin noise algorithm, and it is producing a few artifacts along the x and y axis as can be noted in the image below.
I believe that this comes from my "sampling" algorithm. It works like so:
I take the four corners of the square/rectangle I'm processing and interpolate along the y axis to get a start and an end and then interpolate along the x axis.
Also, this apparently doesn't work for non square dimensions (change the
IMG_SIZE_X
and IMG_SIZE_Y
constants in main.rs to be different), but I'll tackle one problem at a time.Does anyone have any idea as to why this doesn't work? thanks!
Ps. If you want to quickly test this, use the gitpod button at the root of my repo and run cargo run in the terminal that appears in the web.