Skip to content

ahmed-shehata/sparkar-wow-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spark AR - WoW lib

Description

Adds the WoW factor to any Spark AR SceneObject.

Usage

const WOWLib = require('sparkar-wow-lib');

...

const Scene = require('Scene');
const FaceTracking = require('FaceTracking');

...

const hatObject = Scene.root.find('hat');
const mouth = FaceTracking.face(0).mouth;

// Needs to be configured using mouth from FaceTracking
WOWLib.configure(mouth);

// WOWLib.addWowFactor(sceneObject, minScale, maxScale)
// sceneObject : any object from the Scene
// minScale: minimum scale the object should have when scaling down
// maxScale: maximum scale the object should have when scaling up

WOWLib.addWowFactor(hatObject,0.05,0.1);

Demo

Spark AR WOW Lib

About

Adds the WOW factor to your Spark AR Effects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published