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

Question about transformation of normal vectors in Lesson5 #123

Closed
TravisRoad opened this issue Jan 30, 2023 · 2 comments
Closed

Question about transformation of normal vectors in Lesson5 #123

TravisRoad opened this issue Jan 30, 2023 · 2 comments

Comments

@TravisRoad
Copy link

Instead of multiplying by the matrix itself, the proper method is to use the transpose of the matrix’s adjoint.

$(adj(M))^T$

I'm reading Real-Time Rendering 3rd, and I saw this line in the section 4.1.7 Normal Transform. It's different from the content of the lesson5.

There is a widely-known fact:

  • If we have a model and its normal vectors are given by the artist AND this model is transformed with an affine mapping,then normal vectors are to be transformed with a mapping, equal to the transposition of the inverse matrix of the original mapping matrix

Could u explain the difference between the above and yours? Thanks in advance.

@ssloy
Copy link
Owner

ssloy commented Jan 30, 2023

Adjugate and inverse matrices are the same up to a multiplication by a determinant. Which, in its turn, does no action in homogeneous coordinates, so it is really the same thing in our settings.

@TravisRoad
Copy link
Author

Thank you ;D.

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