2D Bumpmapping

BlitzMax Forums/BlitzMax Beginners Area/2D Bumpmapping

I've been interested in adding some bumpmapping to objects, and was wondering if anyone had some kind of example? I've looked around the net, and couldn't find many 'code' examples, just the actual programs.

I think it would, according to this page (http://www.neilwallis.com/java/bump1.htm), require a 'bumpmap', or some kind of reference to adjust pixels with, but I'm not sure how I would get the correct pixel lighting using this map.

Anyone have any examples? It would be much appreciated, and would be able to teach me a lot about directly changing pixel information...

Thank you!
Nullium

"Ups and Downs" of Bump Mapping with DirectX 6
2D Bump Mapping

You'll probably need to use shaders to do per-pixel bump mapping, or you can do it manually in a pixmap and then draw the pixmap but that's not so fast.

Awesome, thanks for the links tonyg, and for the hints ImaginaryHuman!