News for hackers. Stuff that matters.
Re:Fractional Brownian Motion for Terrain Generation by notfashion on Monday October 07, 2019 @12:11PM (#21182540)
If I understand this correctly, it's not even a matter of using a filter, just a case of summing some random sinusoids with an appropriate weighting for each according to the frequency. You can do this by starting off with noise in the frequency domain and shaping it before doing an iFFT.
Re:Fractional Brownian Motion for Terrain Generation by enriquto on Tuesday October 08, 2019 @02:55AM (#21189489)
Yes, I meant exactly that. You build a spectrum by setting the amplitudes to the desired decay law, and the phases to random. It is an octave/matlab one-liner.