Sign in to follow this  

confusion about depth and perspective

Recommended Posts

Here are my assumptions about perspective divide, can someone tell me which one(s) is/are wrong?

0: When doing a perspective divide, vertex positions are divided by the viewspace z position. (stored in .w component)
1: When doing perspective scaling, the correct way to go is: divide by the distance between camera and vertex.
2: viewspace z position is NOT equal to the distance from the camera to the vertex. (unless that vertex is in the middle of the screen, and the nearplane is 0).

An example of point 2: considering a camera with 90 degrees fov, the distance from the camera to a point on the farplane at the border of the screen is greater than or equal to [sqrt(2)* farplane], but in the middle it would be [farplane].

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