Accessibility
Adobe
Sign in My orders My Adobe

Converting from 2D to 3D

Chad Perkins

Chad Perkins

www.chadandtoddcast.com

Learn Photoshop CS4

Learn Photoshop CS4 Extended

Created:
15 Oct 2008
User Level:
Intermediate, Advanced
Products:
Photoshop Extended CS4 or later

Convert 2D images into 3D objects or sequences by using DICOM, pixel layers, gradient map, or Vanishing Point.

AlertThis content requires Flash

Download the free Flash Player now!

Get Adobe Flash Player


Requirements

To complete the tasks demonstrated in this tutorial, you need the following software and files:

Adobe Photoshop CS4 Extended

Sample files

lrvid4006_ps.zip (ZIP, 119MB)

Prerequisite knowledge

Basic knowledge of how to import images, create layers, use the Photoshop toolbox, and navigate the Layers panel.

Converting from 2D to 3D

Adobe® Photoshop® CS4 Extended has several new features that allow you to create three-dimensional content. In this tutorial, you will learn how to wrap a 2D image around a 3D geometrical object, transform a 2D object into a 3D plane, and create volume renderings of DICOM (Digital Imaging and Communications in Medicine) sequences and pixel layers. You will also learn how to use gray values to create a depth map, composite 2D and 3D data, and create 3D spherical panoramas.

Wrapping a 2D image around a 3D geometrical object

Photoshop CS4 Extended can create a 3D effect by wrapping a 2D image around a 3D geometrical object. To wrap a 2D object around a 3D object:

  1. Open the sample file named archer_DC-2706.tif in Photoshop.
  2. Select the layer with the photographic image and choose 3D > New Shape From Layer > Cylinder. A cylinder appears with the 3D image wrapped around it. The 3D Axis widget also appears, allowing you to move, scale, and rotate the image along the x, y, and z axes.

    2 D image

    Figure 1: Wrapping a 2D image around a 3D geometrical object

    Note: Now that you have created a 3D object, you can add lights and cameras, change its materials, and paint on it. Basically, you can do anything to the 3D object that you can do to any other 3D layer.

Transforming a 2D image into a 3D plane

Photoshop CS4 Extended also has a new feature that allows you to take advantage of 3D features using simple 2D layers. You can now add a spotlight to an image or rotate an image in 3D space by transforming a 2D image into a 3D plane: To transform a 2D image:

  1. Use the sample file named arcer_DC-2706.tif to complete this exercise.
  2. Choose 3D > New 3D Postcard From Layer. You have created a 3D object from a 2D photographic image. Note that the image still appears flat.

    3 D image

    Figure 2: Creating a 3D object out of a 2D image
  3. Choose the 3D Rotation tool from the toolbox. You can move the image using the 3D Axis widget to demonstrate that it is indeed a 3D plane. This plane respects 3D cameras and lights you create in Photoshop.

    3 D rotation tool

    Figure 3: Using the 3D Rotation tool

Volume rendering with DICOM layers

Photoshop CS4 Extended allows you to create a volume rendering of Digital Imaging and Communications Medicine (DICOM) images. A DICOM sequence is a series of cross-section stills. To open a DICOM sequence:

  1. Choose File > Open and open the sample file named legs_stacked.dcm.
  2. Use the Up Arrow and Down Arrow keys to navigate through the sequence of DICOM images.
  3. To create a volume rendering, click Select All at the top of the DICOM sequence and select all images in the sequence.

    DICOM sequence

    Figure 4: Selecting images from a DICOM sequence
  4. Under Frame Import Options, select Import As Volume. Click Open. When Photoshop imports the DICOM sequence as a volume, it creates the illusion that all those images have created a 3D volume.

    DICOM sequence

    Figure 5: Creating a volume rendering of a DICOM sequence

    Note: When you import a DICOM sequence, the 3D panel displays a series of DICOM-specific render modes.

    The 3D panel

    Figure 6: The 3D panel
  5. You can also create a volume rendering with your own pixel layers. To do this, choose 3D > New Volume From Layers.

Using gray values to generate a depth map

Photoshop CS4 also allows you to use gray values to generate a depth map. To create a depth map:

  1. Open Gradient Map.psd.
  2. Choose 3D > New Mesh From Grayscale > Plane.

    Note:Although you are starting with an RGB image, Photoshop looks at the luminance values to determine which elements should be raised, and which should be sunken. Photoshop raises the light areas and sinks the dark areas to create an illusion of depth.

  3. To adjust the amount of extrusion, choose the 3D Axis widget. Select the square control located near the tip of the green arrow representing the y axis. When you select the square control, it turns yellow.

    3D Axis widget

    Figure 7: The 3D Axis widget
  4. Drag the square control up to decrease the amount of extrusion. Drag the square control down to increase the amount of extrusion.

    Note: The image is a complete 3D object that respects lights, cameras, materials, etc.

Compositing 2D and 3D data

In Photoshop CS4 Extended, you can composite 2D and 3D data.

  1. Return to Gradient Map.psd.
  2. Create a new blank pixel layer by clicking the new layer icon at the bottom of the Layers panel.

    The Layers panel

    Figure 8: The Layers panel
  3. Choose a fill color using the Foreground Color icon in the Photoshop toolbox.
  4. Press Alt+Backspace/Option+Delete to fill the blank pixel layer with the foreground color.
  5. Select the new pixel layer and then choose Merge Down from the pop-up menu in the Layers panel. The original layer is still a 3D object, with the red data from the new pixel layer merged at the top of the surface.

    red-tinted object

    Figure 9: A composite 3D object with red tint

Creating 3D spherical panoramas

An additional feature of Photoshop CS4 Extended is the ability to create 3D spherical panoramas. To wrap a panorama around a 3D sphere:

  1. Open the sample file named courtyard1.psd.

    panorama image

    Figure 10: A panorama image
  2. Choose 3D > New Shape From Layer > Spherical Panorama.
  3. Zoom out of and rotate the image to view a 360 degree panorama.
  4. To fix the north- and south-pole distortions, use the Merge Down techniques described in the previous section of this tutorial.

    panoramic view

    Figure 11: A 360ยบ degree panoramic view

Where to go from here

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License

About the authors

Chad Perkins is an award-winning software trainer, and an Adobe Certified Instructor in Photoshop, After Effects, Encore, Adobe Premiere Pro, Illustrator, InDesign, Acrobat, and is CompTIA CTT+ certified. Chad authored the books Photoshop CS3 Extended for 3D and Video (Adobe Press), How to Do Everything with Photoshop CS4 (McGraw-Hill), and The After Effects Illusionist (Focal Press). Chad and his brother Todd broadcast the All Things Adobe podcast, which offers free tips in Adobe software.