Vr Desktop Github

broken image


WebVR is a JavaScript API for creating immersive 3D, Virtual Reality experiences in your browser. Works with the HTC VIVE, Oculus Rift, Windows Mixed Reality. Virtual Desktop is an application that lets you use your computer in VR. You can browse the web, watch movies, Netflix or even play games on a giant virtual screen. It also includes a 360 video player and 360 photo viewer. For Oculus Rift & Rift S only! Virtual Desktop is an.

NOTE: Support for built-in VR integrations will be removed in Unity 2020.1.

The OpenVR (Desktop) package enables support for building applications for OpenVR/SteamVR supported devices. The package is supported through the native virtual reality support in Unity.More information about native virtual reality support in Unity can be found at: https://docs.unity3d.com/Manual/XR.html

To install this package, follow the instructions in the Package Manager documentation.

Github
Github

To enable OpenVR (Desktop) for use in your applications, enable Virtual Reality Support through the XR Settings section of the Player Settings (Edit->Settings->Player) and add OpenVR to the Virtual Reality SDKs list.More detail on the Virtual Reality SDK list can be found here: https://docs.unity3d.com/Manual/VROverview.html

For additional details on using OpenVR with Unity, see the documentation here: https://docs.unity3d.com/Manual/VRDevices-OpenVR.html

Document revision history

DateReason
November 5, 2019Deprecation.
February 4, 2019Updated package name.
April 19, 2018First Official version of OpenVR package.
Spin is a development tool for creating VR and AR JavaScript experiences for Windows PCs, Windows Mixed Reality headsets and the HoloLens. You can create VR experiences in minutes using Spin and Visual Studio Code.
Desktop

To enable OpenVR (Desktop) for use in your applications, enable Virtual Reality Support through the XR Settings section of the Player Settings (Edit->Settings->Player) and add OpenVR to the Virtual Reality SDKs list.More detail on the Virtual Reality SDK list can be found here: https://docs.unity3d.com/Manual/VROverview.html

For additional details on using OpenVR with Unity, see the documentation here: https://docs.unity3d.com/Manual/VRDevices-OpenVR.html

Document revision history

DateReason
November 5, 2019Deprecation.
February 4, 2019Updated package name.
April 19, 2018First Official version of OpenVR package.
Spin is a development tool for creating VR and AR JavaScript experiences for Windows PCs, Windows Mixed Reality headsets and the HoloLens. You can create VR experiences in minutes using Spin and Visual Studio Code.

Setup

  1. Download spin

    Spin is a command line utility. Download the latest release from https://github.com/microsoft/HoloJS/releases and extract it somewhere on your computer.
    Note: While not required, you can add Spin to your PATH environment variable to make invoking it easier. The following examples assume Spin is in the PATH.

Create a Spin app from a ThreeJs template

  1. 'spin new'

    Open a command prompt and run: A new directory is created for the app and a new Visual Studio Code window is opened in the app's directory.
  2. F5 in Visual Studio Code

    In Visual Studio Code, press F5 (Debug -> Start Debugging) to run the app. If a VR headset is connected the app will run in immersive mode, otherwise it will run in a 2D window.
  3. Note: In the absence of a VR headset, you can use the Windows Mixed Reality simulator to view the app in immersive mode. Refer to this link for more information: https://docs.microsoft.com/en-us/windows/mixed-reality/using-the-windows-mixed-reality-simulator

Edit, test and debug with Visual Studio Code

  1. Open the app

    'spin new' automatically opens the newly created app in Visual Studio Code. For existing projects, you simply do 'File -> Open Folder' in Visual Studio Code.
  2. Run the app

    Press F5. The app will start in the VR headset or on the desktop. Spin automatically created a debug configuration (.vscode/launch.json) when the app was created.
  3. Debugger control

    Use the standard debugger controll buttons to pause, continue, step, etc:
  4. Breakpoints

    To set a breakpoint in a running file, you must first open it from the list of loaded scripts. The loaded scripts list is located in the lower side of the debugger panel (Ctrl + Shift + D)
    The list contains all scripts that make the app work, including internal scripts, WebGL framework scripts, etc. Your app's script is app.js
    The app's render function is a good place to put a breakpoint on if you are debugging the animation:
    Note: Adding breakpoints in files from the Explorer panel is not supported yet. As a workaround, insert a temporary 'debugger;' instruction above the line you want to break on.
    Note: Sometimes breakpoints cannot be set and the app will appear hung. There will be error messages in the 'Debug console' panel and the 'faulty' breakpoints appear grayed out:
    The solution is to remove the faulty breakpoints and restart debugging.
  5. Add and remove content

    To add content, copy new files to the app's directory and list their relative paths in the app's JSON file:
    • Add to the 'scripts' array if adding a script file to be executed. Scripts are executed in the order stored in the array.
    • Add to the 'resources' array if adding a resource file that will be loaded by scripts at runtime.

    To remove content, delete files from the directory and remove their entries from the app's JSON file.

Sharing Spin apps

Vr Desktop Github Tutorial

  1. Use the Spin View app from the Microsoft Store to view Spin apps on other devices or the HoloLens.
  2. Distribute the Spin app

    1. As a file
      Create a XRSX file for the app using Spin Make and share it with others:
      spin.exe publish --source [path_to_app_json] --destination [path_to_xrsx_file]
      The app will start in Spin View when opened on the desktop or the HoloLens.
    2. Web hosted
      Upload the app's directory to your website. Create a HTML file with a link to the app's JSON file using the xrs protocol handler, like this: xrs:https://microsoft.github.io/HoloJS/samples/vr-cubes.json. These links open in Spin View automatically.
      To make things easier on the HoloLens, encode the URL (without the xrs: prefix) in a QR code and place it on your web page. Then run Spin View on the HoloLens, gaze to this QR code and say 'scan'. There are example QR codes on the app samples page




broken image