With a lot of help from my friend Zerd, I finally managed to get bump mapping to work. I’ve been pondering on how bump mapping can be used with 2D graphics – and after playing around a bit, I don’t see any reason not to use this.
A built version for Windows can be downloaded here: http://dl.dropbox.com/u/1287557/bumptest.zip … The source code is included, and it builds fine on Linux. It also works just fine in wine if you don’t want to bother building it. The code is fairly minimal.
A couple of screenshots with light illumination from different sides; (NOTE: This looks better in motion)