|
发表于 2008-12-4 14:20:00
|
显示全部楼层
Re:SDK 文档中给出的投影矩阵公式是否是错误的?
你的版本太旧了.
Remarks
The return value for this function is the same value returned in the pOut parameter. In this way, the D3DXMatrixPerspectiveFovLH function can be used as a parameter for another function.
This function computes the returned matrix as shown:
xScale 0 0 0
0 yScale 0 0
0 0 zf/(zf-zn) 1
0 0 -zn*zf/(zf-zn) 0
where:
yScale = cot(fovY/2)
xScale = yScale / aspect ratio
Requirements
Header: Declared in D3dx9math.h.
|
|