MixNormalMaps (OSL)

And another one!

A shader for mixing or blending together normal maps as outlined on this page:
http://blog.selfshadow.com/publications/blending-in-detail/
(Colin Barré-Brisebois, Stephen Hill)
This gives much better results than simply blending or overlaying two normal maps. It uses Reoriented Normal Mapping as described in the article as well as the idea from the second comment, by “jarkko” in that article, which I have named Displacement Vector Normal Blending here just to give it a name. The modes are fairly similar in results.

mixnormalmaps_rndr

The UI in VRay:
mixnormalmaps_ui

Page:
http://www.rensheeren.com/blog/osl-mixnormalmaps/
Download links:
http://www.rensheeren.com/osl/mixNormalMaps_tex_v003.osl
http://www.rensheeren.com/osl/rhfunctions.h
Right-click and save both in the same folder, both are needed for the shader to work. Overwrite rhfunctions.h if asked.

Enjoy! đŸ™‚

7 Comments for MixNormalMaps (OSL)

Leave a Reply

Your email address will not be published.