title | description | author | ms.author | ms.date | ms.topic | keywords |
---|---|---|---|---|---|---|
Porting VR apps to Windows Mixed Reality |
A step-by-step walkthrough explaining how to port an existing immersive application to Windows Mixed Reality. |
JBrentJ |
alexturn |
12/9/2020 |
article |
port, unity, unreal, middleware, engine, UWP, Win32, porting, HoloLens 1st gen, mixed reality headset, windows mixed reality headset, migration, Windows 10, input mapping, |
Windows 10 includes support for immersive and holographic headsets. If you've built content for other devices like the Oculus Rift or HTC Vive, they have dependencies on libraries that exist above the operating system's platform API. Bringing existing Win32 Unity VR apps over to Windows Mixed Reality involves retargeting usage of vendor-specific VR SDKs to Unity's cross-vendor VR APIs.
At a high level, the following steps are involved in porting existing content:
- Make sure your PC is running the Windows 10 Fall Creators Update (16299). We no longer recommend receiving preview builds from the Insider Skip Ahead ring, as those builds won't be the most stable for mixed reality development.
- Upgrade to the latest version of your graphics or game engine. Game engines will need to support the Windows 10 SDK version 10.0.15063.0 (released in April 2017) or higher.
- Upgrade any middleware, plug-ins, or components. If your app contains any components, it's a good idea to upgrade to the latest version.
- Remove dependencies on duplicate SDKs. Depending on which device your content was targeting, you'll need to remove or conditionally compile out that SDK so you can target the Windows APIs instead. An example of this scenario would be SteamVR.
- Work through build issues. At this point, the porting exercise is specific to your app, your engine, and the component dependencies you have.
The install the tools page lists the recommended development hardware.
The Windows Mixed Reality platform is still under active development. We recommend joining the Windows Insider Program to access the "Windows Insider Fast" flight.
- Install the Windows 10 Creators Update
- Join the Windows Insider Program.
- Enable Developer Mode
- Switch to the Windows Insider Fast flights through Settings > Update & Security Section
- If you're using Visual Studio, then upgrade to the most recent build
- See Install the tools page under Visual Studio 2019
- In systems like notebooks with two GPUs, target the correct adapter. This applies to Unity and native DirectX apps where a ID3D11Device is created, either explicitly or implicitly (Media Foundation), for its functionality.
Important
If you're using HP Reverb G2 controllers, please refer to this article for additional input mapping instructions.