开发者

Matrix.CreatePerspectiveFieldOfView

can someone explain me how the methode Matrix.CreatePerspectiveFieldOfView(fov, aspect, nearCl开发者_如何学Cip, farClip); is defined in XNA --> i mean the matrix behind it !

thanks you !


Assuming w, and h of:

h = cot(fieldOfViewY/2)
w = h * aspectRatio

This uses the following matrix:

w       0       0                                              0
0       h       0                                              0
0       0       farClip/(nearClip-farClip)                    -1
0       0       nearClip*farClip/(nearClip-farClip)            0

This isn't documented in the XNA docs, but is in the DX documentation.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜