Code Monkey home page Code Monkey logo

iyi's Introduction

iYi

This system is for animating the face of an avatar. It's convenient for VTuber or creating animation with your avatar. This system cooperates with iYi FaceTracker on iOS.

Flow of the system

First of all, you need to build and install iYi FaceTracker into your iPhone. It sends the tracked face data to your computer through a network (UDP). Then the Unity application made with this repository receives the data. Finally, you can animate an avatar using the tracked data.

First step with the sample class

  1. Prepare an avatar with BlendShape named values in ARKitBlendShapeLocation
  • AvatarAnimator class changes values having the same name of ARKitBlendShapeLocation and the BlendShape
  • ARKitBlendShapeLocation is a list of keys of the data from ARKit
  1. Add IyiServer on a GameObject
  2. Attach AvatarAnimator on a GamaObject (note: this class is a sample. I recommend to write your new class or modify the class because it is created from my personal dirty class)
  3. Set meshes with BlendShape to Blend Shapes, head bones of your avatar to Head Bones, the eye bones to Left Eye and Right Eye
  4. Run iYi FaceTracker on your iPhone
  5. Run the Unity project on your computer

IyiServer class

It receives data from iYi FaceTracker. And the parsed data is in IyiServer.faceData.

For example, the Update() method in your class might access like below.

var eyeBlinkLeft = GetComponent<IyiServer>().faceData.data[EyeBlinkLeft];

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.