OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Loading

OpenGL Headline News

Realistic natural effect rendering of water using the OpenGL API and Cg

Category: DevelopersComments

Sep 10, 2004

This article on rendering water using a planar reflection technique is the first in a series on realistic natural phenomena rendering for the intermediate to experienced graphics programmer. Source snippets and pseudo code are provided for many important functions, and the amount of math is kept to the relevant minimum. Concrete examples are written according to the OpenGL API.  Many of the effects presented are very shader heavy, mostly targeting current generation 3D chipsets. All shader code is written in the Cg language, but porting it to to the OpenGL Shading Language should be straightforward.

Read more OpenGL news