Normal Vector from Matrix

markraz

Full Member
Joined
Feb 19, 2014
Messages
338
Hi If I have matrix that looks like this picture
1579381155139.png



is the normal vector the diagonal?

1579381221770.png
 
Normal to what?

Is there any context to your question, such as what the matrix represents?
 
Is there any context to your question, such as what the matrix represents?
It's the standard perspective projection matrix for converting view coordinates into device coordinates in 3D imaging. It is multiplied by a four-element vector representing the view coordinates (X, Y, Z, W) and produces a four-element vector in homogeneous device coordinates.

I'm wondering if that diagonal represents the normal to the "view plane" (the yellow grid)
The formula was designed in such a way that the X and Y coordinates (after performing the perspective divide) indicate the relative position in the viewport (before scaling to the viewport dimensions). All positions for Z are parallel and do not affect the position of the point in the viewport.
 
Last edited:
Top