Automatic determination of LightMaps...

Hi,

I was wondering if it is possible and how to do this…

Suppose a scene with some static geometry (e.g. walls) and static lights. Since everything here is static, the lighting effect of over the walls will be the same for every portion of it’s texture (right?).
So, would it be possible to setup the scene, render the lighting shades to texture and in the next frames disable lighting and use the generated lightmaps to blend with to walls’ texture?

This is how games have been using light maps since the original Quake. The calculation of the light maps is generally an offline process involving radiosity calculations. Search for “radiant”. Hardware can be used to compute illumination at a point on a surface but it is a moderately complex procedure.