Nuke 3D Tutorial Stereo 2D Compositing
Learn NUKE 3D tutorial to work with 3D objects with the NUKE 3D stereo compositing technique named NUKE 3D.
Nuke is compatible with 3D environment to give the flexibility to the CG artists or post-production artists to work with 3D and 2D environment at the same time. The basic goal of this great compositing software is to fulfill the need of facing any kind of visual editing / compositing challenge.
Nuke’s 3D workspace gives a powerful compositing environment on your finger tips. This workspace combines the advantages of cameras, lighting, and a three-axis (x, y, and z) environment, with the speed of node-based compositing.
The question is how we can combine 3D scene with 2D environment?
The Answer is just pipe 2D images into the 3D space, setup a camera, animate your scene, and then render the results back to the 2D composite.
Nuke also includes several options for including 3D geometry into your scenes. You can create primitive shapes such as cards, cubes and spheres in it. You can also import models which are created in other 3D applications like Maya or 3ds Max. The supporting objects type / format for importing 3D geometry is *.OBJ format.
In this ‘Importing 3D objects in Nuke’ tutorial we will learn about the procedure of importing 3D objects in Nuke.
Now, go to the tutorial and this time Maya is the supporting software.
Work in Maya to create 3D object and export.
- At first go to the Desktop Window of your computer and start Autodesk Maya from the ‘start’ menu. In the ‘Perspective view’ draw a plane primitive using the menu Create > Polygon Primitives > Plane.
Or you can use Polygons tab from the Shelf.
- Then change the Translate X and Translate Z value to 0 in the Channel Box panel of the Maya window. In the INPUTS section of this panel click on the ‘polyPlane1’ and then change the Subdivisions Width and Subdivision Height value to 10.
- Then click on the Soft Modification Tool from the tool bar while the Plane Primitive is selected. A Soft Modification handle is created on the plane. Just drag the Y axis a little bit upward.
- Then select the ‘Select Tool’. Select the Plane Primitive another time. Then from the File menu click on the little box beside the ‘Export Selection’ option. ‘Export Selection Option’ dialog box will appear. In this dialog box select ‘OBJExport’ from the ‘File Type’ drop-down list. Click on the ‘Export Selection’ button. Now, export the object in the respective folder (by default in the data folder).
* You can use 3ds Max also to create 3D geometry.
Work in Nuke to Import the 3D object.
- Start Nuke and change the ‘View Selection’ to 3D from the drop-down list.
- Here, you can’t see the 3D grid yet because the default view of the 3D workspace is at the origin or centre of the space. Perhaps zooming-out will improve the view. Now, scroll the middle mouse button until you can see the grid. Alternatively you can press and drag the same button while holding down the Alt key. Note that, if you want to move the view from side to side or from top to bottom then click and drag the left mouse button while holding down the Alt key. Or if you want to rotate the view then click and drag the right mouse button while holding down the Alt key. Now, the view is like the following.
- Now, right-click on the Node Graph panel and choose 3D > Geometry > ReadGeo. A Read Geometry node will appear named ‘ReadGeo1’ in the node graph panel.
- Double click on the ‘ReadGeo1’ node if its properties box is not already open in the properties panel. In the ‘ReadGeo1’ properties box, click on the folder icon beside the ‘file’ selection box. Then browse the .OBJ file from the respective folder. The 3D geometry is now in the viewer panel. But it is with its default color and position. Then you have to implement texture on it.
- Here, you can implement any kind of texture. I have used a fractal noise texture on it. To implement texture click on the Read node from the Image node list in Toolbars.
Alternatively you can click on the blank space of the node graph panel and press ‘r’ from the keyboard. Then browse the image from its respective folder. A Read node named ‘Read1’ appears in the node graph. Connect the img connection of the ‘ReadGeo1’ to the ‘Read1’ node. Now, the 3D geometry is fully textured with the image as the following.
- Here, you can add a ‘Scene’ node in your node graph panel to setup a 3D scene then connect its input connection to the output of the ‘ReadGeo1’ node. Now, create a ‘ScanlineRender’ node for 2D conversion of the 3D scene. Then connect its ‘obj/scn’ connection to the ‘Scene1’ node. Now, connect the Viewer node to the ‘ScanlineRender1’ node. And you have done it.
The node graph view is as the following.
The node graph view is as the following.
I hope you enjoy this ‘Importing 3D Objects in Nuke’ tutorial. Happy compositing.