Question

I recently started out with the diamond square algorithm and while I have watched many examples, I still have a problem with the noise looking "squary" and not as smooth as I want them to be. (I compare them to noise produced by the perlin noise).

Here is the current code with grayscaled image: Example in my website

This is the result I am looking for:

I have to say that I understand the procedure, but in my example, the code is from a tutorial I found on the internet.

Does you know what is wrong?

Was it helpful?

Solution

If you don't want square patterns, then don't use diamond-square algorithm. The square patterns is a "flaw" on the algorithm, and you likely have done nothing wrong. If you want a smooth pattern, then generate your you should use other generators like Perlin.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top