Building a DOF Camera

Report this File

Dof_cam_02

Views:

31,768

Updated:

Jun 20, 2007

Readership Level:

Intermediate

Tags:

Maya Versions:

7.x, 8.x

Platforms:

irix, linux, mac, windows

Owner:

Language:

English

Now we need to create the connections between the distance tool and the camera DOF settings.

From the outliner select the "distanceDimensionShape1" node and then CTRL (Cmd on Apple) click the "CameraShape1" node. Select Window>General Editors>Connection Editor to open the connection editor. You will see that the output pane has all the attributes from the distance tool and the input pane has all the attributes from the camera.

Scroll down in the outputs (left) pane until you find the "Distance" attribute. It should be right at the bottom. Click the attribute to select it. Now scroll down in the inputs (right) pane until you fine "Focal Distance". Be careful not to select "Focal Length". This is a completely different attribute. Again, simply select the attribute to create the connection.



You can now close the connection editor and we can now do some clean up.

Rename "locator1" to "cameraLocator". Rename "locator2" to "aimLocator". Now select both locators and the "distanceDimension1" node and place it all inside "camera_group1". Now select the "cameraLocator" and hit CTRL-H (Cmd-H on Apple) to hide it. Do the same for "aimLocator". If you really want to be sticky, you can also select all the attributes from the two locators and lock and hide them. You can also hide the distance tool, but I like to keep it visible.

Thats it. All you need to do now is turn DOF on. Select the "camera1Shape" node and open the attribute editor. Scroll down until you find the "Depth of Field" section and turn on the check box.

Now you have a camera that will update its own focal distance depending on where you place the "camera1_aim" locator.

Nice and simple, but rather effective.

Comments

Dashboard_avatar
Jun 01, 2010
Post id: 11363
Report this comment to moderators [SPAM]

Apparently you're using a different version of maya. I'm using 2010 and in outliner I don't seem to have: (distanceDimensionShape1) and (CameraShape1) so I don't know how to [Ctrl] select them together. So I get stock in this tutorials 2nd page.

DOF is a very important aspect of rendering.

Thanks anyway.

Dashboard_avatar
Aug 11, 2010
Post id: 12120
Report this comment to moderators [SPAM]

hello
when i scroll down on editor ; i can,t find distance or focus distance attribute; what should i do ?
thanks in advance

View yuval gofer's profile
Nov 16, 2011
Post id: 15498
Report this comment to moderators [SPAM]

filux and esi ravi hello
step 1. select "distance dimention" and than in the attribute editor prees "select" button.
go to conection editor and press "reload left".

step 2. select "camerashape1" and than in the attribute editor prees "select" button.
go to conection editor and press "reload right".
now you can find yours menu.

Write a Comment

You must be logged in and have verified your email address to leave a comment. Login or create an account