Sign in to follow this  

Perspective Projection matrix

This topic is 4138 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
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

This topic is 4138 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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