This is a repostiory for the Lunar Module example HoloLens App
Перейти к файлу
microsoft-github-policy-service[bot] e02e42de8d
Auto merge mandatory file pr
This pr is auto merged as it contains a mandatory file and is opened for more than 10 days.
2023-06-13 17:50:00 +00:00
Assets re-adding Lars' ceiling transition shader 2017-07-17 12:55:33 -07:00
External/ReadMeImages Updated image for README. 2018-03-19 17:40:34 -07:00
ProjectSettings [!] lander will not explode when hitting the ceiling, or anything above user eye height 2017-07-17 12:40:13 -07:00
.gitignore Initial commit 2017-07-10 13:54:15 -07:00
LICENSE Initial commit 2017-07-10 13:54:15 -07:00
README.md Update README.md 2017-11-15 14:46:32 -08:00
SECURITY.md Microsoft mandatory file 2023-06-02 19:57:45 +00:00

README.md

Mixed Reality Design Labs

This repo is where Microsoft's Windows Mixed Reality Design team publishes examples and explorations. The goal is to inspire creators and help them to build Mixed Reality experiences. We share sample app projects here that demonstrate how to use various types of common controls and patterns in Mixed Reality. Find out details about common controls and sample apps on https://developer.microsoft.com/en-us/windows/mixed-reality/design

Supported Unity version: 2017.1.0f3

The current supported version of Unity is Unity 2017.1.0f3. If you are looking to have support for previous versions of Unity please check under Releases.

Important: Requires submodule MRDesignLab

As soon as you clone the repo, init and update submodule with git command:

cd MRDesignLabs_Unity
git submodule init
git submodule update

To update the submodules you'll still need to pull from master by either going into the individual submodule directory and doing a git pull or by doing the following command to do pulls on all the submodules:

git submodule foreach git pull

This will add HUX and related tools under Assets/MRDesignLab/ folder

Lunar Module

Lunar Module sample app

Lunar Module is a open-source sample app from Microsoft's Mixed Reality Design Labs, it is a spiritual sequel to the 1979 Atari classic, Lunar Lander. This sample app will demonstrate how to extend Hololens' base gestures with two hand tracking and xbox controller input, reactive objects to surface mapping and plane finding, and simple menu systems. You can use this project's components to create your own mixed reality app experience.

Technical Details

Local Hand Input - Assets/MRDesignLab/HUX/Scripts/Utilities/LocalHandInput.cs - This script provides a convenient way to track left / right hand input in local space relative to the player's head. Once the player taps anywhere in space, that point is treated as the input origin and all translations are reported as X,Y and Z position / velocity in local space. This local translation survives world translations as well (eg, walking forward with your hand extended). Acceleration, clamping and dead zones are also provided.

Local hand input

Simple Menu Collection - Assets/MRDesignLab/HUX/Prefabs/Dialogs/SimpleMenuCollection - Most of Lunar Module's menus are generated by the SimpleMenuCollection.cs script, which extends SimpleMenu.cs class and combines it with ObjectCollection to provide a way to rapidly assemble interfaces.

To use this prefab, drag it into your scene and assign a button prefab. Then enter the desired button names and targets into the inspector editor. Buttons will be instantiated at runtime and assigned to the specified Input Receivers. (For an example of an Input Receiver, check out Assets/MRDesignLab_LunarModule/Scripts/Screens/StartupScreen.cs.) SimpleMenu.cs and SimpleMenuCollection.cs could easily be extended to include transitions, animations and so on.

Simple menu collection

Hand Coach - Assets/MRDesignLab_LunarModule/Prefabs/HandCoach - this prefab enables devs to create standardized tutorials for their apps. It provides an interface for demonstrating left or right handed gestures, including directional motion. Visual options include ghosting, highlighting and color changes for lost tracking.

Hand coach

More from Mixed Reality Design Labs

Common Controls Examples: https://github.com/Microsoft/MRDesignLabs_Unity

Periodic Table of Elements sample app: https://github.com/Microsoft/MRDesignLabs_Unity_PeriodicTable

Contributing

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.