PDA

View Full Version : Frustum Culling with modelview and projection matrixes



markun
05-22-2003, 04:40 AM
hi,
I have modelview matrix and projection matrix
say mdl[4][4] prj[4][4]
and an object with bounds min.x min.y min.z
max.x max.y max.z

someone knows the formulating frunstum check
with this parameters?
thanks

list67
05-22-2003, 04:48 AM
markun,
The "Frustum Culling" tutorial at the following URL might help. http://www.gametutorials.com/Tutorials/OpenGL/OpenGL_Pg5.htm

Coriolis
05-22-2003, 08:16 AM
Transform the 8 corners of the box by the modelview-projection matrix, then put them into clip space. If all 8 corners are >= 1 or <= -1 on any axis, then it can be frustum culled. (Note there is an obvious optimization to get rid of the projective division.)

ppinter1
05-26-2003, 06:25 AM
Mark Morley's article (http://www.markmorley.com/opengl/frustumculling.html) on OpenGL frustum culling is a good resource.

[This message has been edited by ppinter1 (edited 05-27-2003).]