WIld Sage
05-15-2011, 01:31 AM
I want to implement frustum culling into my game engine, and I'm not quite sure how to go about doing it. A few questions:
1) How do I get a frustum that matches my current view, and test spheres against it? (not bothering with boxes, I don't need to be that precise)
2) Would it be best to send all my geometry to the graphics memory when the area loads, then only call a draw on what passes the frustum test, or should I dynamically load/unload geometry to/from graphics memory?
3) related to #1, how can I create a frustum using an arbitrary set of points, so I can implement portal culling?
and 4), while I'm here, what's a good outdoor culling method that works well with portal culling indoors?
1) How do I get a frustum that matches my current view, and test spheres against it? (not bothering with boxes, I don't need to be that precise)
2) Would it be best to send all my geometry to the graphics memory when the area loads, then only call a draw on what passes the frustum test, or should I dynamically load/unload geometry to/from graphics memory?
3) related to #1, how can I create a frustum using an arbitrary set of points, so I can implement portal culling?
and 4), while I'm here, what's a good outdoor culling method that works well with portal culling indoors?