Creating a Shadow Study

You can animate a Daylight system's time of day. This is a good way to create a shadow study.

In this tutorial, you will learn how to:

Important: This tutorial assumes you are using the default Nitrous viewport driver. Nitrous requires Direct3D, and works best when used with a professional graphics board with plenty of dedicated graphics memory. See the Autodesk certified recommendations at http://www.autodesk.com/max-hardware and the System Requirements at http://www.autodesk.com/3dsmax-systemreq-2015-enu. If you are using the Legacy Direct3D or the OpenGL driver, check to be sure your graphics hadware supports Shader Model 3.0 (SM3.0) or a later version: Choose Help Diagnose Video Hardware. This displays a dialog with details about your graphics configuration, including GPU Model Shader Support, which shows the Shader Model version number. The viewport controls for Legacy Direct3D or OpenGL viewports are somewhat different from the controls for Nitrous viewports. If your graphics hardware doesn’t support SM3.0, you can skip this tutorial. Or you can do the first procedure, where you animate the daylight, then skip to the last procedure, which uses the mental ray renderer.

Skill level: Beginner

Time to complete: 30 minutes

Preparation for This Tutorial

Set up the scene:

Animate the daylight:

  1. On the main toolbar, turn on (Select Object).
  2. In the Top viewport, click the sun object to select it.

    Daylight01 appears in the name field on the command panel.

  3. Go to the Motion panel.
  4. Turn on .

    The button, the track bar, and the border of the active viewport all turn red.

  5. Drag the time slider to frame 60 (or click (Go To End)), and then on the Control Parameters rollout, change the Hours value to 19.

    The spinner arrows of the Hours, Minutes, and Seconds fields are now bracketed in red, indicating that you have set a key to animate the time of day.

    When you use Auto Key to set a key at frame 60, 3ds Max also sets a key at the start frame, frame 0. So the sun is now animated to range from 0700 to 1900 hours, or 7 A.M. to 7 P.M. Because there are 61 frames in the animation, the sun reaches the top of the hour every five frames.

  6. Turn off .
  7. Drag the time slider.

    You can see the movement of the sun.

  8. Click (Go To Start) to return to frame 0.

Use viewport lighting to view the scene:

  1. Activate the Camera02 viewport, and maximize it.
  2. Click the Shading viewport label menu (the one that now reads "[ Realistic ]"), and choose Lighting And Shadows Illuminate With Scene Lights.

    Now the scene is illuminated by the mr Sun light that is part of the daylight system, and the Camera02 viewport shows the lighting early on a winter morning.

  3. Drag the time slider.

    As the sun progresses across the sky, shadows in the viewport move across the cityscape.

    0900h

    1200h

    1500h

View the effects of mr Sky:

    One advantage of using mr Sky as the sky light for the Daylight system, is that this light changes color depending on the time of day.

    The angle of Camera02 is too high to get a good view of the sky, so first you change views.

  1. Click the Point-Of-View (POV) viewport label (which currently reads “[ Camera02 ]”), and choose Cameras Camera01.

    This is a more oblique view of the city block.

  2. Click the Shading viewport label menu, and choose Viewport Background Environment Background.

    3ds Max shows the sky and horizon. The sky is colored according to the time of day.

    0900h

    1200h

    1500h

    1648h

Save your work:

(Optional.) Render snapshots of the shadow study:

    A hardware-shaded viewport is great for interactive display. But hardware shading doesn’t include the full detail of a rendering. Also, sometimes hardware shading generates artifacts, as you can see in the previous graphic of the viewport with noontime lighting. For further study, or to make a presentation, you might want to render the shadows.

    You can turn the shadow study into an animation, but for this tutorial, you will render only selected frames.

    At 0700 hours, when the animation begins, and 1900 hours, when it ends, the scene is too dark to be interesting. So you will render selected frames from a smaller range.

  1. On the main toolbar, click (Render Setup).

    3ds Max opens the Render Setup dialog. The Common panel is active.

  2. In the Common Parameters rollout Time Output group, set the range from frame 5 to frame 45 (0800 to 1600 hours). Also set Every Nth Frame to 5.

    You will render nine snapshot frames over the course of the main daylight hours.

  3. In the Output Size group, click the 800 x 600 button.

    Smaller sizes render more quickly, but the shadows don't show up as well.

  4. Scroll down to the Render Output group. Click the Files button.

    3ds Max opens a Render Output File dialog. By default, 3ds Max saves renderings in the \renderoutput folder for the tutorials. You can change this location if you like.

    Choose JPEG as the output type, and enter thirdstreetblock as the file name, then click Save.

    Accept the defaults for the JPEG file format.

    Tip: Even when you create an animation, rendering to sequentially numbered still image frames can be a good idea. If you need to correct mistakes, you can correct individual frames without having to re-render the entire animation.
  5. Make sure Camera01 is the active viewport, then click Render.

    3ds Max renders the individual frames. Each frame has the file name you entered, followed by a sequence number that equals the frame number.

    Fully rendered frame from the snapshot set

    You might want to experiment. For example, changing the Daylight system’s month to a month in summer will show more hours of daylight, and shadows that have a different orientation.

Save your work:

Summary

To create a shadow study you can use Auto Key to animate a Daylight system’s time of day. With hardware viewport shading, you can view shadows. The sky light mr Sky provides sky color. You can also use the renderer to create fully detailed frames, or an animation.