Mixed Reality JS
- Windows 10
- Hololens (Or emulator)
- Visual Studio 2015
Run npm install -g mrjs, then mrjs new your_app_name, then cd your_app_name.
Run mrjs start. Write your three js app in the src/ folder.
Make sure your Hololens development environment is all setup using Microsoft's guides.
To deploy and debug, on emulator or device, run mrjs package, open the HoloJS solution located in the release/ folder in Visual Studio. Change the deployment app from HoloHost to ThreeJSApp (right click ThreeJSApp in Solution Exporer and click "set as StartUp project"). Build > Clean Solution. Build > Rebuild Solution. Select your deployment target (Device, or emulator) in the menu then deploy the ThreeJSApp. You can also utilize the deployment instructions on the HoloJS repo.
- The name of the Universal Windows Application and description / author information should be pulled from the package.json
- Path issues within the UWP need to be addressed. For example, putting a "./" infront of the example app's texture.png url will break the UWP and fail silently. Need to find a solution for that.
- Piping images and other assets into the UWP isn't fully implemented yet.
- I'd like to have a --template option for mrjs new the allows you to select ThreeJS or AFrame as your perfered framework.
- I'd like to have an option for packaging for GearVR, mrjs package --gearvr, that injects the ThreeJS app into a GearVRF application. Need to figure out how difficult running WebGL/ThreeJS will be with GearVRF.