Frustum Culling

 http://local.wasp.uwa.edu.au/~pbourke/projection/frustum/

In order to determine whether part of a primitive is inside the frustum it is necessary to check that every vertex in the primitive is outside the volume. To determine this, compute the vertices of each plane making up the frustum. Each plane can be written in the form, Ax + By + Cz + D = 0. The constants A,B,C,D can be calculated from any three points on the planes (since all four points are coplanar) say (x1,y1,z1), (x2,y2,z2), and (x3,y3,z3) as follows:

A = y1 (z2 - z3) + y2 (z3 - z1) + y3 (z1> - z2)
B = z1 (x2 - x3) + z2 (x3 - x1) + z3 (x1 - x2)
C = x1 (y2 - y3) + x2 (y3 - y1) + x3 (y1 - y2)
- D = x1 (y2 z3 - y3 z2) + x2 (y3 z1 - y1 z3) + x3 (y1 z2 - y2 z1)

In order to test whether a point (x,y,z) is on the left or right of the plane compute Ax + By + Cz + D. If the result is greater than zero then the point is on the same side as the normal (A,B,C), if less than zero then it's on the opposite side, if zero then it lies on the plane.

 

http://www.lighthouse3d.com/opengl/viewfrustum/index.php?intro

 

http://www.flipcode.com/archives/Frustum_Culling.shtml

 

http://www.cescg.org/CESCG-2002/DSykoraJJelinek/index.html

 

http://www2.ravensoft.com/users/ggribb/plane%20extraction.pdf

 

http://www.crownandcutlass.com/features/technicaldetails/frustum.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值