aldernero/sketchy

Unexpected result in 100PRINT sample

Lattay opened this issue · 2 comments

Lattay commented

Hi,

On my machine (arch linux, go version go1.21.6 linux/amd64) the 100PRINT produce only straight lines.
Investigating the value of the noise variable in the init function, every value is between 0.76 and 0.81, producing only one type of tiles.

Tweaking the persistence parameter I get the same visual result with values of noise above 1.

It seems that Noise2D doesn't produce valid values.

bug

Thanks for noticing this. I was experimenting with the OpenSimplex generator that sketchy uses, and forgot to undo some of the changes regarding signed vs unsigned noise once I reverted the experiments. I fixed the bug and updated sketchy. I also updated the slider defaults. If you update sketchy it should work now, let me know if it doesn't. Here is an example of what it looks like for me after the the update:
image

Lattay commented

Cool, problem solved indeed! Thanks!