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
- Host: GitHub
- URL: https://github.com/fares-soliman/ocean-simulator-ifft
- Owner: fares-soliman
- License: mit
- Created: 2025-03-09T09:11:16.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2025-03-09T14:21:59.000Z (3 months ago)
- Last Synced: 2025-03-09T15:25:14.515Z (3 months ago)
- Topics: compute-shaders, cplusplus, opengl, simulation
- Language: C++
- Homepage:
- Size: 13.4 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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