Add, copy, or delete a light

This page applies to WPF projects only

To add a light to a 3D object, you simply copy and paste an existing light, and then modify the properties of the new light. If you do not have any lights, you can use the instructions in Convert a 2D image into 3D to create a 3D object from which you can copy a light.

To add or copy a light

  1. In the Objects and Timeline panel, expand the Viewport3D object that contains the light that you want to copy.

    Within the Viewport3D object are containers for the cameras, materials, and lights.

    Note

    The materials and lights might be contained in an object that represents the world geometry. If so, double-click and expand the world geometry container object.

  2. Expand the nodes under the container object for the light that you want to copy, until you get to the last node, as in the following image.

  3. Right-click the light, and then click Copy.

  4. In the Objects and Timeline panel, double-click the Viewport3D object or the world geometry container object that represents the 3D object to which you want to add a light.

    Double-clicking an object activates it so that you can add child items to it.

  5. On the Edit menu, click Paste.

    A new ModelVisual3D object that contains your copied light appears as a child object of the activated object in the Objects and Timeline panel. For instructions about modifying the new light, see Change the type of light and Change the color of a light.

    Tip

    To see all of the lights acting on your object at once, point to 3D on the View menu, and then click Toggle Lights.

To delete a light

  1. In the Objects and Timeline panel, expand the Viewport3D object that contains the light that you want to delete.

    Within the Viewport3D object are containers for the cameras, materials, and lights.

    Note

    The materials and lights might be contained in an object that represents the world geometry. If so, double-click and expand the world geometry container object.

  2. Right-click the container object for the light, and then click Delete.

    The light and its container are deleted from your project.

Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.