Samsung Gear VR

Prerequisites

InstantVR

Gear VR is supported in InstantVR version 3.2 and higher.

Humanoid Control

Gear VR and the Gear VR controller are supported in Humanoid Control VR, VR+ and Pro packages.

Hardware

Samsung Gear VR Innovator & Consumer versions are supported.

Operating System

The extension supports Samsung Gear VR on Android. Ensure Android is selected as platform in Build Settings.

Setup

pre Unity 2017.2: Virtual Reality Supported needs to be enabled in Edit Menu->Project Settings->Player->Other Settings. Oculus needs to be added to the Virtual Reality SDKs.

Unity 2017.2 and higher: Virtual Reality Supported needs to be enabled in Edit Menu->Project Settings->Player->XR Settings. Oculus needs to be added to the Virtual Reality SDKs.

InstantVR

Oculus needs to be enabled in the Edit Menu->Preferences->Instant VR->Oculus Support.

The script IVR_UnityVR should be added to the character’s GameObject. It is suggested to use one of the MH_VR… prefabs found in the InstantVR/prefabs folder as a starting point.

Humanoid Control

Oculus needs to be enabled in the Edit Menu->Preferences->Humanoid->Oculus Support.

Disabling Oculus Support ensures that no code related to Gear VR is included in the build.

Targets

To enable tracking with Gear VR for an avatar, Gear VR needs to be enabled in the Humanoid Control component.

Head Target

First Person Camera needs to be supported for the Gear VR. For convenience, this option is also found on the Humanoid Control script.

In the editor, it is possible to use a Oculus Rift to test the use of the Gear VR.

Hand Target

The Gear VR Controller needs to be enabled on the Hand Targets for controller support.

Gear VR only supports one controller per headset. The Gear VR controller only supports rotational tracking in combination with a simplified arm model. The tracking quality will therefore be limited.

In the editor, it is possible to use a Oculus Touch to test the use of the Gear VR Controller.

Gear VR Controller models are shown in the scene when Humanoid Control->Settings->Show Real Objects is enabled. These models can be moved in the scene to place the controllers to the right position relative to the hands of the avatar. A reference to these transforms is found in the Tracker Transform field.