Sign in to follow this  
dpadam450

Perspective Projection matrix

Recommended Posts

dpadam450    2357
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.

Share this post


Link to post
Share on other sites
jyk    2094
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this