You are here: User Guide > NukeX > Working with Lens Distortion > Applying Lens Distortion to a Card Node

Applying Lens Distortion to a Card Node

You can use the calculated lens distortion values to distort an image projected onto a card in 3D. Do the following:

1.   Open the Card Parameters folder on the LensDistortion tab.
2.   Hold down Ctrl/Cmd and drag the x, y and z values from the scale parameter’s values on to the corresponding fields on the Card tab in the Card node (3D > Geometry > Card) properties panel. This sets the right scale for the reproduced distortion on the Card.
3.   Hold down Ctrl/Cmd and drag the a, b, and c values onto the corresponding fields on the Lens Distortion tab in the Card node properties panel. These values are now used to undistort the image attached to the img input of the Card node.

NOTE:  The Card node's lens distortion parameters are estimated and won't necessarily match the LensDistortion results exactly, particularly if the calculated lens is asymmetric, in other words having different amounts of distortion on the x and y axes.