# Class: VisageAR

## VisageAR

#### new VisageAR()

  VisageAR

### Members

#### initialize

  Initializes Visage AR and sets up rendering and tracking. The video resolution is used for the canvas resolution.

#### loadOccluder

  Loads the occlusion mask in OBJ format and its material in MTL format.

#### loadObject

  Loads the 3D object and adds it to the main scene to be rendered from the given URL and makes it active. The object should be in OBJ format and the material should be in MTL format. The MTL file should have the same name as the OBJ file. See the modeling guide on how to prepare models for use with VisageAR.

#### clear

  Clears the scene, 3D objects, pixels buffer and canvas for displaying the frame

### Methods

#### clearOccluder()

  Clears the current active occlusion mask and removes it from the occlusion scene.

#### startTracking()

  Starts tracking the face and displaying (rendering) any 3D objects loaded using loadObject() function. Object is overlayed on the face.

#### stopTracking()

  Stops tracking.