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

199
Views
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
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!