Public Group

# confusion about depth and perspective

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

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

1. 1
2. 2
Rutin
21
3. 3
JoeJ
18
4. 4
5. 5

• 14
• 39
• 23
• 13
• 13
• ### Forum Statistics

• Total Topics
631719
• Total Posts
3001885
×