Follow this workflow to get started with HoloLens development. This will help you set up a base HoloLens project and learn how to build and deploy your project to the HoloLens from Unity using Visual Studio. **Note**: when given a choice between the HoloLens applications or mixed reality applications, follow the instructions for HoloLens applications.
Follow this guide to get started with Android Unity development. This will help you set up a base Android project and learn how to build and deploy your project to an Android device from Unity. The important sections to follow are: Java Development Kit, Android SDK Tools, and Connect the Android SDK and Java Development Kit to Unity. Once the rest of your project is made and you are ready to build and deploy, follow the Building Your Application to a Mobile Device section.
Vuforia Engine is a software platform for creating Augmented Reality apps. Developers can easily add advanced computer vision functionality to any application, allowing it to recognize images and objects, and interact with spaces in the real world.
This guide was adapted from here. You might wish to read the entire article to familiarize yourself with Vuforia, but follow the steps below.
This will allow our Unity app to recognize a 2D image and place a 3D hologram over it. See this for an example.
This will allow our Unity app to recognize a real 3D object and place a 3D hologram over it. See this for an example.
using HoloToolkit.Unity.InputModule; using UnityEngine; public class ToggleableView : MonoBehaviour, IInputClickHandler, IInputHandler { public void OnInputClicked(InputClickedEventData eventData) { } public void OnInputDown(InputEventData eventData) { } public void OnInputUp(InputEventData eventData) { } }
This will let us toggle between the view of two objects by tapping on the objects.
public GameObject model1; public GameObject model2;
// toggle object views model1.SetActive(!model1.activeSelf); model2.SetActive(!model2.activeSelf);
Accessing the Hololens - The Penn Libraries can provide access to a Microsoft Hololens upon request, contingent on availability. To learn more, contact David Toccafondi, Vitale Digital Media Lab Manager.