I am currently writing some basic lightmap generation for terrain. It basicly works fine, but I want it to support objects with alpha transparency like trees, including that transparency.
That also already works fine, but now, everything without transparency doesn´t throw a shadow anymore.
The reason is bmap_lock, which returns 8888 for all textures. In this special case, most textures are saved in the mdl files and WED tells me that some are 24 and others are 32bit, which is exactly how it is meant to be.

And while I am at bmaps, a request: Is there anyway to allow at least pixel_for_bmap for dds files? Would be helpfull laugh.