Normal Mapping Experiment
// July 28th, 2009 // Experiments, Flash 3D, Source code & tutorials
In my quest to learn more about 3D I came across normal mapping. So I had to try that out. I saw Ralph Hauwert do this at FITC Amsterdam, so I knew it was possible.
As input for this test I “made” two images (The model came from here: blendermodels.org): One with the normal mapping and one with the colours. (normal mapping tutorial for blender)

Applying some Blendmodes and ColorMatrixFilters did the trick. Maybe to optimize the whole thing I should write a PixelBender filter for it, but I’m not sure its gone be faster? Anyway, here is the result:

» View normal mapping experiment
The whole point of this is to create a low polygon model, mapped with a high polygon normal map and so creating a fast rendering model with lot of shaded details. But that’s probably for next week
Source code: NormalMapTest_source











Very interesting, I am actually quite surprised you’ve achieved it just with ColorMatrix – well done! I’d be tempted to try it with PixelBender.
wicked stuff! I couldn’t imagine such results with Flash’s API.
Nicely done. Well, in theory a Pixel Blender filter, should run faster. Anyway I think it’s worth trying.
Keep the good work! Kudos!
Thanks for the comments!
I did it with PixelBender and its faster (and much easier)
[...] my previous normal mapping experiment I used just flat images, now it was time to do it in 3d, with Pixel [...]
[...] the AE SDK. There is also a useful subset of the kernel language that works in Flash, like these 3D Normal Mapping experiments. Give it a [...]
NOW i get it!! nice tutorial! really cool and clear without all the BS.
Thanks!!!
Hi !
Can u give source PixelBender filter for this ?
Hi Serg,
This is done without PixelBender.:)
If you want good shading filters, you should check out the one in Away3D and Stok3D
http://away3d.com/
http://www.derschmale.com/2009/06/08/introducing-stok3d-more-fp10-3dpixel-bender-shading/
Good luck!