Question: I have projection matrix given below. I want you to completely setup the main camera in unity according to projection matrix ( rotation , orientation
I have projection matrix given below. I want you to completely setup the main camera in unity according to projection matrix rotation orientation etc., too. Do not miss them Do the full setup in unity script but If I need to do something manually, describe and explain it clearly. After that, I want you to convert D world point to D pixel coordinate. Then convert the D pixel you just found to D world point coordinate again and check if the initial D world point and your reconstructed D world point are matched. If they are matched, the conversions correct.
The key part of the task is that you will lose depth information while converting D world point to D pixel point. You must be able to obtain correct depth information again while converting D pixel point to D world point.
Key words: world space, camera space, clip space, NDCNormalized Device Coordinates Screen Space, pixel coordinates, projection matrix, view matrix from world space to camera space
projectionMatrix new Matrixx
new Vectorefefefef
new Vectorefefefef
new Vectorefefefef
new Vectorffff Padding row to make it a x matrix
;
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
