Animated flag of the Fresh Water Pirates |
OpenGL and the GL Shading Language can be used to create realistic graphic animations. In this example I've used a quad mesh and bound a 2 dimensional texture (image) to it. (© Fresh Water Pirates ). A time-dependent sinus function modifies and updates the mesh coordinates every 0.05 seconds. The vertex normals are calculated for every update. Lighting effects are computed on the GPU
A video of the flag animation can be found at:
Like the pirates on facebook: