Files
test2/source/blender/blenkernel
Brecht Van Lommel c8e0ca44a3 Improved bump mapping patch by M.G. Kishalmi (lmg) and M.S. Mikkelsen (sparky).
Many thanks to them!

For comparison, see here:
http://kishalmi.servus.at/3D/bumpcode/

Based on algorithm in: Mikkelsen M. S.: Simulation of Wrinkled Surfaces Revisited.
http://jbit.net/~sparky/sfgrad_bump/mm_sfgrad_bump.pdf

This fixes bugs:
#24591: Artefacts/strange normal mapping when anti-aliasing is on
#24735: Error at the Normal function.
#24962: Normals are not calculated correctly if anti-aliasing is off
#25103: Weird artefacts in Normal

This will break render compatibility a bit, but fixing this bugs would have also
done that, so in this case it should be acceptable.

Patch committed with these modifications:
* Bump method Old/3-Tap/5-Tap option in UI, 3-Tap is default
* Only compute normal perturbation vectors when needed
* Fix some middle of block variable definitions for MSVC
2011-01-07 14:42:01 +00:00
..
2010-02-12 13:34:04 +00:00
2010-02-12 13:34:04 +00:00
2010-02-12 13:34:04 +00:00
2010-02-12 13:34:04 +00:00
2010-02-12 13:34:04 +00:00
2010-10-30 17:16:37 +00:00
2010-02-12 13:34:04 +00:00
2010-02-12 13:34:04 +00:00
2010-02-12 13:34:04 +00:00
2010-08-10 20:33:15 +00:00
2010-12-04 13:00:28 +00:00
2010-12-19 20:12:12 +00:00
2010-12-04 13:00:28 +00:00
2010-04-01 06:26:41 +00:00
2010-12-04 13:00:28 +00:00
2010-12-04 13:00:28 +00:00
2010-08-04 12:18:07 +00:00
2010-02-12 13:34:04 +00:00
2010-12-16 23:24:25 +00:00
2010-02-12 13:34:04 +00:00
2010-06-14 23:56:12 +00:00
2010-02-12 13:34:04 +00:00
2010-02-12 13:34:04 +00:00
2010-02-12 13:34:04 +00:00
2010-08-10 21:22:26 +00:00
2010-02-12 13:34:04 +00:00