Skip to content

HoloJS V2

Cristi Petruta edited this page Jul 27, 2019 · 2 revisions

HoloJs V2 is a rewrite of the HoloJs code base, triggered by the desire to extend support to platforms and devices beyond the HoloLens and UWP.

HoloJs V2 brings support for Win32 apps and Windows Mixed Reality VR headsets, while retaining support for the HoloLens and UWP apps.

HoloJs V0 is still available as an archived branch

Improvements from V0

  • WebVR replaced auto-instanced rendering and the holographic camera. Over the last 2 years, WebVR (and soon WebXR) has received native support in most WebGL 3D frameworks (ThreeJs, BabylonJs) and enabling WebVR can be done with a few lines of code. Since auto-instancing is incompatible with certain rendering techniques, we decided to remove it from the next version of HoloJs and provide a WebVR implementation instead.
  • A Nuget package to avoid having to build HoloJs
  • Partial support for Gamepad APIs for access to VR controllers and hands input (HoloLens). Position, orientation and the main button works
  • Improved WebAudio support based on up-to-date LabSound
  • Improved WebGL support based on up-to-date Google ANGLE
  • Improved XmlHttpRequest and Image interfaces
  • More efficient spatial mapping, with continuous updates from the surface observer
  • Script debugging in Win32 hosts through Visual Studio Code. More details
  • Formalize the HoloJs app structure (xrs) and addition of a single file package format for HoloJs apps (xrsx), to simplify sharing. More details
  • A HoloJs app editor and viewer (Spin Make) that is used together with Visual Studio Code for creating and debugging script apps without the need for Visual Studio or compiling code. More details
  • An app - Spin View - for running HoloJs apps on desktop and HoloLens. Available in the Microsoft Store
  • Better samples

Breaking changes from V0

  • The stub DOM implementation has been removed. The reason for the removal is the performance overhead of having a DOM implementation in JavaScript and being very tedious to modify and extend.
  • Spatial anchor export and import has been removed. The underlying Windows APIs are unreliable and have deprecated
Clone this wiki locally