{"id":159,"date":"2012-05-07T12:04:15","date_gmt":"2012-05-07T12:04:15","guid":{"rendered":"http:\/\/blog.daft-ideas.co.uk\/?p=159"},"modified":"2013-08-01T13:45:03","modified_gmt":"2013-08-01T13:45:03","slug":"perlin-noise","status":"publish","type":"post","link":"https:\/\/blog.daft-ideas.co.uk\/2012\/05\/07\/perlin-noise\/","title":{"rendered":"Perlin Noise"},"content":{"rendered":"
Shamus Young was messing around with Perlin Noise, which turned out to be normal noise. I dug around in an old VM to find this image:<\/p>\n
Blue and white marble effect. Sort of.<\/p><\/div>\n
The massive sphere in the background is procedurally textured with the Perlin Noise function, that is described in this paper:\u00a0http:\/\/mrl.nyu.edu\/~perlin\/paper445.pdf<\/a><\/p>\n It’s not the best example I ever produced, but it’s the only build of my old raytracer that I could find. Shame on me for poor version control.<\/p>\n The source code for it, in Java, is on Ken Perlin’s website here:\u00a0http:\/\/mrl.nyu.edu\/~perlin\/noise\/<\/a><\/p>\n To be honest, it’s a very long time since I’ve looked at that stage of my ray tracer. I ditched the procedural generation of textures because they took way too long, but the basic idea is that you use the “noise” function, which takes X Y Z coords as arguements, and it returns the “next” noise point from the initial permutation list. Or something. These days I comment my own code a lot better,\u00a0precisely\u00a0because I can’t remember how this stuff works anymore.<\/p>\n When you’ve got the returned noise amount, you can do cool shit with it. I found a couple of functions around that could turn it into a marble style texture, but you can do a lot more with it.<\/p>\n","protected":false},"excerpt":{"rendered":" Shamus Young was messing around with Perlin Noise, which turned out to be normal noise. I dug around in an old VM to find this image: The massive sphere in the background is procedurally textured with the Perlin Noise function, that is described in this paper:\u00a0http:\/\/mrl.nyu.edu\/~perlin\/paper445.pdf It’s not the best… Continue reading