MAD Gaze GLOW & GLOW Plus: Head Tracking SDK for Unity

v2021.2 (Release Date: 06/18/2021)

  • Updates [Scene Tracking SDK]
  1. Standardize application flow for Scene Tracking
  2. Developers can now customise the Animation and Virtual Planes on their apps.
  3. Different callbacks among all state changes are now available.
  4. Two control modes are now available, Arbitary-Placement mode and Center-Placement mode.


Build History

Date Package File (.unitypackage) Demo Project
06/18/2021
02/10/2021
08/19/2020
07/10/2020

Capabilities

Head Tracking SDK for Unity provides VR View that allow user to control the application via operating with head rotation.


Prerequisite

*This SDK is applicable to both MAD Gaze GLOW and MAD Gaze GLOW Plus model.

The application shall be

  • an Android application
  • with Target SDK at 27 (Android 8.1 ‘Oreo’)
  • with Minimum SDK at 27 (Android 8.1 ‘Oreo’)
  • with Landscape Left/Right orientation

Tested Unity Editor Versions

  • Unity 2019.4.1
  • Unity 2019.3.12
  • Unity 2019.2.3

Getting Started

  1. Download the Unity Package .
  2. Double Tap on the downloaded package and import the files.
  3. You are ready to develop Glow-enabled apps.

Basic VR Setup

  1. Drag prefab MGSensor from MADGaze/Demo/Prefabs into your scene.

  2. Drag prefab MGHeadTracking from MADGaze/Demo/Prefabs into your scene, as a primary camera.

  3. Adjust the camera position of MGHeadTracking if necessary.

  4. You are now able to control the view via Head Tracking on MAD Gaze GLOW.

Custom Rotation Handling

  1. Drag prefab MGSensor from MADGaze/Demo/Prefabs into your scene.
  2. Insert following code snippets in Update() in your GameObject.
void Update()
{       
	if (MADSensorManager.Instance.IsSensorEnabled()){
		Quaternion rotation = SplitUSBSensor.Instance.getCameraRotation();
		
		if(rotation != null){
			this.transform.localRotation = rotation;
		}
	}
}

Sample Scene

You can check HeadTrackingDemo in MADGaze/Demo/Scenes.


Troubleshooting

  • Q: Why the permission dialog never prompt on my Android 10 device?

    It is because the native bug doesn’t allow you to prompt the permission dialog on Android Q devices with Target SDK newer than 28. You have to set Target SDK at 27 or below in order to make it work.


Changelog

v2021.2 (Release Date: 06/18/2021)

  • Updates [Scene Tracking SDK]
  1. Standardize application flow for Scene Tracking
  2. Developers can now customise the Animation and Virtual Planes on their apps.
  3. Different callbacks among all state changes are now available.
  4. Two control modes are now available, Arbitary-Placement mode and Center-Placement mode.

v2021.1 (Release Date: 02/10/2021)

v1.3.0 (Release Date: 08/19/2020)

  • First Release
    1. : This SDK allows user to recognize table-sized plain surface patterns and place the target to the tracked surface.
  • Updates
    1. : Support USB Connection with MAD Gaze Adapters.

v1.1.0 (Release Date: 07/10/2020)

  • First Release
    1. : This SDK allows users to control the application via operating with head rotation.

v1.0.0 (Release Date: 06/29/2020)

  • First Release
    1. : This SDK allows users to access the camera with codes.

Disclaimer

This library is licensed under the

.