Simulating Ocean Water: _http://www.finelightvisualtechnology.com/docs/coursenotes2004.pdf
I'm trying to simulate ocean and I need your help. Please be patient, I'm newbie to computer graphics but I know basics of physics and mathematics. As you can see I need to compute the formula:
http://i.imgur.com/qAdI7.jpg (sorry, can't post images...)
k is a vector, x is a coordinate (so I suggest that it could be equal to vector?).
It says that h(x,t) is height and also that to get the value it's needed to do FFT. I can't understand it. I know that using FFT I can get spectra of some process. But how to summ?
And another very important question:
where t is the time and k is a two-dimensional vector with components k = (kx, kz), kx = 2πn/Lx, kz = 2πm/Lz, and n and m are integers with bounds −r/2 ≤ n,m < r/2
so, does it mean that vector k is takes all values? so if resolution r=512 (for example) the k = { (0,0), (0,2pi/L), (0,4pi/L) .... } ?
[1]:

