Brazil r/s Tutorials


Depth of Field - DOF

Depth Of Field (DOF) determines how much of the image is in focus, based on its distance from the camera. The Brazil camera contains a set of controls and aids for setting up the scene.

1. Getting Started.

Max 3.x users:
Open the file dof_1_start_max3.max. Click here to download this file

Max 4.x and 5.x users:
Open the file dof_1_start_max4.max. Click here to download this file

Click on the render button to render the scene. You can see that the scene contains a bunch of teapots. You will control the DOF to focus on the yellow teapot.

2. Setting up the camera.

Select the camera and click modify to display the modify panel.

The parameters for the camera will appear in the rollouts. Tick On in the Depth of Field group. This turns on the camera controls for DOF.

Turn ON the Show checkbox in the Depth of Field section too. You should notice that a transparent blue plane has appeared in the perspective window. This plane represents where the camera is focused.



Try changing the Focus Distance spinner (seen above). The Focus plane will move in the viewport and you will see that you can easily tell in the viewport which part of the scene will be in focus. Set  the Focus distance spinner so that yellow teapot is intersected by the DOF plane.







In the Camera rollout, Change the F-Stop to 7.

The F-Stop, or aperture, determines the amount of light that enters a camera. Lower F-Stops mean that the lens aperture is larger, allowing more light to enter through a larger hole. This will give an image less depth of field (depth of focus), resulting in more of the image being out of focus. Higher F-Stops have the opposite effect, causing the incoming light rays to become more focused, resulting in a sharper image."

Simply put, the F-Stop controls the amount of loss of focus in the image.



3. Setting up the Render options.

Click on the Render Scene button to bring up the Render Scene window.

In the Image Sampling rollout, Tick the On box in the Depth of Field Sampling group. This enables DOF in the Renderer.

You can ignore this f-stop control, the setting in the camera over-rides it.

 



Render the scene.

You should see that the objects behind and in front of the Yellow teapot are slightly out of focus.

 

Change the F-Stop to 6 in the Camera modify panel and re-render the scene.

You will see that there is much more loss of focus, but there is some ugly noise in the blurred areas.





In the Image Sampling rollout of the Render window, change the Initial Rate to 6 and the Adapt Levels to 4.

These settings control how many samples are used in the DOF.



Re-render the scene.

The DOF should be more smooth now.





 



All trademarks and copyrights on this page are owned by their respective owners.
Everything else: ©2002  SplutterFish, LLC. All Rights Reserved. Privacy