Exercise - Create a Holographic Remoting PC application
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
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
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.
In the Build Settings window, select PC, Mac & Linux Standalone Platform and click the Switch Platform button to change the Build Platform:
2. Set the project settings
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.
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.
Add Eye Gaze Interaction Profile and Microsoft Hand Interaction Profile by clicking on the plus sign ("+") button in the Interaction Profiles tab.
Under Open XR feature groups > All features, select Holographic App Remoting.
Select Windows Mixed Reality and then under the Windows Mixed Reality group, select Holographic App Remoting.
3. Build the Unity project
In the menu bar, select File > Build Settings.
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:
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:
Wait for Unity to finish 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
- On your HoloLens 2, visit the Store app and search for "Remoting Player."
- Select the Remoting Player app.
- Tap Install to download and install the app.
2. Connect the holographic remoting pc app to the remoting player
- Start the Remoting Player on your HoloLens.
- Take note of the HoloLens IP address. It will be displayed as a hologram by the Remoting Player as soon as it launches.
- Open the Holographic Remoting PC application on your PC.
- Once the application is launched, enter the IP address and click the Connect button to connect.
Trebate pomoć? Pogledajte naš vodič za rješavanje problema ili pošaljite željene povratne informacije prijavljivanjem problema.