MAD Gaze GLOW & GLOW Plus: Device Control 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

Capabilities

MAD Gaze SDK provides the API Controls which allows you to perform the basic control to your device.


Prerequisite

*This SDK is applicable to both MAD Gaze GLOW and MAD Gaze GLOW Plus model. (Except 3D Mode is only available on MAD Gaze GLOW).

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 2020.2
  • 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.

Device Connection Control

To check if MAD Gaze GLOW / MAD Gaze GLOW PLus is connected. (with permissions provided)

bool isConnected = MadControl.Instance.isGlowConnected();

To check the model of connected smart glasses.

MadControl.DeviceType type = MadControl.Instance.getDeviceType();

if (type == MadControl.DeviceType.GlowPlus) {
	//Do something with MAD Gaze GLOW Plus

} else if (type == MadControl.DeviceType.Glow) {
	//Do something with MAD Gaze GLOW

} else if (type == MadControl.DeviceType.Unknown)  {
   //No connected devices or cannot determine the connected device
   
} 

Brightness Control

Brightness Level: 0 (Almost Dark) - 7 (The Brightest)

Check Screen Brightness

To get the current brightness level of the screen.

//Get the current screen brightness level.
int currentBrightness = MadControl.Instance.getBrightness();

Set Screen Brightness

To set the brightness level of the screen.

//Setting the brightness of the screen at 4. (0-7)
MadControl.Instance.setBrightness(4);

3D Mode Control

*3D Mode is not available on MAD Gaze GLOW Plus.

Check 3D Mode Status

To check if 3D mode is now turned on.

//Check if 3D Mode is now turned on.
bool is3DModeOn = MadControl.Instance.is3DModeOn();

Set 3D Mode Status

To turn on the 3D mode programatically.

//Turn on the 3D Mode
bool isSuccess = MadControl.Instance.turnOn3DMode();

To turn off the 3D mode programatically.

//Turn off the 3D Mode
bool isSuccess = MadControl.Instance.turnOff3DMode();

Gyroscope Calibration

In-App Calibration

To calibrate the gyroscope sensor on smart glasses inside your apps.

This process takes 5 seconds to complete. During the calibration, the device should remain unmoved.

We recommend users to place the smart glasses on a flat surface during calibration.

//Setup a 5-second calibration session. 
MadControl.Instance.startGyroCalibration(
	()=>{
		//Calibration completed.
	},
	() =>{
		//Calibration failed. 
		//Please do not move your device during the calibration.
	}
);

Calibrate with MAD Gaze Connector

To calibrate the gyroscope sensor on smart glasses with MAD Gaze Connector.

MadConnect.Instance.calibrateGyroscope(
   ()=>{
		//Calibration completed. 
   },
   (errorMsg) =>{
		//Calibration failed. 
   }
);

Sample Scene

You can check DeviceControlDemo in MADGaze/Demo/Scenes.


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/05/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

.