This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/release/scripts/ui
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-09-07 15:17:42 +00:00
2011-01-01 07:20:34 +00:00
2011-01-01 07:20:34 +00:00
2011-01-06 09:55:20 +00:00
2011-01-01 07:20:34 +00:00
2010-09-07 15:17:42 +00:00
2011-01-01 07:20:34 +00:00
2011-01-07 11:24:34 +00:00
2011-01-01 07:20:34 +00:00
2011-01-01 07:20:34 +00:00
2011-01-01 07:20:34 +00:00
2011-01-01 07:20:34 +00:00
2011-01-01 07:20:34 +00:00
2011-01-01 07:20:34 +00:00
2010-09-07 15:17:42 +00:00
2010-09-07 15:17:42 +00:00
2011-01-01 07:20:34 +00:00