karansher / computer-graphics-shader-pipeline

Computer Graphics Assignment about the Shader Pipeline
0 stars 0 forks source link

Perlin noise is non-continous on certain axes? #15

Closed DerekCresswell closed 1 year ago

DerekCresswell commented 1 year ago

image

It appears that my perlin noise is not continuous on the y and z axes, but is on the x. I'm fairly sure I've followed the algorithm to a T. I've been playing around with different values, swapping orders, etc. But they only affect the noise shown, nothing moves or fixes these borders.

Any idea for what might be the cause of this?

JanardanS commented 1 year ago

are u using floor or int when you set the boxes? Because I think I've seen this error because rather than using the floor, int will not properly clamp it to negative integers, which might be the issue.

DerekCresswell commented 1 year ago

No, it turned out to be that I was interpolating in the wrong order. I had thought that order didn't matter. It's important that you only interpolate between one coordinate at a time.