Microsoft replaces WinRT APIs with OpenXR for HoloLens 2 and Windows Mixed Reality
3 min. read
Published on
Read our disclosure page to find out how can you help MSPoweruser sustain the editorial team Read more
Back in 2017, Microsoft joined OpenXR, a standard designed to improve interoperability between the various applications and hardware interfaces used in VR. In early 2019, Microsoft released aย preview version of OpenXR runtime for Windows Mixed Reality platform based on the OpenXR draft spec. In July 2019, Microsoft released the first OpenXR 1.0 runtime that supports mixed reality, for all Windows Mixed Reality and HoloLens 2 users.
Right now, with OpenXR, you can develop engines and apps that target HoloLens 2 with the same API that you use to target PC VR headsets, including Windows Mixed Reality headsets, Oculus Rift headsets and SteamVR headsets. Since OpenXR-based apps are portable across hardware platforms, Microsoft is stopping the development of legacy WinRT APIs. Existing WinRT API-based apps will continue to work on HoloLens 2 and Windows Mixed Reality, but Microsoft will not add any new features to WinRT APIs.
You can starting developing for OpenXR in Unity and Unreal Engine. Find the details below.
OpenXR in Unity
Today, the supported Unity development path for HoloLens 2, HoloLens (1stย gen) and Windows Mixed Reality headsets isย Unity 2019 LTSย with the existing WinRT API backend.ย If youโre targeting the new HP Reverb G2 controller in a Unity 2019 app, see ourย HP Reverb G2 input docs.
Starting withย Unity 2020 LTS,ย Unity will ship an OpenXR backendย that supports HoloLens 2 and Windows Mixed Reality headsets.ย This includes support for the OpenXR extensions that light up theย full capabilities of HoloLens 2 and Windows Mixed Reality headsets, including hand/eye tracking, spatial anchors and HP Reverb G2 controllers.ย A preview version of Unityโs OpenXR package will be available later this year.ย MRTK-Unity support for OpenXR is currently under development in theย mrtk_development branchย and will be available alongside that OpenXR preview package.
Starting inย Unity 2021, OpenXR will then graduate to be the only supported Unity backend for targeting HoloLens 2 and Windows Mixed Reality headsets.
OpenXR in Unreal Engine
As ofย Unreal Engine 4.23, full support for HoloLens 2 and Windows Mixed Reality headsets are available through the Windows Mixed Reality (WinRT) plugin.
Unreal Engine 4.23 was also the first major game engine release to ship preview support for OpenXR 1.0!ย Now inย Unreal Engine 4.26, support for HoloLens 2, Windows Mixed Reality and other desktop VR headsets will be available through Unreal Engineโs built-in OpenXR plugin.ย Unreal Engine 4.26 will also ship with its first set of OpenXR extension plugins enabling hand interaction and HP Reverb G2 controller support, lighting up theย full feature set of HoloLens 2 and Windows Mixed Reality headsets.ย Unreal Engine 4.26 is available in preview today on theย Epic Games Launcher, with the official release coming later this year.ย MRTK-Unreal support for OpenXR will be available alongside that release as well.
If youโre building your own DirectX engine for HoloLens 2, Windows Mixed Reality or other PC VR headsets, Microsoft now recommends OpenXR.
Source: Microsoft
User forum
0 messages