This sample demonstrates how to add a stereoscopic 3-D effect to C++ apps by using Direct3D. It also demonstrates how to respond to system stereo changes in Direct3D.

Note  The stereoscopic 3-D effect requires a display that supports stereo 3-D.

You can use the code in this sample to add stereoscopic 3-D effects to your Direct3D 11.1 app. It shows the best practices and usage of stereo 3-D support APIs that Direct3D 11.1 supports for apps.

The process demonstrated in this sample is as follows:

For more info about the concepts and APIs demonstrated in this sample, see these topics:

This sample is written in C++ and requires some experience with graphics programming and DirectX.

Requirements

In addition to the minimum supported operating systems being Windows 8.1 and Windows Server 2012 R2, a WDDM 1.2 display driver must be installed on the computer, and the graphics hardware must support feature level 10 or higher.

To obtain an evaluation copy of Windows 8.1, go to Windows 8.1.

To obtain an evaluation copy of Microsoft Visual Studio 2013, go to Visual Studio 2013.

Related topics

Windows 8 app samples

Operating system requirements

Client
Windows 8.1
Server
Windows Server 2012 R2

Build the sample

  1. Start Visual Studio 2013 and select File > Open > Project/Solution.
  2. Go to the directory in which you unzipped the sample. Go to the directory named for the sample, and double-click the Visual Studio 2013 Solution (.sln) file.
  3. Press F7 or use Build > Build Solution to build the sample.

Run the sample

To debug the app and then run it, press F5 or use Debug > Start Debugging. To run the app without debugging, press Ctrl+F5 or use Debug > Start Without Debugging.

You can adjust the stereoscopic visual effect by pressing the 'up' or 'down' arrow keys.