Creating an Environment


Whether it's a beautiful landscape or just clouds drifting by, the environment behind the scene can do much to make the scene more believable. In this section, you learn to define an environment using the Rendering image from book Environment (8) menu command.

Environment maps are used as background for the scene and can also be used as images reflected off shiny objects. Environment maps are displayed only in the final rendering and not in the viewports, but you can add a background to any viewport and even set the environment map to be displayed as the viewport backdrop.

CROSS-REF 

Chapter 2, "Controlling and Configuring the Viewports," covers adding a background image to a viewport

But there is more to an environment than just a background. It also involves altering the global lighting, controlling exposure, and introducing atmosphere effects.

Defining the rendered environment

You create environments in the Environment and Effects dialog box, shown in Figure 43.14, which you can open by choosing Rendering image from book Environment (or by pressing the 8 key). Several settings make up an environment, including a background color or image, global lighting, exposure control, and atmospheric effects.

image from book
Figure 43-14: The Environment and Effects dialog box lets you select a background color or image, define global lighting, control exposure, and work with atmospheric effects.

Setting a background color

The first color swatch in the Environment panel lets you specify a background color. This color appears by default if no environment map is specified or if the Use Map option is disabled (and is black by default). The background color is animatable, so you can set the background color to start black and slowly fade to white.

Using a background image

To select a background image to be used as an environment map, click the Environment Map button in the Environment panel to open the Material/Map browser. If you want to load a bitmap image as the background image, double-click the Bitmap selection to open the Select Bitmap Image dialog box. Locate the bitmap to use, and click OK. The bitmap name appears on the Environment Map button.

Tip 

If the environment map that you want to use is already displayed in one of the Material Editor sample slots, you can drag it directly from the Material Editor and drop it on the Map button in the Environment panel.

To change any of the environment map parameters (such as the mapping coordinates), you need to load the environment map into the Material Editor. You can do so by dragging the map button from the Environment panel onto one of the sample slots in the Material Editor. After releasing the material, the Instance (Copy) Map dialog box asks whether you want to create an Instance or a Copy. If you select Instance, any parameter changes that you make to the material automatically update the map in the Environment panel.

CROSS-REF 

For more information about the types of available mapping parameters, see Chapter 23, "Adding Material Details with Maps."

The background image doesn't need to be an image: You can also load animations. Supported formats include AVI, MPEG, MOV, and IFL files.

Figure 43.15 shows a scene with an image of the Golden Gate Bridge loaded as the environment map. Viewpoint Datalabs created the airplane model.

image from book
Figure 43-15: The results of a background image loaded into the Environment panel

Setting global lighting

The Tint color swatch in the Global Lighting section of the Environment panel specifies a color used to tint all lights. The Level value increases or decreases the overall lighting level for all lights in the scene. The Ambient color swatch sets the color for the ambient light in the scene, which is the darkest color that any shadows in the scene can be. You can animate all these settings.

Setting exposure

The Exposure Control rollout of the Environment panel lets you control output levels and color rendering ranges. Controlling the exposure of film is a common procedure when working with film and can result in a different look for your scene. Enabling the Exposure Controls can add dynamic range to your rendered images that is more comparable to what the eyes actually see. If you've worked with a Histogram in Photoshop, then you'll understand the impact that the Exposure Controls can have. The default selection is Automatic Exposure Control.

The Active option lets you turn this feature on and off. The Process Background and Environment Maps option causes the exposure settings to affect the background and environment images. When this option is disabled, only the scene objects are affected by the exposure control settings. The Exposure Control rollout also includes a Render Preview button that displays the rendered scene in a tiny pane. The preview pane is small, but for most types of exposure control settings, it is enough. When you click the Render Preview button, the scene is rendered. This preview is then automatically updated whenever a setting is changed.

Automatic, Linear, and Logarithmic Exposure Control

Selecting Automatic Exposure Control from the drop-down list automatically adjusts your rendered output to be closer to what your eyes can detect. Monitors are notoriously bad at reducing the dynamic range of the colors in your rendered image. This setting provides the needed adjustments to match the expanded dynamic range of your eyes.

When the Automatic Exposure Control option is selected, a new rollout appears in the Environment panel. This rollout includes settings for Brightness, Contrast, Exposure Value, and Physical Scale. You can also enable Color Correction, select a color, and select an option to Desaturate Low Levels. The Brightness and Contrast settings can range from 0 to 100. A Contrast value of 0 displays all scene objects with the same flat gray color, and a Brightness value of 100 displays all scene objects with the same flat white color. The Exposure Value can range from 5 to 5 and determines the amount of light allowed in the scene.

Another exposure control option is Linear Exposure Control. Although this option presents the same settings as the Automatic Exposure Control, the differences between the minimum and maximum values are a straight line across the light spectrum.

Tip 

The tricky part is to know when to use which Exposure Control. For still images, the Automatic Exposure Control is your best bet, but for animations, you should use the Logarithmic Exposure Control. Automatic is also a good choice for any scenes that use many lighting effects. The Linear Exposure Control should be used for low dynamic range scenes such as nighttime or cloudy scenes.

The Logarithmic Exposure Control option replaces the Exposure Value setting with a Mid Tones setting. This setting controls the colors between the lowest and highest values. This exposure control option also includes options to Affect Indirect Only and Exterior Daylight. You should enable the Affect Indirect Only option if you use only standard lights in the scene, but if your scene includes an IES Sun light, then enable the Exterior Daylight option to tone down the intensity of the light.

CROSS-REF 

You should always use the Logarithmic Exposure Control setting when enabling the advanced lighting features because it works well with low-level light You can learn more about the advanced lighting radiosity features in Chapter 28, "Working with Advanced Lighting, Light Tracing, and Radiosity."

Pseudo Color Exposure Control

As you work with advanced lighting solutions and with radiosity, determining whether interior spaces and objects have too much light or not enough light can be difficult, especially when comparing objects on opposite sides of the scene. This is where the Pseudo Color Exposure Control option comes in handy.

This exposure control option projects a band of colors (or grayscale) in place of the material and object colors that represent the illumination or luminance values for the scene. With these pseudo-colors, you can quickly determine where all the lighting is consistent and where it needs to be addressed.

In the Pseudo Color Exposure Control rollout, shown in Figure 43.16, you can select to apply the colors to show Illumination or Luminance. You can also select to use a Colored or Grayscale style and to make the Scale Linear or Logarithmic. The Min and Max settings let you control the ranges of the colors, and a Physical Scale setting is included. The color (or grayscale) band is shown across the bottom of the rollout with the values for each color underneath.

image from book
Figure 43-16: The Pseudo Color Exposure Control rollout can display illumination and luminance values as colors.

When this exposure control is used, the associated render element is automatically set in the Render Elements rollout of the Render Scene dialog box. If the scene is rendered, then the appropriate (Illumination or Luminance) render element is also rendered.

CROSS-REF 

See Chapter 47, "Compositing and Render Elements" for more on render elements.

Tutorial: Using the Logarithmic Exposure Control

As you start to use the new photometric lights, you may find it difficult to get the settings just right. The results are over-saturation or under-saturation, but luckily the Logarithmic Exposure Control can quickly fix any problems that appear.

To adjust the effect of a photometric light using the Logarithmic Exposure Control, follow these steps:

  1. Open the image from book Array of chrome spheres.max file from the Chap 43 directory on the DVD.

    This file contains lots and lots of chrome mapped spheres with advanced lighting enabled.

  2. Choose Rendering image from book Render (or press the F10 key) to open the Render Scene dialog box, and click the Render button.

    It takes a while to render, but notice the results, shown on the left in Figure 43.17.

    image from book
    Figure 43-17: This rendered image shows an image before and after exposure control was enabled.

  3. Choose Rendering image from book Environment (or press the 8 key) to open the Environment &Effects dialog box. In the Exposure Control rollout, select Logarithmic Exposure Control from the drop-down list, and enable the Active and Process Background and Environment Maps options. Then click the Render Preview button.

  4. In the Logarithmic Exposure Control rollout, set the Brightness value to 60, set the Contrast value to 100, and enable the Desaturate Low Levels option.

  5. In the Render Scene dialog box, click the Render button again to see the updated rendering. The image on the right in Figure 43.17 shows the rendered image with exposure control enabled.




3ds Max 9 Bible
3ds Max 9 Bible
ISBN: 0470100893
EAN: 2147483647
Year: 2007
Pages: 383

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net