An open API service indexing awesome lists of open source software.

https://github.com/fares-soliman/ocean-simulator-ifft

Ocean simulator using IFFTs in OpenGL
https://github.com/fares-soliman/ocean-simulator-ifft

compute-shaders cplusplus opengl simulation

Last synced: 3 months ago
JSON representation

Ocean simulator using IFFTs in OpenGL

Awesome Lists containing this project

README

        

# Ocean Simulator

Ocean Simulator built in OpenGL

https://github.com/user-attachments/assets/47916642-305c-4356-b5a0-3efca02176fb

- Generates frequency spectrum using the JONSWAP spectrum equation via compute shaders
- Converts frequency into time domain by leveraging the Cooley–Tukey algorithm to perform the Inverse Fast Fourier Transform (IFFT)
- Includes sub surface scattering, specular and environment reflections, and foam accumulation
- Wind direction and speed, ocean depth and fetch, and numerous other parameters can be tuned for any desired effect

## Example 1 - Light Winds

https://github.com/user-attachments/assets/d581c09c-beba-4647-81d5-8f90385a751d

## Example 2 - Strong Winds

https://github.com/user-attachments/assets/d9d845ce-041d-40a9-b120-499ecf6802d6