nannou-org / nannou

A Creative Coding Framework for Rust.
https://nannou.cc/
5.89k stars 301 forks source link

Newbie question: Perlin noise in nannou and Processing #839

Open franza opened 2 years ago

franza commented 2 years ago

Hello, I am a beginner in creative coding and doing some coding in Processing and Nannou as a hobby and when I tried some Processing examples in Nannou I saw difference in Perlin noise.

Maybe I am lacking some fundamental knowledge about this topic, so I will appreciate some beginner-level information about it.

So my question are:

  1. is Perlin noise implemented differently in Processing and Nannou?
  2. Why is there no single-argument function of Perlin noise in Nannou?
mvklingeren commented 1 year ago

Well, the Perlin noise function available in Nannou comes from the noise-rs: https://github.com/Razaekel/noise-rs/issues?q=perlin

as you can see in: https://github.com/nannou-org/nannou/blob/master/nannou/src/noise.rs

I found a issue explaining exactly what is going on here, with a given solution, that is to implement the BasicMulti noise module: https://github.com/Razaekel/noise-rs/issues/187