Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

114
Views
How do I rotate a plane based on noise?
let inc = 15;
let scaleN = 0.005;
let sizeB = 250;
let range =500;

function setup() {
  createCanvas(windowWidth, windowHeight, WEBGL);
}

function draw() {
  background(255);
  orbitControl();
  colorMode(HSB);
  angleMode(DEGREES)
  noStroke();
  rotateX(60);
  translate(-sizeB / 2, -inc, -sizeB / 2);
  for (let x = inc; x < sizeB; x += inc) {
    for (let y = inc; y < sizeB; y += inc) {
      let noiseV = noise(x * scaleN, y * scaleN);
      let rotateR = 23.5/noiseV

      fill(0, 0, noiseV*100);
      push();
      translate(x, y, noiseV * range);
      rotateY(-rotateR)
      plane(inc);
      pop();
            
    }
  }
}

Here's my code. It displaces a plane based on noise, but i've yet to figure out how to rotate them so they sync properly, instead of there being visible holes between them. The ones with noise levels of 1 or 0 will be rotated none, as they are flat. The ones in between have to be rotate somehow to link with each other without seams.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!