Sky Portal Illumination

An “mr Sky Portal” is a 3ds Max light object that gathers sky light (as opposed to direct sunlight) generated by a Daylight system. When a Sky Portal is applied to objects such as glass doors and windows, these objects become light sources. The objects in turn cause adjacent areas, specifically the interior of buildings, to be illuminated.

In this lesson, you will add a Sky Portal to the beach house curtain window to boost the amount of daylight that enters the interior of the house.

Set up the lesson:

  1. Continue from the previous scene or open beachhouse_skyportals.max. . This file is in the folder \scenes\data_exchange\Autodesk_Revit.
    Note: If a dialog asks whether you want to use the scene’s Gamma And LUT settings, accept the scene Gamma settings, and click OK. If a dialog asks whether to use the scene’s units, accept the scene units, and click OK.
  2. If you continue from the previous scene, then in the 3D View: Exterior viewport, dolly the camera forward so you have a closer view of the front of the beach house.

Add the Sky Portal and adjust scene exposure:

  1. Render the scene.

    The rendered image is illuminated solely by the Daylight system, with indirect illumination evident on the underside of the terrace canopy as well as on the shaded surfaces of the columns and exterior walls.

    Some sunlight is also penetrating the interior of the bungalow, but not enough to show much detail. You will correct this problem by adding a Sky Portal to the curtain window.

  2. On the Rendered Frame Window, make a clone of the image. You will compare this clone with image you will render a little later on.
  3. On the Create panel, activate (Lights). On the Object Type rollout, click to activate “mr Sky Portal,” then turn on AutoGrid.

    AutoGrid lets you create objects directly on surfaces in the scene.

    In the camera viewport, move the mouse over several objects in the scene and notice how AutoGrid changes the orientation of the axis tripod, depending on the cursor location.

    Creation axes oriented to the floor of the porch

    Creation axes oriented to the front window

    When you position the “mr Sky Portal” on an object, your objective is to position the cursor so its Z axis is perpendicular to the surface.

  4. Position the cursor at the bottom-right corner of the bungalow curtain window (the object name is Glazed), making sure the Z axis indicator is perpendicular to the surface.
  5. Create the Sky Portal by dragging diagonally from the lower-left corner to the upper-right corner, until the portal covers the entire area, then release the mouse. Right-click to complete Sky Portal creation.

    For a building with more and smaller windows, you would create a Sky Portal for every window and glass door in the model. In this case however, a single large portal is sufficient.

  6. Render the scene again, then compare the result with the rendered image you cloned earlier.

    The differences are subtle. But the furniture inside the house is lit better, and you can see farther into the interior.

Turn off the Sky Portal temporarily:

Create an interior view:

    The benefits of a Sky Portal become most apparent when you adjust the interior daylight settings. You will do so soon, but first you need to create another camera to view the interior of the bungalow.

  1. Activate the Top viewport and zoom in to the floor plan of the house.
  2. On the Create panel, activate (Cameras). On the Object type rollout, click Target to activate it.
  3. Click above the sofa at the bottom-left of the living room, then drag the target across the room to a point to the left of the dining-room table.
  4. Right-click to end camera creation.
  5. In the 3D View: Exterior viewport, click the Point Of View (POV) viewport label and choose Cameras Camera002 to switch to the viewpoint of the camera you just created.
  6. The Camera02 object was positioned on the floor when it was created, so use (Pan) in the new camera view to raise both the camera and its target until the camera captures a better view of the interior of the house.
    Tip: The shaded interior of the house is very dark, so click to open the Shading viewport label menu (which reads "[ Realistic ]"), and choose the Hidden Line option.

    Hidden Line display makes it easier to frame the scene. The Shaded option can also help, as it doesn't use lighting levels.

    The Hidden Line option is available only when you use the Nitrous viewport driver. If this option is not available on your system, then the dark viewport is probably not an issue; if it is, press F3 to see the view in wireframe mode.

Adjust the exposure and render the interior:

  1. On the main toolbar, click (Rendered Frame Window) to display the Rendered Frame Window.
  2. On the Rendered Frame Window, click (Environment And Effects Dialog (Exposure Controls)) to display the Environment And Effects dialog.
  3. On the "mr Photographic Exposure Control" rollout, open the Preset drop-down menu and choose Physically Based Lighting, Indoor Daylight.
  4. On the Exposure Control rollout, click Render Preview.

    The preview looks overexposed. To improve the rendering, you need to adjust the scene’s exposure settings.

  5. On the "mr Photographic Exposure Control" rollout Exposure group, change Shutter Speed to 32.0 (1/32 Sec.).

    The preview thumbnail updates dynamically to reflect your change.

  6. The result looks much improved, so on the Rendered Frame Window, click Render.
    Tip: To reduce render time, you can use the Render Setup Dialog to change the rendered frame to a resolution smaller than the size of 640 x 480 that we have provided as the default for these scenes.

    With the Sky Portal turned off, you can see how poorly the daylight is illuminating the room. One way to improve illumination without using the Sky Portal is by increasing the number of light ray bounces.

Add Final Gather to improve the lighting:

  1. On the lower panel of the Rendered Frame Window, increase the number of FG Bounces to 2.
  2. Render the scene again.

    The interior is brighter now. However, the kitchen area remains unnaturally dark. This is where the Sky Portal comes in.

Restore the “mr Sky Portal”:

  1. On the Scene Explorer panel, select the mr Sky Portal001 object.
  2. Go to the Modify panel and on the mr Sky Portal Parameters rollout, turn the Sky Portal back on.
  3. On the Rendered Frame Window, make a clone of the previous rendering, then click Render.

    In the latest rendering, notice the detail now visible in the kitchen counter and cabinets. Also, the overall scene color has taken on a bluish tint from the skylight channeled by the Sky Portal.

    A certain amount of graininess is also apparent, but this can easily be eliminated by adjusting the number of shadow samples taken by the Sky Portal.

Increase the number of shadow samples:

Correct the self-illuminating kitchen light for a daylight scene:

  1. Minimize the Rendered Frame Window.
  2. Open the Slate Material Editor.
  3. Move the Slate Material Editor window so you also can see the Camera002 viewport.
  4. On the Slate Material Editor Toolbar, click (Pick Material From Object), and then in the Camera002 viewport, click the lower side of the Pendant Light object.

    3ds Max displays the material nodes in the active View.

    The material for the light assembly is a Multi/Sub-Object material with two sub-materials.

  5. Double-click the second sub-material node, Glass - White, High Luminance, to display its parameters.
  6. Scroll to the Self Illumination rollout, and turn off Enable.

    The material reverts to a transparent appearance.

  7. Minimize the Slate Material Editor.

Make a final rendering of the interior scene:

  1. Restore the Rendered Frame Window. Make another clone of the rendered frame, then render the image again.

    The kitchen light fixture is now dark and the graininess of the rendering is reduced.

    The next illustration shows a rendered frame with even less grain. The shadows and reflections are more crisp.

    This image was produced with shadow samples set to 512 and the following render frame settings:

    • Image Precision (Antialiasing) slider bar: High
    • Final Gather Precision slider bar: Medium

    The image is improved, but it requires considerably more time to render.

Restore self-illumination to the kitchen light:

Save your work:

Next

Scene Management and Nighttime Lighting