spite / FaceMeshFaceGeometry

FaceMeshFaceGeometry for FaceMesh
MIT License
405 stars 63 forks source link

Updated face.js to export scale data as well #7

Open kgediya opened 3 years ago

kgediya commented 3 years ago

Calculate dynamic scale to augment perspective camera Example usage -

 trackedObject.position.copy(track.position)
 trackedObject.rotation.setFromRotationMatrix(track.rotation)
 trackedObject.scale.setScalar(originalScale*track.scale)
michaud commented 3 years ago

tried this and it works well. Maybe the solution should be more in the spirit of the OG code and integrated in the class?