3D FFT Ocean Wave using OF

#1

Hi, All.

I have met this source : 3D FFT Ocean using OpenGL & C++

How can I convert to this code to OF using ofMesh ?

Thanks in advance .
Best,
@bemoregt.

3 Likes
#2

Wow, that’s really nice! (Both the ocean view, and the code.)

The code is so clearly written and commented that it should be pretty easy to adapt to OF.

On a quick look, it seems like Window.cpp would be a good reference for figuring out how to set an ofMesh to the ocean height map, as that is where there seems to be code for creating the mesh to be usable by OpenGL.

1 Like
#3

Hi, @Drazinut

Ocean’s wave simulation is possible only FFT(fast fourier tramsform).

But, I dont know 3d graphics of OF. --;

@bemore.