Jump to content

  • Log In with Google      Sign In   
  • Create Account


confusion about depth and perspective


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 schobbejak   Members   -  Reputation: 111

Like
0Likes
Like

Posted 26 July 2012 - 09:06 AM

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

Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS