Deep water ocean surface modelling with ship simulation

The scope of this work is to implement a realistic looking ocean simulator with a ship floating on the surface. Foam, and ship wake is included to add to the realism. The application is designed to run on a normally equipped laptop with an ATI graphics card and Windows as the operation system. All calculations except the wake generation are performed in real time. The program, named ’OceanSimulator’, is written in C++ with OpenGL for visualization. The waves are represented with the JONSWAP spectrum and calculated using fast fourier transformation algorithm. The ship movement is calculated by use of transfer functions given in a RAO text file. The graphics card is programmed directly by use of shaders to get high flexibility regarding visual effects. Two different lighting approaches of the ocean are explored, cube mapping, and parameterization.