HoloLens Development Notes-Unity Development Overview using Unity Development Overview

Source: Internet
Author: User
Tags unity 5


Unity Technical Preview for HoloLens the latest release: Beta 24, posted on 09/07/2016

Before you start using unity to develop HoloLens apps, make sure you've installed the necessary tools, including Unity HoloLens Technical Preview. The Unity HoloLens Technical Preview is built based on the Unity 5.4 Beta release, and it's always a regular check for version updates.

Using unity is the quickest way to build HoloLens holographic applications. It is recommended that you take the time to learn the Unity Starter tutorial, and if you lack resource footage, you can get to the unity Asset store. Once you have a basic understanding of the unity engine, visit holographic Academy to learn how to develop HoloLens applications. Remember to get the latest knowledge and solutions from the Unity Official forum.

Adding holographic capabilities and inputs adding holographic power and input to your application

Standard Unity object components can be used directly, such as cameras, where the camera's position is automatically updated as people move around the world.

You can add features that Windows holographic supports to your app, such as gesture recognition and voice input, through Unity's built-in APIs.

The core features for holographic applications are exposed to developers in a way that is consistent with other unity APIs:

    • Camera Cameras

    • Gaze gaze

    • Gestures gestures

    • Voice input speech

    • World Anchor Space Anchor

    • Persistence scene hold

    • Spatial sound

    • Spatial mapping Mapping

Other features used by many holographic applications are also exposed to unity applications:

    • Shared holographic experiences scene sharing

    • locatable camera using cameras

    • Focus Point Spotlight

    • Tracking Loss tracking Lost

    • Keyboard Keyboard input

Configuring a Unity Project for HoloLens Configuring unity Projects

For HoloLens, Unity needs to change very few project configurations, and each scene and every project need to be configured again.

Per Scene Settings configuration Scenario

The unity scene uses the camera component to handle head tracking and real-time rendering. We don't have to customize the camera components, just configure the system components. For HoloLens, there are only a few changes to make:

    1. Check the main camera main cameras

      1. Open the inspector and set the transform location to 0,0,0. So the user's head starts at the world origin.

      2. Change the Clear Flags value to Solid Color

      3. Change Background color to RGBA 0,0,0,0

      4. Change the Clipping planes-near value to the recommended value 0.85

If you delete the main camera and create a new one, make sure your camera is marked as Maincamera

Per Project Settings Configuration item

For apps that need to use HoloLens-specific features, you need to enable the corresponding capabilities in the project list. Unity can also launch app capabilities, which can be set under player Settings > Windows Store > Publishing Settings > Capabilities. The common API correspondence capabilities of holographic applications are as follows:

Capability API ' s requiring capability
WebCam Photocapture,videocapture
Spatialperception Surfaceobserver, Spatialanchor
Microphone Videocapture, Dictationrecognizer, Grammarrecognizer, and Keywordrecognizer
Pictureslibrary/videoslibrary/musiclibrary Photocapture, Videocapture

You will also need to specify the Unity project export platform for the Universal Windows platform app.

    1. Select File > Build Settings ...

    2. Select Windows Store from the list of platforms

    3. Set the SDK to Universal

    4. Set Build Type to D3D

Because for HoloLens, high frame rate is very important, so we want to set the project picture quality to fastest.

    1. Check Edit > Project Settings > Quality

    2. Under the Windows Store icon drop-down box, select fastest

Finally, we need to let unity know that our application is a HoloLens holographic application, not a 2D application, so we need to add HoloLens to the VR device list.

    1. Open the Player Settings

    2. Select Settings for Windows Store tab

    3. Expand Other Settings

    4. In the Rendering section, check the virtual Reality supported Radio box and confirm that Windows holographic is in virtual Reality in the Devices list

Unity Documents Reference Documentation

In addition to the documentation provided by the Windows Developer Center, Unity also provides installation documentation for Windows holographic and HoloLens. The documentation provided by unity consists of two main parts:

    1. Unity Script Reference

    • This part of the document contains the details of the API provided by unity

    • can be accessed from the Unity Editor Help > Scripting Reference Menu

Unity Handbook
  • Manuals are designed to help us learn how to use unity, from simple to advanced techniques

  • Can be from the Unity editorHelp > ManualMenu Access gh.dokee.cn/article/content-2292769-34004.html
    Gh.dokee.cn/article/content-2292768-34004.html
    Gh.dokee.cn/article/content-2292766-34004.html
    Gh.dokee.cn/article/content-2292765-34004.html
    Gh.dokee.cn/article/content-2292764-34004.html
    Gh.dokee.cn/article/content-2292763-34004.html
    Gh.dokee.cn/article/content-2292762-34004.html
    Gh.dokee.cn/article/content-2292761-34004.html
    Gh.dokee.cn/article/content-2292760-34004.html
    Gh.dokee.cn/article/content-2292759-34004.html
    Gh.dokee.cn/article/content-2292758-34004.html
    Bbs.open.qq.com/thread-15334805-1-1.html
    Bbs.open.qq.com/thread-15335348-1-1.html
    Bbs.open.qq.com/thread-15335576-1-1.html
    Bbs.open.qq.com/thread-15335715-1-1.html
    Http://bbs.open.qq.com/thread-15335916-1-1.html
    Http://bbs.open.qq.com/thread-15335876-1-1.html
    Http://bbs.open.qq.com/thread-15336398-1-1.html
    Http://bbs.open.qq.com/thread-15336484-1-1.html
    Http://bbs.open.qq.com/thread-15336547-1-1.html
    Http://bbs.open.qq.com/thread-15336614-1-1.html
    Http://bbs.open.qq.com/thread-15336697-1-1.html
    Http://bbs.open.qq.com/thread-15336806-1-1.html
    Http://bbs.open.qq.com/thread-15340763-1-1.html
    Www.baiyewang.com/s4209086.html
    http://bl.gamebbs.qq.com/forum.php?mod=viewthread&tid=11675819
    Http://bbs.open.qq.com/thread-15343974-1-1.html
    Http://bbs.open.qq.com/thread-15344107-1-1.html
    http://caimi68.lofter.com/post/1e3e0a7a_bbb5392
    http://caimi68.lofter.com/post/1e3e0a7a_bbb539f
    http://caimi68.lofter.com/post/1e3e0a7a_bbb539e
    http://caimi68.lofter.com/post/1e3e0a7a_bbb539d
    http://caimi68.lofter.com/post/1e3e0a7a_bbb539c
    Http://caimi68.lofter.com/post/1e3e0a7a_bbb53a0
    Http://caimi68.lofter.com/post/1e3e0a7a_bbb53a1
    Http://caimi68.lofter.com/post/1e3e0a7a_bbb53a2
    Http://caimi68.lofter.com/post/1e3e0a7a_bbb53a4
    Http://bbs.open.qq.com/thread-15345770-1-1.html
    Http://bbs.open.qq.com/thread-15345813-1-1.html
    Http://bbs.open.qq.com/thread-15345854-1-1.html
    Http://bbs.open.qq.com/thread-15345888-1-1.html
    Http://bbs.open.qq.com/thread-15345937-1-1.html
    Http://bbs.open.qq.com/thread-15346013-1-1.html
    Http://bbs.open.qq.com/thread-15346046-1-1.html
    Http://bbs.open.qq.com/thread-15346098-1-1.html
    Http://bbs.open.qq.com/thread-15346138-1-1.html
    Http://bbs.open.qq.com/thread-15346194-1-1.html
    Http://bbs.open.qq.com/thread-15346240-1-1.html
    Http://bbs.open.qq.com/thread-15346345-1-1.html
    http://g.jandan.net/s/6319
    http://g.jandan.net/s/6320
    http://g.jandan.net/s/6321
    http://g.jandan.net/s/6322
    http://g.jandan.net/s/6323


HoloLens Development Notes-Unity Development Overview using Unity Development Overview

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.