Problem - trying to illustrate Perlin noise with 2D points

Hi,

Purpose of the sketch:
Create an array of points whose y-positions are calculated from Perlin noise. As I increase the slider I should increase the number of points and Perlin noise domain i.e. larger values should have more undulations.

Here’s how I calculate the space between the points:

horizontal_space = numberPoints x pointWidth + ( numberPoints-1) x spacerWidth

spacerWidth = (horizontal_space - (numberPoints x pointWidth)) / (numberPoints-1)

Problem:

  1. As I increase the number of points the space between the final point and the edge of the window increases.
  2. Moving the slider creates unexpected results which are rectified when the slider is pulsed - I think this is caused by mismatched events between calculating the inter-point space length and building the list.

I’m spending too much time trying to fix it and could use your assistance in getting the desired result.

Thanks

2_PerlinNoise_Dots_slider.vuo (7.74 KB)

Without having much time to test I guess you could try the method in the joined composition ?

Hope this helps already.  

2_PerlinNoise_Dots_slider 1.1.vuo (6.43 KB)

5 Likes

Merci @Bodysoulspirit I appreciate your help. I leaned about the ‘spin off value’ node and the use of the ‘perlin1d’ function from your sketch. Thank you for your time! Kind regards, Marc,

1 Like