I\'m displaying a scene with some cubes in it. The camera uses persective. Everything works great, but I\'d like the vertical lines to be parallel (two point perspective: ht
The University of Berkeley has a page on the different perspective transformations and the matrices you need to use. The two-point perspective transformation is:
_ _
| 1 0 0 sin(q)/d |
| 0 1 0 0 |
| 0 0 1 cos(q)/d |
|_ 0 0 0 0 _|
Where q
is the angle used to rotate the points (rather than the axes) and d
is unexplained(!) but I think it's the distance of the camera from the focal plane.
Source