2D Bumpmapping

BlitzMax Forums/BlitzMax Beginners Area/2D Bumpmapping

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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