开发者

opengl glfrustum function implement

开发者 https://www.devze.com 2023-01-01 05:56 出处:网络
would somebody tells me how that glfrustum matrix generated? i know about that matrix can be set many ways, but wh开发者_StackOverflow中文版y that one? thanks

would somebody tells me how that glfrustum matrix generated? i know about that matrix can be set many ways, but wh开发者_StackOverflow中文版y that one? thanks


would somebody tells me how that glfrustum matrix generated?

Read official glFrustrum documentation. It includes formula.


i know about that matrix can be set many ways, but why that one

Because it defines exactly the portion of the space that is projected onto the plane: Connect the eye point with the four corners of the near plane (specified by left, right, top, bottom and nearVal). Then intersect the lines with the far plane to get the remaining four points of the frustum.

0

精彩评论

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

关注公众号