Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we find neckpoints having face coordinates i.e. faceCoo.x, y, z and detectface.rx, ry, rz? #35

Closed
veetechh opened this issue Sep 5, 2018 · 7 comments

Comments

@veetechh
Copy link

veetechh commented Sep 5, 2018

No description provided.

@veetechh veetechh changed the title Can we find neckpoints having face coordinates i.e. faceCoo.x & y and detectface.rx and ry? Can we find neckpoints having face coordinates i.e. faceCoo.x, y, z and detectface.rx, ry, rz? Sep 5, 2018
@xavierjs
Copy link
Member

xavierjs commented Sep 5, 2018

Hi,

You have to:

  • match a 3D model with the user's face like in the Matrix Facefilter tutorial
  • the 3D model is moved with the detectstate
  • you take the coordinates of the point matching the neck for example and you multiply it with the wordmatrix.

I suggest you, before working with this library, to learn basics of 3D programming. You can start here: http://webglacademy.com/ or there: http://learningwebgl.com/blog/?page_id=1217

@veetechh
Copy link
Author

veetechh commented Sep 6, 2018

Thanks a lot

@veetechh
Copy link
Author

veetechh commented Sep 7, 2018

The tutorial was awesome.
how to get coordinates of points matching the neck? and where is the wordmatrix?

@xavierjs
Copy link
Member

xavierjs commented Sep 7, 2018

Hi,

I am sorry but this is not a beginner 3D forum. Your question is not about faceFilter.
I have a lot of work, I put detailed explanation about all detectFace properties, and there are many commented demos to have examples. I don't have time to explain basic 3D concepts like projection or the worldmatrix. You have to learn them by yourself.

@veetechh
Copy link
Author

veetechh commented Sep 7, 2018

okay, sorry & thank you

@veetechh veetechh closed this as completed Sep 7, 2018
@veetechh
Copy link
Author

The script.js here http://webglacademy.com/courses.php?courses=0_1_20_2_3_4_23_5_6_7_10#20
is lagging while scrolling.

@xavierjs
Copy link
Member

Hi,

This is because you are running a very heavy shader (I suppose you are in the last steps and you have clicked on RUN button).
So your resources are so busy that it makes the DOM slow.
In order to force the computer to not fully use the resources for the shader, you can replace window.requestAnimationFrame(animate); on script.js by:

 window.requestAnimationFrame(tickAnimate);

and declare tickAnimate just after animate by:

var tickAnimate=function(timestamp){
   setTimeout(animate.bind(null, timestamp), 5); //5 is short time in ms where the browser is idle so it can refresh easily
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants