Skip to content
This repository has been archived by the owner on Mar 21, 2023. It is now read-only.

akihiro0105/MixedReality-SpectatorView

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spectator View

Spectator View is an augmented reality product that enables viewing HoloLens experiences from secondary devices. Spectator View has multiple configurations and supports a variety of scenarios from filming quick prototypes to producing keynote demos.

Samples

The Spectator View repository contains multiple sample projects. To see how to set up samples go here. To add Spectator View to your own project, see below.

Getting started with your own project

Obtaining the code

To build the Microsoft.MixedReality.SpectatorView Unity package, you will need the following:

  1. Windows PC
  2. Visual Studio 2019 installed on the PC
    • Universal Windows Platform development tools (installed through visual studio installer)
    • Desktop development with C++ tools (installed through visual studio installer)
  3. Windows 10 SDK (10.0.18362.0)
  4. Git installed on the PC and added to your PATH variable
  5. NuGet installed on the PC and added to your PATH variable

Grab external dependencies (optional)

The below dependencies are optional but should be obtained if they are desired for video camera filming.

  1. Download the Azure Kinect Sensor SDK
  2. Download the Azure Kinect Body Tracking SDK
  3. Download Blackmagic design's Desktop Video & Desktop Video SDK from here
    • Search for Desktop Video & Desktop Video SDK in "Latest Downloads" (Note: 10.9.11 is the current version used in the SpectatorView.Compositor.dll. Newer versions may contain breaks.)
    • Extract downloaded content to a external\Blackmagic DeckLink SDK 10.9.11 (make sure this path matches the path found in )

There are currently two ways to consume the com.microsoft.mixedreality.spectatorview.* Unity package. You can either build the package and generate a folder containing all project content to share with your team or you can add the MixedReality-SpectatorView codebase as a submodule to your project.

Build a package to share with your team

  1. Clone the MixedReality-SpectatorView repository.
  2. Checkout your desired branch (master).
  3. Run tools\scripts\CreateUnityPackage.bat in an administrator cmd window.

    Note: It may take a while to build external dependencies for Spectator View's native components the first time this script is run.

  4. Copy the generated packages\com.microsoft.mixedreality.spectatorview.* somewhere in/near your project (don't place the package inside your Unity project's Assets folder).
  5. Add a reference to the com.microsoft.mixedreality.spectatorview.* folder to your Unity project's Package/manifest.json file. For more information on referencing a local Unity package, see here.

Referencing MixedReality-SpectatorView as a submodule

  1. Add the MixedReality-SpectatorView repository as a submodule to your preexisting git repository.
  2. Checkout your desired branch (master).

    Note: It may take a while to build external dependencies for Spectator View's native components the first time this script is run.

  3. Run tools\scripts\CreateUnityPackage.bat in an administrator cmd window.
  4. Add a reference to the submodule folder src/SpectatorView.Unity/Assets in your Unity project's Package/manifest.json file. For more information on referencing a local Unity package, see here.

Note 1: Creating a unity package is only supported on PCs. You can prepare the repo on Mac for building the iOS example applications by installing powershell and running tools\scripts\SetupRepository.ps1.

Note 2: If your development setup does not allow for symbolic links, running tools\scripts\CreateUnityPackage.bat -HardCopySymbolicLinks will replace symbolic links in the project with copied file content. This should allow developers to generate unity packages, but it will make it more difficult to edit and contribute submodule changes.

Detailed Unity Setup

For more information on setting up a Spectator View project after obtaining the com.microsoft.mixedreality.spectatorview.* Unity package, see the following pages:

Architecture

For more information on Spectator View's architecture, see here.

Debugging

For more information on debugging Spectator View, see here

Filing feedback

The easiest way to file feedback is by opening an issue. When filing feedback, please include the following information (when applicable):

  1. Whether you're using a HoloLens or HoloLens 2 device
  2. Development PC Windows Version
  3. Unity Version
  4. Whether you are building with .Net, Mono or il2cpp in Unity
  5. Visual Studio Version
  6. Windows SDK Version
  7. iOS device type/iOS Version
  8. Mac OS Version
  9. Android device type/Android OS Version
  10. Android Studio Version

In addition to opening issues, Spectator View contributors are active on Stack Overflow. Use the MRTK tag when asking Spectator View related questions.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

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.

About

Mixed reality spectator experiences

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 79.4%
  • C++ 13.7%
  • PowerShell 3.9%
  • ShaderLab 1.7%
  • Java 0.6%
  • C 0.4%
  • Other 0.3%