Demo:Lightmap Demo

From Theora Playback Library
Revision as of 16:30, 22 May 2012 by Kspes (talk | contribs) (Created page with 'right|thumb|300px|screenshot from the demo This demo program demonstrates how you can use video as an animated lightmap in a 3D scene! This demo progr…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
screenshot from the demo

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.

Dependencies

Controls

1, 2, 3 - toggle lights.

Forum

Forum discussion: link