# Perlin noise detail

**URL:** https://discourse.processing.org/t/perlin-noise-detail/21223
**Category:** Coding Questions
**Created:** [May 23, 2020, 11:07pm UTC](https://discourse.processing.org/t/perlin-noise-detail/21223 "2020-05-23T23:07:23Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![BongoTurtle](https://avatars.discourse-cdn.com/v4/letter/b/df788c/32.png) [@BongoTurtle](https://discourse.processing.org/u/BongoTurtle)
#### Post date: [May 23, 2020, 11:07pm UTC](https://discourse.processing.org/t/perlin-noise-detail/21223/1 "2020-05-23T23:07:23Z")

</div>

Is there any way to make the noise() function more continuous? It seems it only goes down to steps of around 0.003 until it acts discontinuously. For example noise(0.000) = noise(0.002).

---

<div class="post-metadata">

### Author: ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)
#### Post date: [May 23, 2020, 11:16pm UTC](https://discourse.processing.org/t/perlin-noise-detail/21223/2 "2020-05-23T23:16:23Z")

</div>

Hi,

As you mentioned in your title, using the [`noiseDetail()`](https://processing.org/reference/noiseDetail_.html) function with a low value for the `lod` helps smoothing the perlin noise function.

---

<div class="post-metadata">

### Author: ![BongoTurtle](https://avatars.discourse-cdn.com/v4/letter/b/df788c/32.png) [@BongoTurtle](https://discourse.processing.org/u/BongoTurtle)
#### Post date: [May 23, 2020, 11:28pm UTC](https://discourse.processing.org/t/perlin-noise-detail/21223/3 "2020-05-23T23:28:43Z")

</div>

Is there any better way to do this? Since using noiseDetail() makes it more bumpy which is not what I’m looking for.

---

<div class="post-metadata">

### Author: ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)
#### Post date: [May 23, 2020, 11:38pm UTC](https://discourse.processing.org/t/perlin-noise-detail/21223/4 "2020-05-23T23:38:48Z")

</div>

Hi,

Could you please explain the usage for this kind of noise, what do you want to achieve? Do you have a simple piece of code to test it?

---

<div class="post-metadata">

### Author: ![BongoTurtle](https://avatars.discourse-cdn.com/v4/letter/b/df788c/32.png) [@BongoTurtle](https://discourse.processing.org/u/BongoTurtle)
#### Post date: [May 24, 2020, 12:04am UTC](https://discourse.processing.org/t/perlin-noise-detail/21223/5 "2020-05-24T00:04:29Z")

</div>

I’m trying to use it for the location of an object which will span across the length of the screen. However, it needs to be slow and at this scale it jumps several pixels at a time, which doesn’t look right. Making the noiseDetail higher gives the object smaller oscillations which I also don’t want.

```auto
void setup(){
  fullScreen();
  noiseDetail(1);
  noiseSeed(9);
  frameRate(60);
}

void draw(){
  clear();
  stroke(100);
  for(int i = 0; i < 192; i++){
    line(i * 10, 0, i * 10, 1080); 
  }
  ellipse(1920 * 2 * noise(frameCount*0.0002), 540, 8, 8);
}

```

---

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [May 24, 2020, 4:58am UTC](https://discourse.processing.org/t/perlin-noise-detail/21223/6 "2020-05-24T04:58:18Z")

</div>

> [@BongoTurtle](#):
>
> make the noise() function more continuous

one way is to use smoothing with `lerp()`
