Virtual Reality (VR)
Virtual reality (VR) is a fully computer-generated environment that people immerse themselves in through a headset and operate with controllers or their hands. The standard for devices and programs is called OpenXR.
Virtual reality (VR) is an environment generated entirely by the computer that people immerse themselves in with a headset. The device tracks the head and the controllers or hands and draws the world anew for each eye. The real surroundings are blocked out.
How it differs: VR, AR, mixed reality
- VR replaces the surroundings with virtual ones.
- Augmented reality (AR) places virtual content over the real surroundings, for example on a phone.
- Mixed reality (MR) is the umbrella term for the spectrum in between: content that relates to the real surroundings and reacts with them. Microsoft uses "mixed reality" for devices such as HoloLens 2 and immersive VR headsets on a PC alike.
VR from a .NET point of view
VR applications are usually made in a game engine such as Unity or Unreal Engine. In Unity, you write the behavior in C#, the language the rest of the .NET ecosystem uses as well. The engine draws; the scripts control objects and input.
So that not every headset needs a way of its own, there is OpenXR, an open and royalty-free standard of the Khronos Group. It gives engines access to devices across the whole spectrum of mixed reality. Microsoft explicitly points out that OpenXR itself is not an engine: it enables engines such as Unity and Unreal to write portable code that accesses the features of each platform. For this, Microsoft offers a Mixed Reality OpenXR Plugin and the Mixed Reality Toolkit (MRTK) for Unity. Which Unity version fits which plugin changes quickly, so always check the current documentation.
Among the special requirements are a high and even frame rate, input in space instead of with a mouse and keyboard, and consideration for people who get dizzy in VR. These are design questions that an ordinary web user interface does not know.
Misconceptions
- VR is not a web user interface. Its tools are engines and device standards, not HTML and Blazor.
- VR is not automatically a game. Training, engineering design, and visualization are further fields.
- An engine does not replace software design. A VR program needs structure, tests, and versioning too.
In the course
The course does not teach you VR: it covers web user interfaces, APIs, the cloud, and architecture with .NET, not a game engine. What helps you with C# scripts in an engine are the basics of the language, for example in K1, module 1.4, the lesson Classes and objects.