How to make a Perlin noise loop?
in
Programming Questions
•
1 year ago
Hello everyone,
what I'm trying to achieve is to make a noise sequnce whose start and begging match and by that I don't only mean that it's starting and ending point have to be the same, but also the noise flow has to be intact.
To achieve the picture above, I wrote this:
By the way, some 3D programs (like Cinema 4D) include noise as an effector in many areas (like displacement, texturing..) and there is always a loop option so it is clearly programmable, wouldn't you say?
what I'm trying to achieve is to make a noise sequnce whose start and begging match and by that I don't only mean that it's starting and ending point have to be the same, but also the noise flow has to be intact.
To achieve the picture above, I wrote this:
- void setup() {
- size(700, 700);
- background(255);
- stroke(0);
- smooth();
- noLoop();
- }
- float i;
- float pom;
- int num=100;
- void draw() {
- for (i=0; i<360; i=i+360/num) {
- translate(width/2, height/2);
- rotate(radians(i));
- pom = 90*noise(i*0.01);
- line(40 + pom, 0, 240, 0);
- resetMatrix();
- }
- }
By the way, some 3D programs (like Cinema 4D) include noise as an effector in many areas (like displacement, texturing..) and there is always a loop option so it is clearly programmable, wouldn't you say?
1