Giter Site home page Giter Site logo

Comments (6)

xavierjs avatar xavierjs commented on May 13, 2024 1

This is true this is an error we would add it by tomorrow (the developer who had done this demo is in France)

from jeelizfacefilter.

xavierjs avatar xavierjs commented on May 13, 2024

Hi Andrew,

In the function callbackTrack, executed for each frame, the argument is detectState.
You can get the opening of the mouth with detectState.expressions[0] (expressions is an array because maybe in the futur we will add other expressions). This is a coefficient between 0 (mouth closed) and 1 (mouth open).

However, to amplify the movement, you should apply a smoothstep function to this value for example : var correctedSmoothStep(0.3, 0.6, detectState.expressions[0]).

Currently the makeup is applied on a transparent face mesh, rendered above the face.
I think the best way to scale the mask with mouth mouvement would be to have 2 face meshes, one with mouth closed (like the current one) and the other with the mouth opened and to mix them using the mouth opening coefficient as keyframe coefficients.

from jeelizfacefilter.

andrewdeutsch avatar andrewdeutsch commented on May 13, 2024

Thanks, Xavier, that makes sense. I didn't see the blend file for the mesh in the project demo assets. Ideally I'd start with that for the open mouth mesh. For many other projects you have blend assets available. Am I missing it's location?
Thanks.

from jeelizfacefilter.

andrewdeutsch avatar andrewdeutsch commented on May 13, 2024

thanks!

from jeelizfacefilter.

bjlaa avatar bjlaa commented on May 13, 2024

Hi Andrew,

The football_makeup demo is pushed in the threejs jeelizFaceFilter demos. You'll find the .blend file for the face mesh here.

I'm currently updating the other available demos with the missing Blender assets.

from jeelizfacefilter.

andrewdeutsch avatar andrewdeutsch commented on May 13, 2024

from jeelizfacefilter.

Related Issues (20)

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.