The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

OpenGL News Archives

Realistic natural scenes OpenGL API sample code

Aug 16, 2005

feature graphic

This OpenGL code sample combines several techinques to produce a realistic looking natural scene.  Notice the wind blowing through the grass and rippling across the lake as the clouds pass by overhead.  The gently swaying grass is rendered using Transparency Antialiasing to ensure it looks great even in the distance, and the horizon is tinted using an exponential fall off effect.  Several textures and a pixel shader are used to create the diverse terrain.  A whitepaper is included that explains all of these techniques in detail.