Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
3ds Max 6 Bible (2004).pdf
Скачиваний:
55
Добавлен:
17.08.2013
Размер:
50.02 Mб
Скачать

676 Part V Cameras

Summary

The Camera Match and Camera Tracker utilities enable you to match your scene’s position and motion to a background image or animation. These features can be very helpful in creating realistic images and animations.

In this chapter, you’ve

Learned to use the Camera Match utility to match a camera to a background image

Controlled a camera’s position using the Camera Tracker utility

The next chapter covers the special effects that are possible with Multi-Pass cameras including Depth of Field and Motion Blur.

 

 

 

Multi-Pass Camera

Effects

In the Camera Parameters rollout is a section for enabling Multi-Pass Camera Effects. These effects include Motion Blur and Depth of

Field. Essentially, these effects are accomplished by taking several rendered images of a scene and combining them with some processing.

Using Multi-Pass Cameras

All cameras have the option to enable them to become multi-pass cameras. You can find these settings in the Parameters rollout when a camera object is selected. Multi-pass cameras are created by checking the Enable button and selecting the effect from the drop-down list. The current available effects include Depth of Field (mental ray), Depth of Field, and Motion Blur. For each, an associated rollout of parameters opens.

Cross-

The Depth of Field (mental ray) effect option is covered in Chapter

Reference

44, “Raytracing and mental ray.”

 

Creating Multi-Pass Camera Effects

The Multi-Pass Effect section of the Parameters rollout also includes a Preview button. This button makes the effect visible in the viewports. This feature can save you a significant amount of time that normally would be spent test-rendering the scene. The Preview button is worth its weight in render speed. Using this button, you can preview the effect without having to render the entire sequence.

Caution

The Preview button does not work unless the Camera view is the

 

active viewport.

The Render Effect Per Pass option causes any applied Render Effects to be applied at each pass. If disabled, then any applied Render Effects is applied after the passes are completed.

26C H A P T E R

In This Chapter

Working with multi-pass cameras

Creating a Depth of Field effect

Creating a Motion

Blur effect

Cross-

You can also apply these multi-pass effects as Render Effects. See

Reference

Chapter 43, “Using Render Elements and Effects.”

 

678 Part V Cameras

Using the Depth of Field effect

The Depth of Field Parameters rollout, shown in Figure 26-1, appears when the Depth of Field option is selected in the Multi-Pass Effect section of the Parameters rollout. It includes settings for controlling the Depth of Field multi-pass effect.

Figure 26-1: Use the Depth of Field Parameters rollout to set the number of passes.

You can select to use the Target Distance (which is the distance to the camera’s target), or you can specify a separate Focal Depth distance. This location is the point where the camera is in focus. All scene objects closer and further from this location are blurred to an extent, depending in their distance from the focal point.

Note Even free cameras have a Target Distance. This distance is displayed at the bottom of the Parameters rollout.

Within the Depth of Field Parameters rollout, you also have the option to display each separate pass in the Rendered Frame Window with the Display Passes option and to use the camera’s original location for the first rendering pass by enabling the Use Original Location option.

The Total Passes is the number of times the scene is rendered to produce the effect, and the Sample Radius is the potential distance that the scene can move during the passes. By moving the scene about the radius value and re-rendering a pass, the object becomes blurred more away from the focal distance. If you have a fairly tight scene, the default

Radius value does not produce very visible results. Try increasing the Sample Radius value and re-rendering. Figure 26-2 shows a scene with Sample Radius values of 1 and 5.

Note The Depth of Field effect is applied only to scene objects that are rendered. They are not applied to any background images.

Chapter 26 Multi-Pass Camera Effects 679

Figure 26-2: Changing the Sample Radius value changes the amount of blur added to the scene.

The Sample Bias value moves the blurring closer to the focal point (for higher values) or away from the focal point (for lower values). If you want to highlight the focal point and radically blur the other objects in the scene, set the Sample Bias to 1.0. A Sample Bias setting of 0 results in a more even blurring.

The Normalize Weights option allows you to control how the various passes are blended. When enabled, you can avoid streaking along the object edges. The Dither Strength value controls the amount of dither taking place. Higher Dither Strength values make the image grainier. The Tile Size value also controls dither by specifying the dither pattern size.

With lots of passes specified, the render time can be fairly steep. To lower the overall rendering time, you can disable the Anti-alias and Anti-alias filtering computations. These speed up the rendering time at the cost of image quality.

Tutorial: Applying a Depth of Field effect to a row of windmills

In the dry plains of Southwest America, the wind blows fiercely. Rows of windmills are lined up in an effort to harness this energy. For this example, we use the Depth of Field effect to display the windmills.

To apply a Depth of Field effect to a row of windmills, follow these steps:

1.Open the Depth of field windmills.max file from the Chap 26 directory on the CD-ROM.

This file includes a windmill object (created by Viewpoint Datalabs) duplicated multiple times and positioned in a row.

2.Select Create Cameras Target Camera, and drag in the Top viewport from the lowerleft corner to the center of the windmills. In the Left vewpoint, select the camera and move it upward, and then select the Camera Target and also move it upward, so the entire row of windmills can be seen.

3.Select the Perspective viewport, right-click on the viewport title, and select Views Camera01 (or just press the C key) to make this viewport the Camera view.

4.With the Camera selected, open the Modify panel, enable the Multi-Pass Effect option, and then select Depth of Field in the drop-down list.

680 Part V Cameras

5.In the Depth of Field Parameters rollout, enable the Use Target Distance option and set the Total Passes to 15, the Sample Radius to 3.0, and the Sample Bias to 1.0.

6.Select the Camera viewport, and click the Preview button in the Parameters rollout.

This shows the Depth of Field effect in the viewport.

Figure 26-3 shows the resulting Depth of Field effect in the viewport for the row of windmills.

Using the Motion Blur effect

Motion blur is an effect that shows motion by blurring objects that are moving. If a stationary object is surrounded by several objects that are moving, then the motion blur effect blurs the moving objects and the stationary object remains in clear view, regardless of their positions in the scene. The faster an object moves, the more blurry it becomes.

This blurring is accomplished in several ways, but with a multi-pass camera, the camera renders subsequent frames of an animation and then blurs the images together.

The Motion Blur Parameters rollout, shown in Figure 26-4, appears when the Motion Blur option is selected in the Multi-Pass Effect section of the Parameters rollout. Many of its parameters work the same as the Depth of Field effect.

Figure 26-3: Multi-Pass camera effects can be viewed in the viewport using the Preview button.

Chapter 26 Multi-Pass Camera Effects 681

Figure 26-4: For the Motion Blur effect, you can set the number of frames to include.

The Display Passes option displays the different frames as they are being rendered, and the Total Passes is the number of frames that are included in the averaging. You can also select the Duration, which is the number of frames to include in the effect. The Bias option weights

the averaging toward the current frame. Higher Bias values weight the average more toward the latter frames, and lower values lean toward the earlier frames.

The remaining options all work the same as for the Depth of Field effect.

Tutorial: Using a Motion Blur multi-pass camera effect

The motion blur effect works only on objects that are moving. Applying this effect to a stationary 2D shape does not produce any noticeable results. For this tutorial, you apply this effect to a speeding ‘57 Chevy model created by Viewpoint Datalabs.

To apply a motion blur multi-pass effect to the camera looking at a car mesh, follow these steps:

1.Open the Car at a stop sign.max file from the Chap 26 directory on the CD-ROM.

This file includes a car mesh (created by Viewpoint Datalabs), a camera, and a simple stop sign made of primitives. The car is animated.

2.Click the Select by Name button on the main toolbar to open the Select by Name dialog box (or press the H key). Double-click the Camera01 object to select it.

3.With the camera object selected, open the Modify panel. In the Multi-Pass Effect section of the Parameters rollout, click the Enable check box and select the Motion Blur effect from the drop-down list.

4.In the Motion Blur Parameters rollout, set the Total Passes to 10, the Duration to 1.0, and the Bias to 0.9.

5.Drag the Time Slider to frame 57. This is the location where the car just passes the stop sign.

6.With the Camera viewport active, click the Preview button in the Parameters rollout.

Figure 26-5 shows the results of the Motion Blur effect. This effect has been exaggerated to show its result. Notice that the stop sign isn’t blurred. The only problem with this example is that, with the Motion Blur effect enabled, you can’t make out the license plate number, so you can’t send this speeder a ticket.