Wednesday, June 5, 2013

How to convert a standard image to a deep image using frames

In Nuke 7, you can use the DeepFromFrames node to create depth samples from the standard 2D image. To understand the concept, follow these steps:

Step - 1
Create a new script in Nuke and then set the format in the Project Settings panel.

Step - 2
Download an image of sky, refer Figure 1 and the load the sky image into the Nuke script.
Figure 1
Step - 3
Connect a Reformat node to the Read# node to reformat the sky image.

Step - 4
Connect a Noise node (from Filter menu) with the Reformat# node. Animate the z parameter and modify the other settings as required, in the Noise# node properties panel to apply fog over the sky image, refer Figure 2.
Step - 5
Connect a DeepFromFrames node with the Noise# node; the DeepFromFrames# node properties panel will be displayed in the Properties Bin. To generate the output, change the values of the parameters in the DeepFromFrame# node properties panel.

The samples parameter is used to specify the numbers of samples to be created per pixel. The fields corresponding to the frame range parameter are used to specify the frame range that will be used for sampling. By default, the premult check box is selected. As a result, the samples from the input image are premultiplied. If you clear this check box, the DeepFromFrames node considers that the input stream is already multiplied. The options in the split alpha mode drop-down are used to set how the alpha channel will split. This drop-down has two options: additive and multiplicative. By default, the multiplicative option is selected in this drop-down. As a result, when you flatten a deep image, the alpha values in the flattened output will match the original alpha. If you select additive from this drop-down, the original alpha values are not retained when image is flattened. The zmin parameter is used to assign depth to the first sample of each deep pixel output corresponding to the first frame in the range. The zmax parameter is used to assign depth to the last sample of each deep pixel output corresponding to the last frame in the range.

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...