A Windows Runtime Component for hosting Windows Holographic apps built with Javascript and WebGL
APACHE-2.0 License
Stunning work by some of the folks at MS who have put together their vision for what this library should be. The result is nearly identical, so I'm recommending their library over this one. https://github.com/microsoft/holojs
A C++ Windows Runtime Component for hosting Windows Holographic apps built with Javascript and WebGL.
To provide a familiar environment for web developers who are interested in holographic development for Microsoft HoloLens and Windows Holographic.
libEGL.dll
and libGLES.dll
were compiled using Microsoft's fork of ANGLE with support for Windows Holographic
This project is very experimental, and as such I've taken some somewhat novel approaches to some difficult problems. Nothing provided here is recommended for production environments at this point.
HolographicJS is built atop large open source efforts, including:
The goal of this project is to achieve rendering holograms using Javascript with minimal or no adjustments to existing 3D libraries. Where required, HoloLens specific solutions should be employed.
HolographicJSTest
app on your HoloLens or HoloLens emulator
app.js
is a demonstration of a plain holographic WebGL app in JSapp.three.js
is a work in progress demonstration of ThreeJS supportThis is an example of how HolographicJS can be used within a Universal Windows app.
// Called when the CoreWindow object is created (or re-created).
void App::SetWindow(CoreWindow^ window)
{
window->VisibilityChanged +=
ref new TypedEventHandler<CoreWindow^, VisibilityChangedEventArgs^>(this, &App::OnVisibilityChanged);
window->Closed +=
ref new TypedEventHandler<CoreWindow^, CoreWindowEventArgs^>(this, &App::OnWindowClosed);
try {
holographicJS = ref new Host(window);
}
catch (Exception^ e) {
OutputDebugString(e->Message->Data());
}
}
// Initializes scene resources
void App::Load(Platform::String^ entryPoint)
{
holographicJS->RunScript(L"app.js");
}
// This method is called after the window becomes active.
void App::Run()
{
while (!mWindowClosed)
{
if (mWindowVisible)
{
CoreWindow::GetForCurrentThread()->Dispatcher->ProcessEvents(CoreProcessEventsOption::ProcessAllIfPresent);
holographicJS->ProcessNextTask();
}
else
{
CoreWindow::GetForCurrentThread()->Dispatcher->ProcessEvents(CoreProcessEventsOption::ProcessOneAndAllPending);
}
}
}
In no particular order: