***

Generating deep-ocean waves

These are just some screenshots I took of a program I wrote a while ago as an attempt to implement Jerry Tessendorf's work on simulating and rendering deep-ocean wave fields. It was also my first attempt at using vertex and pixel shaders, through the nVidia cg toolkit.

Screenshots

Improved normal calculations. Still looks terrible.

The first attempt at shading. Normal calculations are completely wrong.

The first successful shading with a pixel shader.

Showing surface normals

Wireframe view of the grid.

Another rendering, this time showing the effect of increasing the grid size to 512.

Added a simple sun reflection to the surface.

Slight improvement to the sun's reflection.

The simple console I wrote to make tinkering with Glut programs easier.

Added basic tiling of the grid to simulate a whole oceanscape.

Added a simple sky sphere, using a Terragen-rendered sky.

Slightly better colour on the ocean surface.

This pair of images was an abortive attempt to implement HDRI rendering. This image is the original...

...and this has the HDRI tweaks.