Switch to the Browse tab and search for OpenXR.Loader.In Solution Explorer, right-click the project that will use OpenXR and select Manage NuGet Packages.To add an OpenXR.Loader NuGet package reference to your Visual Studio C++ solution: This will give you access to OpenXR 1.0 core features, plus published KHR, EXT and MSFT extensions. The OpenXR.Loader NuGet package is the easiest way to reference a prebuilt OpenXR loader. If you're interested to experiment with MSFT_preview extensions as well, you can copy in preview OpenXR headers from the Mixed Reality GitHub repo. Either approach will give you access to OpenXR 1.0 core features, plus published KHR, EXT and MSFT extensions. You can reference the official OpenXR NuGet package from your Visual Studio project or include the official OpenXR loader source from the Khronos GitHub repo. The loader discovers the active OpenXR runtime on the device and provides access to the core functions and extension functions that it implements. To get started with OpenXR in an existing project, you'll include the OpenXR loader. EXE, you can use it with a VR headset on any desktop VR platform that supports OpenXR, whatever the headset type.Īfter building an OpenXR UWP app package, you can deploy that package to either a HoloLens 2 device or the HoloLens 2 Emulator. The video shows how each of the major components of the OpenXR API can be used in your own engine, and also demonstrates some of the applications built on OpenXR today:Īfter building an OpenXR Win32 desktop. While the Win32 and UWP project files are separate because of differences in packaging and deployment, the app code inside each project is almost exactly the same!įor a tour of the OpenXR API, check out this 60-minute video of the BasicXrApp sample in Visual Studio. Because the solution contains a HoloLens UWP project, you'll need the Universal Windows Platform development workload installed in Visual Studio to fully open it. The BasicXrApp project shows a simple OpenXR sample with Win32 and UWP HoloLens 2 project files in Visual Studio. This also works on physical HoloLens 2 devices.īe sure to install the tools you'll need for OpenXR development if you haven't already. In the Portal, navigate to the "OpenXR" page and then, under Developer Features, select the Install button. When using the HoloLens 2 emulator, the easiest way to install the OpenXR Tools for Windows Mixed Reality is through the Windows Device Portal. To find and install the OpenXR Tools app, on your HoloLens 2, go to the Store app and search for "OpenXR." It provides a demo of various OpenXR features and an OpenXR Runtime page that contains key information about the active runtime and current headset. If you're developing OpenXR applications for HoloLens 2 or PC VR, you might find this OpenXR Tools for Windows Mixed Reality app useful. Getting the OpenXR Tools for Windows Mixed Reality If that button is missing, the OpenXR runtime is already active. To reactivate the Windows Mixed Reality OpenXR Runtime, on the Start menu, launch "Mixed Reality Portal" and then select "Fix it" at the top of the window. If you've been using multiple VR headsets on your PC, keep in mind that the active OpenXR runtime may be changed by another vendor's system software. The Microsoft Store then keeps the runtime up to date. That's it! The Windows Mixed Reality OpenXR runtime is installed and made active automatically for all Windows Mixed Reality users. Set up a Windows Mixed Reality headset or enable the Windows Mixed Reality simulator.If you're on an earlier version of Windows 10, you can upgrade by using the Windows 10 Update Assistant. Earlier versions of Windows 10 should still work with OpenXR but may not have ideal performance or quality. Be sure you're running at least the Windows 10 October 2020 Update (20H2), which is the minimum supported OS release for Windows Mixed Reality end users to run OpenXR applications.To start developing OpenXR applications for immersive Windows Mixed Reality headsets: Getting started with OpenXR for Windows Mixed Reality headsets If you're using the emulator, the emulator image will reset each time you start it, and so your best bet is to just make sure that you have the latest version of the HoloLens 2 emulator image.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |