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

200
Vistas
Reduce Tiling within Perlin Noise Texture

With the code below I am generating a canvas full of noise. I would like this noise to be resolution agnostic. (appear visually the same at all resolutions) - The code below provides this, but the noise which is pulled from Rune Madsens's Noise seems to tile.

Can anyone suggest a way that I might make it less of an obvious repeating pattern, yet still keep it looking the same at all resolutions.

let grain_index = 0;
let grain_scale = 0.0025;

for (let ypos = 0; ypos < rd.canvas.height; ypos++) 
{
    for (let xpos = 0; xpos < rd.canvas.width; xpos++) 
    {
        let samplex = xpos  / (rd.canvas.height * grain_scale);
        let sampley = ypos  / (rd.canvas.width  * grain_scale);
        let samplez = 0;

        let lum = rd.noise.get(samplex, sampley, samplez) * 255;

        grain_imagedata[grain_index + 0] = lum;
        grain_imagedata[grain_index + 1] = lum;
        grain_imagedata[grain_index + 2] = lum;
        grain_imagedata[grain_index + 3] = 96;
        
        grain_index += 4;
    }
}

Output from the above code - Noise appears tiled

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