Intro to StereoKit VR Library for C#

VR Developer Tutorials

StereoKit is an easy-to-use open-source mixed reality library for building HoloLens and VR applications with C# and OpenXR. In case the terms HoloLens, VR and OpenXR are unfamiliar, it will quickly be explained at the end of the article.

According to their documentation, “StereoKit prioritizes mixed reality application development above all else! This allows us to focus on features such as a first-class mixed reality input system, fast performance by default even on mobile devices, quick iteration time on-device, and a runtime asset pipeline that lets users and developers load real assets from the filesystem. All of this and more are packaged in a terse API that’s well documented, easy to learn, and easy to write.”

StereoKit is ready to use, but still early at an early stage in its development life. You can keep track of them on Twitter for development news and and updates or check their blog for more substantial updates. Can’t find a feature you need for your project? Request it on the issues page, and they promise to “prioritize getting you up and running!”

StereoKit for C# Features

Some features of StereoKit VR library for C# developers include:

  • Supports platforms such as HoloLens 2, Oculus Quest, Windows Mixed Reality, Oculus Desktop, SteamVR, Varjo, Monado Linux, and OpenXR.
  • StereoKit includes a flat screen mode with input emulation for easy development
  • StereoKit builds applications to devices in seconds.
  • Easy access to mixed reality inputs such hands and eye.
  • Easy User Interface and interactions.
  • Model formats include .gltf, .glb, .obj, .stl, ASCII .ply, procedural
  • Texture formats include .jpg, .png, .tga, .bmp, .psd, .gif, .hdr, .pic, equirectangular cubemap, procedural.
  • Runtime asset loading.
  • Physics.
  • Performance-by-default instanced render pipeline.

To get started with StereoKit, follow the guide available here.

The StereoKit library can be found on GitHub.

Additional Information on Terms In This Article

  • Microsoft HoloLens are a pair of mixed reality smart glasses. HoloLens runs on the Windows Mixed Reality platform.
  • Virtual reality (VR) is a simulated experience that can be similar to or completely different from the real world.
  • OpenXR is an open royalty-free API standard that provides engines with native access to a range of devices across the mixed reality spectrum.
  • More information on Varjo can be found here
  • More information on Oculus Quest can be found here
  • More information on SteamVR can be found here
Hannes DuPreez
Hannes DuPreez
Ockert J. du Preez is a passionate coder and always willing to learn. He has written hundreds of developer articles over the years detailing his programming quests and adventures. He has written the following books: Visual Studio 2019 In-Depth (BpB Publications) JavaScript for Gurus (BpB Publications) He was the Technical Editor for Professional C++, 5th Edition (Wiley) He was a Microsoft Most Valuable Professional for .NET (2008–2017).

More by Author

Must Read