Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

118
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda