Archived

This topic is now archived and is closed to further replies.

DekuTree64

Seamless noise

Recommended Posts

Is it possible to make perlin noise repeat after a specified time, for a nice tiling texture? I read on Ken Perlin''s page that you can use 1-z*noise(x,y,z)+z*noise(x,y,z-1) to make a repeating animation, which does exactly what I want, but only in one dimension at a time. Is there any simple extension to that for more than one dimension, or any other way to repeat in X and Y at the same time?

Share this post


Link to post
Share on other sites
Well Im haven''t tried this But I am thinking you can by simply nesting it:

ZTiledNoise(x,y,z)=1-z*noise(x,y,z)+z*noise(x,y,z-1)
then
YZTiledNoise(x,y,z)=1-y*ZTiledNoise(x,y,z)+y*ZTiledNoise(x,y-1,z)

you can extend that to any number of dimentions

Share this post


Link to post
Share on other sites
Thanks for that page, but actually I came up with the exact same formula earlier today. Now it''s just a matter of tweaking things until I get some good clouds...
And of course speeding it up a lot, since my current version is quite slow, and I was hoping to be able to animate it. I could live with precalculating it if I have to though (it''s for a demo on GBA, so I don''t have a lot of processing power for it)

Share this post


Link to post
Share on other sites