/Unity-Movement

Body, Eye and Face Tracking code sample.

Primary LanguageC#OtherNOASSERTION

Unity-Movement

Unity-Movement is a package that uses OpenXR’s tracking layer APIs to expose Meta Quest Pro’s Body Tracking (BT), Eye Tracking (ET), and Face Tracking (FT) capabilities. With this package, developers can leverage tracking to populate VR environments with custom avatars that bring the expressiveness of users into the virtual environments that they create.

Requirements

  • Unity 2020.3.42f1 (2020 LTS) or newer installed
  • v46.0 or newer of the Oculus Integration SDK with OVRPlugin set to use OpenXR as backend. Make sure to include the VR and Interaction folders when importing into your project.
  • A project set up with these configuration settings

Licenses

The Unity-Movement package is released under the Oculus License. The MIT License applies to only certain, clearly marked documents. If an individual file does not indicate which license it is subject to, then the Oculus License applies.

Getting Started

First, ensure that all of the requirements are met.

Then, bring this package into the project.

The sample scenes are located under the Samples/../Scenes folders.

Unity Setup

If the new scene or an existing scene doesn’t have a GameObject with the OVRCameraRig component, follow the steps:

  1. From the Hierarchy tab, look for a Main Camera GameObject.
  2. If the Main Camera GameObject is present, right-click Main Camera and click Delete.
  3. In the Project tab, expand the Assets > Oculus > VR > Prefab folder and drag and drop the OVRCameraRig prefab into the scene. You can also drag and drop it into the Hierarchy tab.
  4. On the Inspector tab, go to OVR Manager > Quest Features.
  5. In the General tab, there are options to enable body, face, and eye tracking support. Select Supported or Required for the type of tracking support you wish to add.
  6. Under OVRManager's "Permission Requests On Startup" section, enable Body, Face and Eye Tracking.
  7. The Character (layer index 10), the MirroredCharacter (layer index 11), and HiddenMesh layers must be present in the project.

TextMeshPro is required.

Rendering Quality

Navigate to your Project Settings (Edit->Project Settings...) and click on the "Quality" section. If your project uses URP, then some of these settings might be part the rendering pipeline asset currently in use. The pipeline picked will be shown in the Quality menu.

The following settings are recommended:

  1. Four bones for Skin Weights.
  2. 2x or 4x Multi Sampling Anti Aliasing.
  3. Full resolution textures.
  4. Shadow settings:
  5. Hard and soft shadows.
  6. Very high shadow resolution.
  7. Stable fit.
  8. Shadow distance of 3 meters with cascades. This will allow viewing shadows nearby without experiencing poor quality.
  9. At least one pixel light.

Player Settings

Make sure that the color space is set to Linear.

Build Settings

In order for the SceneSelectMenu buttons to work, add the scenes located in the Samples folder of the package.

Samples

The project contains several sample scenes. For more information about the samples, read Aura Sample, Hip Pinning Sample, and High Fidelity Sample.

Documentation

The documentation for this package can be found here. The API reference for this package can be found here.