/OceanFFT

OpenGL Demo: Simulating Ocean Waves with FFT

Primary LanguageC++MIT LicenseMIT

OceanFFT

Realistic ocean wave simulation, primarily based on J. Tessendorf's paper, using OpenGL compute shaders. Checkout the demo video here.

demo_image

In the quest for more realism, a different spectrum is used than the Phillips spectrum mentioned in the original paper. Stockham formulation of FFT is used to better map the problem to the GPU and avoid expensive bit-reversal operation required for the vanilla Cooley-Tukey algorithm.

Build Instructions

  1. Clone recursively with submodules via git clone --recurse-submodules git://github.com/achalpandeyy/OceanFFT.git
  2. Run CMake in the root directory

Dependencies

Uses my OpenGL framework Ogle as a submodule.

References