The controls in this rollout are for the camera effects depth of field and motion blur, as well as for contour shading and adding camera shaders.
To use depth of field for a Camera view:
For a Target camera, you can select the camera’s target object and move it. For a Free camera, you adjust the Target Distance on the Parameters rollout.
You might need to experiment with f-Stop values to get the effect you want.
To use depth of field for a Perspective view:
You might need to experiment with f-Stop values to get the effect you want. If you have trouble getting good results with f-Stop, use the drop-down list to change the method to In Focus Limits, then adjust the Near and Far values to enclose the region of the scene you want to be clearly in focus.
To use motion blur:
The mental ray renderer won't generate motion blur if Image is the chosen type.
Motion blur is not rendered when the mental ray renderer uses scanlines only.
To render with contours:
The mental ray material also lets you assign a contour shader.
To assign a camera shader:
The Material/Map Browser is displayed.
To adjust the settings for a contour or camera shader assigned on this rollout:
If you need to, arrange the open dialogs so you can see the Material Editor and the Render Setup dialog at the same time.
An Instance (Copy) Map dialog is displayed. Be sure to choose Instance, and then click OK.
If you don't choose Instance, changes you make to the shader settings in the Material Editor won't have any effect on the Render Setup dialog.
The Material Editor displays the shader parameters rollout.
The Rendering Control Properties (lower-right) quad of the rendering quad menu (Ctrl+Alt+right-click) has a Motion Blur toggle for a single, selected object. You can turn on Motion Blur for lights and cameras: moving lights and cameras can generate motion blur when rendered with mental ray.
When the Sampling mode is Classic / Raytraced and the scene uses motion blur, Time Samples controls the number of times the material is shaded during each time interval (set by Shutter Duration). By default, the material is shaded only once, and then blurred. If the material changes rapidly during the shutter interval, it might be useful to increase this value, in order to obtain more accurate motion blur. Rapid changes in reflections or refractions might require a higher Time Samples value. Range=0 to 100. Default=5.
When the Sampling mode is Rasterizer / Scanline, the label for this parameter changes to Time Samples (Fast Rasterizer) to indicate that this version of Time Samples is now in effect. The default value for the Fast Rasterizer version of Time Samples is 1, and the range is 1 to 128. If you change the value for either Sampling mode, 3ds Max remembers the changed setting when you switch.
These controls enable contours, and let you use shaders to adjust the results of a contour shader. You assign the primary contour shader to the Contour component of the mental ray Connection rollout or a mental ray material (see Advanced Shaders Rollout (mental ray Material)).
To change a shader assignment for adjusting contours, click a button. Default shaders are already assigned to the three components, as the button labels indicate.
Shader |
---|
Contour Store Function |
To adjust the settings for a shader assigned to one of these components, drag the shader's button to an unused Material Editor sample slot. When prompted to use an instance or a copy, be sure to choose Instance. (If you edit a copy of the shader, you will have to drag the sample slot back to the shader button on the Camera Effects rollout before you see any changes take effect.)
These controls let you assign mental ray camera shaders. Click a button to assign a shader to that component. After a shader is assigned, its name appears on the button. Use the toggle on the left to temporarily disable a shader that has been assigned.
In ray tracing, a camera casts rays into the scene, in order to construct a model of the light that in the real world, would be cast into the camera lens. A lens shader adjusts the color or trajectory of the rays the camera sees.
Shader |
---|
Glare (The default.) |
HDR Image Motion Blur |
Motion Vector Export |
Shader List (Output) |
Shader |
---|
Beam |
Material to Shader |
Mist |
mr Physical Sky |
Parti Volume |
Shader List (Volume) |
Submerge |
These controls are comparable to the depth-of-field controls for cameras. They apply only to Perspective viewports. You can render depth-of-field effects for either Camera or Perspective views. Depth-of-field effects don’t appear when you render orthographic viewports.
For a Perspective view, use the controls in this group. For a Camera view, choose “Depth Of Field (mental ray)” as the multi-pass rendering effect, then adjust the f-Stop setting. See Depth of Field Parameter (mental ray, iray, and Quicksilver Renderers).
In most cases, the f-Stop method is easier to use. The In Focus Limits method can help when the scale of objects in the scene makes it difficult to control depth of field using the f-Stop value alone.
For Camera viewports, the focus plane is set by the camera's target distance.
The f-Stop can have a value less than 1.0. This is not realistic in terms of an actual camera, but it can help you adjust the depth of field for scenes whose scale does not use realistic units.
The Near and Far values are related to each other and to the value of Focus Plane. Changing the value of Near changes Far as well, and vice versa. Specifically, if
H = Hyperfocal distance, the Focus Plane value at which the Far limit becomes infinity
D = The Focus Plane distance
D n = The Near distance
D f = The Far distance
Then
D n = HD / (H + D)
D f = HD / (H − D)