Exercise - Create a Holographic Remoting PC application

Completed

In this tutorial, you'll learn how to create a PC app for Holographic Remoting. That lets you connect to HoloLens 2 at any time, providing a way to visualize 3D content in Mixed Reality.

Configure the capabilities

In the Project Settings window, expand the Publishing Settings, then scroll down to the Capabilities section and then select the following:

  • Internet Clint server
  • Private Network Client Server

Screenshot of Player settings.

In this section, you'll configure your project to stream your Mixed Reality experience to your HoloLens 2 device from your PC in real-time over a Wi-Fi connection.

Configuring your scene for holographic remoting

  • In the Project window, navigate to the Assets > MRTK.Tutorials.PCHolograhicRemoting > Prefabs folder, and click and drag HolographicRemoting prefab into your scene.

    Screenshot of Configuring your scene for Holographic Remoting - Unity 2020 + OpenXR.

Build your application to pc

Your Holographic Remoting app is now ready to build on your PC. Follow the below steps and make these changes to build this application on to your PC.

1. Switch build platform

In the menu bar, select File > Build Settings.

  1. In the Build Settings window, select PC, Mac & Linux Standalone Platform and click the Switch Platform button to change the Build Platform:

    Screenshot of Switching Build Platform.

2. Set the project settings

  1. In the menu bar, select Edit > Project Settings > XR Plug-in Management. Ensure that you're in the Windows Standalone tab and then select OpenXR and Windows Mixed Reality feature.

    Screenshot of Project settings.

  2. In the Project Settings window, select OpenXR. Ensure that you're in the Windows Standalone tab, and then change the Depth submission mode from None to Depth 16 Bit.

  3. Add Eye Gaze Interaction Profile and Microsoft Hand Interaction Profile by clicking on the plus sign ("+") button in the Interaction Profiles tab.

    Screenshot of Eye Gaze Interaction Profile.

  4. Under Open XR feature groups > All features, select Holographic App Remoting.

    Screenshot of XR feature groups.

  5. Select Windows Mixed Reality and then under the Windows Mixed Reality group, select Holographic App Remoting.

    Screenshot of Holographic App Remoting.

3. Build the Unity project

In the menu bar, select File > Build Settings.

  1. Click Add Open Scenes to add your current scene to the Scenes list in the Build Settings window. Then, in the Build list, click the Build button:

    Screenshot of Add Open Scenes.

  2. Choose a suitable location to store your build--for example, Documents\MixedRealityLearning. Create a new folder and give it a proper name--for example, PCHolographicRemoting--and then click the Select Folder button to start the build process:

    Screenshot of Select Folder.

  3. Wait for Unity to finish the build process.

    Screenshot of Wait for the build process.

    Double-click the Executable file to open the PC Holographic Remoting Application on your PC.

    Note

    Due to some known issues in building the Holographic Remoting app for UWP, we're building as Windows Standalone for OpenXR.

Test holographic remoting remote application

Note

Building and testing on HoloLens 2 is not mandatory. Alternatively, you can test on the HoloLens 2 Emulator if you don't have a device. Devices can be purchased at HoloLens.com.

To connect your PC application to your HoloLens 2, do the following:

1. Install the remoting player application on HoloLens 2 device

  1. On your HoloLens 2, visit the Store app and search for "Remoting Player."
  2. Select the Remoting Player app.
  3. Tap Install to download and install the app.

2. Connect the holographic remoting pc app to the remoting player

  1. Start the Remoting Player on your HoloLens.
  2. Take note of the HoloLens IP address. It will be displayed as a hologram by the Remoting Player as soon as it launches.
  3. Open the Holographic Remoting PC application on your PC.
  4. Once the application is launched, enter the IP address and click the Connect button to connect.