IxD Lab Final Project (Software Part)
Microsoft Hololens connecting IoT guide
3 min readApr 28, 2017
System Elements
1. A PC with Windonws 10 and Visual Studio 2017 installed
2. Unity 3D with HoloToolkit and JSON Object
3. Microsoft Hololens
4. Particle Photon and its cloud server
Environment Setup
- To be able to connect to Hololens, you must need to have Windows 10 with Visual Studio 2017 installed. The hololen emulator is optional, but if you do want to install it with Visual Studio 2017, please make sure you check this link first.
- Before start to work on project in Unity, make sure you import the HoloToolkit and follow the setup instruction.
Unity Project
In the unity project, you will need to import JSON Object asset in order to read JSON object from the internet.
You will need to create a controller for reading the event. The code is shown below.
Build the Project in Unity
Go to File Build Setting
- Switch to Windows Store, click on Player Setting and do the following setting.
a. Other Settings -> Virtual Reality SDKs
b. Publish Settings -> Internet Client / InternetClient - The setting of build shown below
Deploy in Visual Studio
After build the Visual Studio Solution (.sln), click on it. Visual Studio will load automatically.
- Change the setting to “Release”, “x86” and “Device”
- Click Build -> Deploy Solution (Deploy might fail, make sure Hololens is connected to the computer and is on. Do not run other application while deploy the solution.)
- Click Debug -> Start Without Debugging, the program will start.
- Once it is deployed, you could also run the program in Hololens without connecting computer.
Related Link
For the project overview, please refer to this post.
For the tangible input, please refer to this post.
Reference
JSON Object @ Unity Asset Store