{{announcement.body}}
{{announcement.title}}

Minimal Required Software for MRTK2 Development for HoloLens 2 and Immersive Headsets

DZone 's Guide to

Minimal Required Software for MRTK2 Development for HoloLens 2 and Immersive Headsets

Here's how to develop software for MRTK2 and HoloLens 2 immersive headsets — with as little code as possible.

· IoT Zone ·
Free Resource

Intro

A short one this time — and codeless too. You see, last Saturday, I gave a workshop for MixUG Netherlands about development with the Mixed Reality Toolkit 2 for immersive headsets with my colleague, partner in crime, and fellow MVP Alexander Meijers. One of the things that came up when preparing for this workshop was what you would actually need to develop with the Mixed Reality Toolkit 2. Since ye olden days of the HoloToolkit, quite a few things have changed — Unity, the minimal OS version, and there's even a new version of Visual Studio. So, I set out to complete a minimal shopping list with a few optional items. Fortunately, our friends over at Microsoft Azure make it quite simple to spin up a totally pristine machine so you don't run into the typical developer machine issues — multiple versions of Visual Studio with different workloads and a myriad of Unity versions — which makes it hard to tell sometimes what is required for what app.

OS Version

Easy one. Windows 10, 1809 or (recommended) 1903. Everything I tested, I tested on Windows 10 Pro.

Visual Studio

You will need Visual Studio 2019 community edition. 2017 will work too but is much slower. Download Visual Studio 2019 community from this link and choose the following workloads:

  • UWP development with optional components USB connectivity and C++ (V142) UWP tools checked
  • Game development with Unity with the optional component 2018.3 64-bit editor unchecked

In images:

Make sure you install Visual Studio before Unity.

Offline Installer

A fun trick — if you want to make an offline installer for the community edition for these particular workloads, open a command prompt after downloading the installer, and type (on one line):

vs_community.exe --layout c:\vsinstaller 
--add Microsoft.VisualStudio.Workload.ManagedGame 
--add Microsoft.VisualStudio.Workload.Universal 
--add Microsoft.VisualStudio.Component.Windows10SDK.IpOverUsb 
--add Microsoft.VisualStudio.ComponentGroup.UWP.VC --lang en-US


In the  c:\vsinstaller, you will then find a complete install 'layout' for all the necessary components. It might be useful if you want to prepare multiple computers.

Unity

2018.4.2f1, taken from ProjectSettings/ProjectVersion.txt in the mrtk_development branch. This particular version can be downloaded directly from this link.

Choose as minimal components

Mind you — this sets you up for HoloLens 2 and Windows Mixed Reality Immersive headsets only.

Optional: HoloLens 2 Emulator

I have already written extensively about it. You can get it here. Be aware that it requires Hyper-V being installed. If you have installed Windows 10 1903, it will run right away. On 180,9 you will need some trickery.

Conclusion

It’s not that hard to get up and running for MRTK2 development for HoloLens 2 and Windows Mixed Reality immersive headsets. And now, you have a nice complete ‘shopping list’ for when you want to prepare your PC.

Topics:
iot ,mrtk2 ,immersive headsets ,ar ,vr ,hololens ,hololens 2 ,minimal code ,low code ,development

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}