Jump to content
  • Advertisement
Sign in to follow this  
Pikkolini

Some questions about FFT Wave Simulation

This topic is 838 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello everyone,

 

I'm currently trying to implement a FFT Wave Simulation as proposed in Jerry Tessendorf's paper <Simulating Ocean Waves>. I read a lot papers, articles, tutorials, etc. but never understood the whole process. So I just started working on my own implementation, in the hope to achieve a better understanding while doing this. Well, it didn't work out that much unsure.png

I hope you can help me with a few questions. For reasons of simplicity I will always refer to this blog post in my questions.

1. The equation for k is

3593508.jpg?263

What is the big L in this equation? The article just says "size of the height field" but what exactly does this mean?

 

2. The sigma sign in this equation is where i use my FFT, right?

3729634.jpg?314

 

3. h_tilde and exp(ikx) are both complex numbers. My height should obviously be a real number? Do I just use the real part of this equation in the end or is there anything else I don't understand?

 

This three questions should be enough. I promise I have more when these are answered smile.png

Thank you in advance!

Share this post


Link to post
Share on other sites
Advertisement

1.  L = length  . Name comes from 1d application of FFT.
2. that whole equation is FT  (without the fast) it is equivalent to FFT. Not only the SigmaSign
3. Use just real part, or impose some symmetry before FT to automatically get zero in imaginary part

Share this post


Link to post
Share on other sites

Thanks for the answer. It really cleared up a few things for me and I was able to continue on this project.

I have now finished the creation of the height field and surprisingly it really looks like ocean waves and the waves moves in the right direction :D

But I still got one problem which I couldn't solve after a few hours of debugging and I still don't know where to search for the origin of this problem.

The amplitudes of my waves are way to high. If I use the proposed values of L=2000 and V=600 my amplitudes go up to ~10000. If I change the A in the following equation to 0.0001 my amplitudes still go up to ~1000.

5227252.jpg?391

I really don't know why my waves are so huge but does anyone has an idea where to search for the error or what problem could cause the error?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!