Skip to content
This repository has been archived by the owner on Aug 7, 2020. It is now read-only.

LeapMotionInputForMRTK simulates hand inputs for MRTK with Leap Motion

License

Notifications You must be signed in to change notification settings

HoloLabInc/LeapMotionInputForMRTK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notice

Leap Motion Controller is officially supported in MRTK v2.4.0.
It is recommended that you use the official controller.

https://microsoft.github.io/MixedRealityToolkit-Unity/Documentation/CrossPlatform/LeapMotionMRTK.html


LeapMotionInputForMRTK

LeapMotionInputForMRTK simulates hand inputs for MRTK with Leap Motion.

Demo video

Demo video

Prerequisites

Getting Started

1.A. Clone this repository

> git clone git@github.com:HoloLabInc/LeapMotionInputForMRTK.git --recursive
> cd LeapMotionInputForMRTK
> External\createSymlink.bat

Open LeapMotionInputForMRTK project with Unity 2018.4.x.

1.B. Import unitypackage

Create project with Unity 2018.4.x.

Import MRTK v2

Download and import MRTK v2 unitypackages.
(https://github.com/microsoft/MixedRealityToolkit-Unity/releases/tag/v2.3.0)

  • Microsoft.MixedReality.Toolkit.Unity.Foundation.2.3.0.unitypackage
  • Microsoft.MixedReality.Toolkit.Unity.Extensions.2.3.0.unitypackage
  • Microsoft.MixedReality.Toolkit.Unity.Tools.2.3.0.unitypackage
  • Microsoft.MixedReality.Toolkit.Unity.Examples.2.3.0.unitypackage

Import LeapMotionInputForMRTK

Download and import the latest LeapMotionInputForMRTK unitypackage.
(https://github.com/HoloLabInc/LeapMotionInputForMRTK/releases)

2. Import Leap Motion Core Assets

Download "Unity Core Assets" and import to the unity project.
(https://developer.leapmotion.com/unity/#5436356)

3.A. Open sample scene

Open Assets/LeapMotionInputSimulation/Scenes/SampleScene.unity.

3.B. Setup scenes

MRTK Configuration

Add Leap Motion Input Simulator to Input Data Providers of your MRTK configuration or use LeapMotionMixedRealityToolkitConfigurationProfile.

image

Add LeapXRServiceProvider

Select "Main Camera" in Hirerarchy and add LeapXRServiceProvider component.

LeapXRServiceProvider

Enable Hand Mesh

If you want to enable Hand Mesh, attach HandModelManager script to "Main Camera".
Edit the component like the following picture.
LoPoly Rigged Hand prefabs are in Assets\LeapMotion\Core\Prefabs\HandModelsNonHuman folder.

HandModelmanager

4. Switch platform

In the Build Settings window, switch platform to Universal Windows Platform.

5. Mount Leap Motion on HoloLens (1st gen)

Mount Leap Motion on HoloLens like the following picture.
3D Printable Models

MountedLeapMotion_small

Adjust the offset and tilt values.

image

6. Play in Unity Editor

On your HoloLens, start the Holographic Remoting Player app.

In Unity, select "Window > XR > Holographic Emulation".
Enter the IP address of your HoloLens and press Connect button.

HolographicRemoting

Press Play button in Unity Editor.

Author

Furuta, Yusuke (@tarukosu)

License

MIT

About

LeapMotionInputForMRTK simulates hand inputs for MRTK with Leap Motion

Resources

License

Stars

Watchers

Forks

Packages

No packages published