All Projects → pofulu → sparkar-smoother

pofulu / sparkar-smoother

Licence: other
Make object smoothly follow facial features with object's naming.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to sparkar-smoother

sparkar-safety-glass-script
script version of sparkar-safety-glass by Josh Beckwith
Stars: ✭ 15 (-25%)
Mutual labels:  spark-ar, sparkar, spark-ar-studio, spark-ar-creators
spark-ar-creators
List of 9500 (and counting) Spark AR Creators. Open an issue or contact me if you want to be added.❤️
Stars: ✭ 122 (+510%)
Mutual labels:  spark-ar, sparkar, spark-ar-studio, spark-ar-creators
sparksl-noise
minimum proof of concept about procedural noise generation in SparkAR's shader language (SparkSL).
Stars: ✭ 16 (-20%)
Mutual labels:  sparkar, spark-ar-studio, spark-ar-creators
sparkar-volts
An extensive non-reactive Typescript framework that eases the development experience in Spark AR
Stars: ✭ 15 (-25%)
Mutual labels:  spark-ar, spark-ar-studio, spark-ar-creators
spark-ar-boilerplate
A boilerplate Spark AR project with Webpack
Stars: ✭ 50 (+150%)
Mutual labels:  spark-ar, sparkar, spark-ar-studio
spark-ar-physics
A helper module for connecting Spark AR with physics libraries
Stars: ✭ 28 (+40%)
Mutual labels:  spark-ar, spark-ar-studio
Rabbit-Coder
Rabbit Coder is an augmented reality puzzle game based on coding, built with Spark AR Studio
Stars: ✭ 28 (+40%)
Mutual labels:  spark-ar, spark-ar-studio
sparkar-pixelate-shader
simple script-only pixelate shader with Facebook SparkAR.
Stars: ✭ 35 (+75%)
Mutual labels:  spark-ar, spark-ar-studio
SparkAR-Creators
The right place for SparkAR creators from around the globe. Exchange resources on SparkAR, assets, patches and scripts to make your favourite filters for Instagram and Facebook. Create your spark here!
Stars: ✭ 24 (+20%)
Mutual labels:  sparkar
spark-convolution-patch
Convolution and other super-patches (blur, sharpen)
Stars: ✭ 74 (+270%)
Mutual labels:  spark-ar
SparkAR-v85-Templates
Default Spark AR v85 compliant templates.
Stars: ✭ 21 (+5%)
Mutual labels:  sparkar
spark-bloom
Bloom effect in Spark AR
Stars: ✭ 16 (-20%)
Mutual labels:  spark-ar
spark-chromakey
youtu.be/vpuobkf-55i
Stars: ✭ 13 (-35%)
Mutual labels:  spark-ar
spark-color-adjust
Color adjustment patches for Spark AR
Stars: ✭ 43 (+115%)
Mutual labels:  spark-ar
spark-particle-uv
Demo of how to sample the camera texture and map it to particles.
Stars: ✭ 25 (+25%)
Mutual labels:  spark-ar
whatareyou-filter
📷 roulette face effect template
Stars: ✭ 36 (+80%)
Mutual labels:  spark-ar
Spark-Ar
Resources for Spark AR
Stars: ✭ 43 (+115%)
Mutual labels:  sparkar

Smoother

index

Smoother is a Spark AR tool to let you make object follow facial feature with exponential smooth WITHOUT Any Additional Patch or Script.

Install

Import

  1. Download Smoother.js (Right click and Save as)

  2. Drag/Drop or import it to Spark AR

  3. (Optional) Load in the required modules

    const Smoother = require('./Smoother');
    // Your script...
  4. You can also Click Here to Download a Sample Project.

npm

  1. Add package with yarn or npm

    yarn add sparkar-smoother

    or

    npm i sparkar-smoother
  2. Load in the required modules. If you use webpack to transpile code, you must import this module.

    const Smoother = require('sparkar-smoother');
    // Your script...

Usage

This tool make object follow head by naming, so you don't need to add any Patch or write any code. All you need to do is naming your scene object.

The name should follow this pattern: face<index> -s<ms> [<feature>] [-noR]

  • index: 0-5. Spark AR supports detection of up to 5 faces.
  • ms: Smooth milliseconds, the minimum valid value is 0.
  • feature: Click here to look up supported feature and keyword.
  • noR: Follow position only, without rotation.

There are some naming example:

Name Pattern Description
face0 -s500 Follow the face of index 0 with exponential smooth 500 millisecond.
face1 -s300 Follow the face of index 1 with exponential smooth 300 millisecond.
face2 -s0 Follow the face of index 1 without any smooth exponential smooth.
face3 -s0 -noR Follow the face of index 3 position only, excluding rotation.
face3 -s50 eyeL Follow the left eye of face 3 with exponential smooth 50 millisecond.
face4 -s50 eyeR Follow the right eye of face 4 with exponential smooth 50 millisecond.
face4 -s20 mouth Follow the mouth of face 4 with exponential smooth 50 millisecond.

Please Note that you may need to add the max number of Face Tracking manually for detect more than one face: Project > Edit Properties > Capabilities

Facial Feature Keywords

Keywords Description
eyeL Left Eye
eyebowL Left Eyebow
eyeLOC Left Eye Outside Corner
eyelidLU Left Eyelid Upper
eyeR Right Eye
eyebowR Right Eyebow
eyeROC Right Eye Outside Corner
eyelidRU Right Eyelid Upper
mouth Mouth
mouthlipU Mouth Upperlip
mouthlipD Mouth Lowerlip
mouthLC Mouth Left Corner
mouthRC Mouth Right Corner
foreheadT Forehead top

Additional

  • You can change all of these keywords in the CONFIG field of source code.
  • By default if the face of specific index in not detected, the corresponding scene object will be hidden. You can set it in the CONFIG field of source code.
  • You can set up Smoother.enable in your script to toggle smooth effect.

Donations

If this is useful for you, please consider a donation🙏🏼. One-time donations can be made with PayPal.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].