Culling by Bounding Boxes

F699ebb187331fdf7f7875320e3e7e3e
0
starboarder2001 101 Aug 18, 2003 at 00:17

I have been trying to figure this out for a while. How can i tell if a bouding box is in the view frustrum. I know how to tell if a point is infront of a plane…but how can you tell if the whole bounding box is infront of the plane? Right now i am just checking if the corners of the box are in the plane…it works but isnt accurate enough. Do you have any information on the subject??

4 Replies

Please log in or register to post a reply.

Fdbdc4176840d77fe6a8deca457595ab
0
dk 158 Aug 18, 2003 at 02:38
8cc5b33ebf1873c2d4525722db1b5e1a
0
serious_spaam 101 Aug 28, 2003 at 09:46

well, i am just checking all vertices of the box against each of the 6 planes of the view frustum.
if all vertices fall on the outside of a plane then the whole box is invisble.
that means if even if all vertices are outside the frustum the box still may be visible.

6ad5f8c742f1e8ec61000e2b0900fc76
0
davepermen 101 Aug 29, 2003 at 07:36

this is one of those situations where only one thing can help: PAP, Pencil And Paper.. and a bit of creativity..

this is a good situation to learn to solve problems yourself..

then again, some dude called marc wrote a great frustum culling tutorial once, with code.. dunno what his surname was, thought.. and don’t have the link anymore

F699ebb187331fdf7f7875320e3e7e3e
0
starboarder2001 101 Sep 01, 2003 at 05:51

I ended up culling entities by bounding spheres…It worked out pretty good. Allthough it is accurate enough for my entities….I am going to need to use bounding boxes for culling the quad trees. I am just going see if i can figure it out. Thanks :) :yes: