Skip to content

Sample HoloLens Unity project for .NET Magic Night (2016-08-09)

License

Notifications You must be signed in to change notification settings

MindTouch/HoloLensChallenge20160809

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HoloLensChallenge20160809

Sample HoloLens Unity project for .NET Magic Night (2016-08-09)

Challenge

  1. Build Visual Studio solution.
  2. Run App in HoloLens Emulator.
  3. Use Gaze to project the cursor onto surfaces.
  4. Use Gesture to make Earth drop and bounce.
  5. Use Gesture to push Earth around.
  6. Use Voice Command to reset Earth position.

Machine Setup

You will need to install several tools and potentially upgrade your version of Windows to be able to develop for HoloLens.

  1. Upgrade to Windows 10 Pro
  2. If you’re Windows running under VMware Fusion
  3. Shutdown your Windows 10 virtual machine
  4. Open the “Virtual Machine Library”
  5. Select your Windows 10 virtual machine
  6. Click “Settings”
  7. Click “Processors & Memory”
  8. Set Memory to 8096MB
  9. Expand “Advanced Options”
  10. Check “Enable hypervisor applications in this virtual machine”
  11. Start your virtual machine up
  12. Make sure Hyper-V is turned On in Windows 10
  13. Click the “Start” button
  14. Type “features” and select “Turn Windows features on or off”
  15. Turn “Hyper-V” on
  16. Install Visual Studio Update 3, HoloLens Emulator, and Unity HoloLens Technical Preview

Creating a Unity Project for HoloLens

  1. Create Unity 3D project
  2. Change coordinate of main camera to x:0 y:0 x:0
  3. Change “Clear Flags” to “Solid Color” and set the Background color to black
  4. Save project and scene as “Main”
  5. Click “Edit” > “Project Settings” > “Quality”
  6. Select “Fastest” as the default level under the Windows Store Logo (green).
  7. Click “Edit” > “Project Settings” > “Editor”
  8. Select “Visible Meta Files” under “Version Control”
  9. Select “Force Text” under “Asset Serialization”
  10. Click “File” > “Build Settings…”
  11. Click “Add Open Scenes” button to add the Main scene
  12. Select “Windows Store” as the Platform
  13. Select “Universal 10” as the SDK
  14. Select “D3D” as UWP Build Type
  15. Check “Unity C# Project”
  16. Click “Player Settings…” 1. Select “Publishing Settings” and under the “Capabilities” section check the following options:
    1. InternetClient
    2. Microphone
    3. SpacialPerception 1. Select “Other Settings” and under the “Rendering” section check “Virtual Reality Supported” and “Use 16-bit Depth Buffers” (see performance optimizations for HoloLens apps) 1. Click “Build”
    4. Create the “App” folder in the project, navigate into the folder and start the build
  17. Inside the “App” folder open the solution (*.sln file) in Visual Studio
  18. Switch architecture to “x86’ (instead of “ARM”)
  19. Run under "HoloLensEmulator" instead of “LocalMachine” as the target runner
  20. Attempt to run the project, it should launch the emulator

Tips & Tricks for Getting Started

  • Keep Visual Studio open and do all your coding there
  • Keep emulator running at all times
  • Use ESC to reset camera position in emulator (more emulator keys)
  • Use W, A, S, D to move
  • Use cursor keys to look up, down, right, and left
  • Use page up/down to move up/down
  • Use a mouse (if you can)
  • Watch some “HoloLens Academy” tutorials

About

Sample HoloLens Unity project for .NET Magic Night (2016-08-09)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published