RotateNormals

Rotate Normal data

Updated: 21 June 2010

Author: hakan.blomdahl

Compatible Nuke versions: 4.8 or later

Compatibility: Linux, Mac, Windows

This will take ( for instance ) the Surface Normals coming from the Scanline Render Node and rotate them.

I made this when I wanted to convert the surface normals from World Space to Camera Space ( for some reason I forgot... ). So I could basically link the rotation knobs to this gizmo and simply press "revert rotation order" and invert the rotation matrixes. This would not  properly work with a parented camera, but I guess that with nuke 6.1 having world matrixes accessible you could make that work as well ( link the rotation part of the matrix somehow...)

The math came from this page:

http://en.wikipedia.org/wiki/Rotation_matrix

...and god knows how I got the time and patience to actually make it work. :-)

 

It could be some use for post grading of 3d-renders which some people have done ( using one of the channels as a mask for grading ).

Sign in or register to download or rate.