Perspective Projection matrix

Started by
0 comments, last by Zakwayda 17 years, 8 months ago
I am trying to project a point in 3d to 2d. Only problem is I dont see how this is a projection matrix because the x coord doesnt effect the x and y coords at all. My projection matrix as given to me by glGetDoublev(GL_PROJECTION_MATRIX, ...): 2.41421 ----- 0 ---- 0 ----- 0 0 -------- 2.41421 - 0------ 0 0 ----------- 0-- -1.0002 -.20002 0 ----------- 0 ---- -1 ----- 0 So basically, my new x,y coords are only going to be 2.4142 times its original x value... I'm lost. Thanks in advance.

NBA2K, Madden, Maneater, Killing Floor, Sims http://www.pawlowskipinball.com/pinballeternal

Advertisement
Remember that the pipeline includes a perspective division, so you must also take into account the value of w after multiplication by the projection matrix.

This topic is closed to new replies.

Advertisement