Question: Recall that the normal matrix Mn performs model - view transformations for surface normals ( by 1 transforming them from object spaces to camera spaces
Recall that the normal matrix Mn performs modelview transformations for surface normals by transforming them from object spaces to camera spaces Given a modelview matrix Mmv and a triangle with vertices p p and p in the object space, please: i Write down the normal matrix Mn corresponding to Mmvii Calculate the objectspace normal n of the triangle via np pp p kp pp pk Feel free to use a calculatorprogram to compute the cross products.iii Calculate the cameraspace normal n of the triangle based on cameraspace positions of its vertices. That is np p p p kp p p p k where p i Mmv pi for i under homogeneous coordinatesiv Calculate the cameraspace normal n using the normal matrix Mn and the triangles objectspace normal n from Eq via: n Mn n kMn nk If your calculations are correct, this result should match the one given by Eq
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
