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

confused about z_axis #84

Open
YunYang1994 opened this issue Sep 17, 2021 · 2 comments
Open

confused about z_axis #84

YunYang1994 opened this issue Sep 17, 2021 · 2 comments

Comments

@YunYang1994
Copy link

YunYang1994 commented Sep 17, 2021

confused about z_axis https://github.com/YadiraF/face3d/blob/2fc26906d159a11398cd3e7a9b3f16b6f8937da3/face3d/mesh/transform.py#L142

# at: a position along the center of the camera's gaze.
# eye: the XYZ world space position of the camera.
z_aixs = -normalize(at - eye)   # look forward

why do you need - ? Maybe z_aixs = normalize(at - eye) is better ?

@lyyiangang
Copy link

@YunYang1994 In OpenGL, the camera direction is in the reversed direction it looking at.
image

more detail in this link

@YunYang1994
Copy link
Author

thanks

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