I am curious to try on how to implement the ocean by using OpenSceneGraph and the result is amazing. I was using osgOcean to impelment it and you can download here.
osgOcean is powerfull open source and you can use to release of the rendering code that was used to generate the above and below water effects.
osgOcean requires a Fast Fourier Transform library library and It can work well with either FFTW or FFTSS.
To implement ocean with OpenSceneGraph, you need some dependencies consist of
- OpenSceneGraph -- you can download here
- osgOcean --- you can download here
- FFTW --- you can download here
- FFTSS --- you can download here
osgOcean features:
- FFT ocean simulation model and rendering
- Foam caps
- Refraction/Reflection Passes
- God Rays
- Surface glare
- Underwater depth of field
- Underwater/above water fogging
- Simulated light absorption and scattering
- Silt effects
- Screen distortion effects
- Choice of FFT library linkage
Screenshot and Videos
added ship in the ocean