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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kgediya
Copy link

@kgediya kgediya commented Jun 8, 2021

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)

Calculate dynamic scale to augment perspective camera 
Example usage -
  trackedObject.scale.setScalar(originalScale*track.scale)
@michaud
Copy link

michaud commented Sep 1, 2021

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

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

Successfully merging this pull request may close these issues.

3 participants