
MAD Gaze GLOW & GLOW Plus: Head Tracking SDK for Unity
v2021.2 (Release Date: 06/18/2021)
- Updates
[Scene Tracking SDK]
- Standardize application flow for Scene Tracking
- Developers can now customise the Animation and Virtual Planes on their apps.
- Different callbacks among all state changes are now available.
- Two control modes are now available, Arbitary-Placement mode and Center-Placement mode.
View historical changes
Build History
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
- Download the Unity Package here.
- Double Tap on the downloaded package and import the files.
- You are ready to develop Glow-enabled apps.
Basic VR Setup
-
Drag prefab MGSensor from MADGaze/Demo/Prefabs into your scene.
-
Drag prefab MGHeadTracking from MADGaze/Demo/Prefabs into your scene, as a primary camera.
-
Adjust the camera position of MGHeadTracking if necessary.

-
You are now able to control the view via Head Tracking on MAD Gaze GLOW.
Custom Rotation Handling
- Drag prefab MGSensor from MADGaze/Demo/Prefabs into your scene.
- 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]
- Standardize application flow for Scene Tracking
- Developers can now customise the Animation and Virtual Planes on their apps.
- Different callbacks among all state changes are now available.
- 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
- Scene Tracking SDK: This SDK allows user to recognize table-sized plain surface patterns and place the target to the tracked surface.
- Updates
- All SDK: Support USB Connection with MAD Gaze Adapters.
v1.1.0 (Release Date: 07/10/2020)
- First Release
- Head Tracking SDK: This SDK allows users to control the application via operating with head rotation.
v1.0.0 (Release Date: 06/29/2020)
- First Release
- Camera SDK: This SDK allows users to access the camera with codes.
Disclaimer
This library is licensed under the MAD Gaze - Terms of Use.