achalpandeyy / OceanFFT

OpenGL Demo: Simulating Ocean Waves with FFT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

OpenGL Demo: Simulating Ocean Waves with FFT

License:MIT License


Languages

Language:C++ 88.9%Language:GLSL 9.2%Language:CMake 2.0%