I was looking into the Diamond-square algorithm for some idea, but I ended up writing a make-shift-like code.
They are not perfect, but all I wanted was a smooth texture. So, I have:
All three codes are basically the same, only difference is in the color scales.
Originally, I was hoping there was a very simple library utilizing the Diamond-square algorithm, you input the parameters and get the generated data. Unfortunately, didn’t really see any. So, I just randomly added something and the result looked quite okay to me.
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.