Nuke Knowledge Base

Nuke stuff I need the interwebs to remember for me.

Tips & Tricks

Rotate World Normals to Camera

You can create cam normals from a world normals pass, if you have the camera. Create a ColorMatrix node and then Ctrl-Drag the first three columns of the camera’s World Matrix section into the three rows of the ColorMatrix (so, what’s top-to-bottom in the World Matrix of the cam should end up left-to-right in the ColorMatrix). That should do the trick.

(This assumes a left-handed coordinate system with green as the y-axis pointing up.)

, , , ,

Taking the edge off the Sharpen node

It is a good idea to sharpen only the luminance of the image and leave the chrominance untouched. To this effect, convert the colour space to YPrPb before sharpening. This will avoid outlines along saturated areas.

Welcome

Howdy, stranger.
This is a collection of tips and tricks, code snippets and home-brewed gizmos, set up as a personal go-to library among friends. Feel free to browse and use whatever you find here. If you know something that’s missing in this database and would like to contribute, you can simply shoot me an e-mail to julian@yellow-ant.net. I’ll make sure to give you proper credit.
Resident contributors: [php snippet=1]

Colour blend modes in Photoshop

Comprehensive info:

http://stackoverflow.com/questions/5919663/how-does-photoshop-blend-two-images-together

Sample image from within the expression node

To sample the incoming colour values, in an expression node type the following for the required channels:

ZBlur – Focal Plane Setup

In the zBlur node’s focus plane setup, blue is in front of the focus plane, red is behind it.