Skip to main content
gamedev.net
🔒 Locked

Cyclic noise function

Started by Icebraker Jun 29, 2007 at 2:24 AM 3 replies 1.8k views
Original Post
Icebraker
Icebraker
Hello everyone, I want to create a cyclic noise function which repeats itself continuously, i.e. without a noticable jump. I have a random number generator and a filterfunction, but I don't know how I can apply the filter cyclic without any noticable gaps. Has anyone maybe a sample code which shows me how a cyclic noise without edges can be created?
Thr33d
Thr33d
Check out the noise section at wikipedia for some good info.

The most popular function for this type of thing is called "perlin noise"

Many good reads for perlin noise already exist, and are but a google search away.

-M
Icebraker
Icebraker
Hi,

I know Perlin noise. However, I want to filter my random values cyclic such that I only have to create a single tile which I can seamlessly place beside another tile without a noticable gap.

Maybe someone has done something like this already and can post some code or explanation how I get a continuous transition.

Thx
Sneftel
Sneftel
Perlin noise can be cyclic. Google for "tiling perlin noise" to find out how.
TheAdmiral
TheAdmiral
Perhaps a truncated Fourier series would suit your needs. What requirements do you have, and what resources are freely available? For maximal smoothness, something Fourier- or wavelet-based would do a good job, but for minimal evaluation cost, a Perlin approach would be better. There are many other, less widely documented options.

Admiral
Ring3 Circus - Diary of a programmer, journal of a hacker.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.