Abstract:Calculate the height field combining with the cosine waves that have different frequency, directional angles and amplitudes which can be generated with P-M frequency spectrum and SWOP directional spectrum function of ocean waves. The model is created based on OpenGL vertex array and LOD technique, the ocean surface is rendered by lighting and texture mapping, wave simulation in deep ocean area based on C# with OpenGL.