This demo program demonstrates how you can use video as an animated lightmap in a 3D scene! This demo program was a part of my college thesis at FER in Zagreb, Croatia.
The idea is that you can generate light animation and render the lighting frames to a texture file which you then convert to a video file and use as a texture.
This demo shows 3 toggle-able lights in a 3D room, whose lightmap pixels are decoded from this library and combined in a single texture which is mapped onto the 3D model using the multi-texturing feature of OpenGL. The 2 texture stages are multiplied together to create the light effect. For better demonstration purposes, light 2 & 3 have been colored.
1, 2, 3 - toggle lights.
Forum discussion: link