[Algorithms] View Frustum Culling
Brought to you by:
vexxed72
From: <SHA...@ao...> - 2001-01-22 15:49:35
|
Hi, I've ported most of my 3D engine to DX8 from DX7 and have come to the point where I am going to cull octree nodes against the viewing frustum. I was using the ComputeSphereVisibility helper function but we all know this has been removed :) I can't quite see how the new Box&Sphere Probe against Ray tests can be used to achieve what I want, maybe someone could explain? What would be the easiest ( if not too slow ) way to do this. If have 2 main plans 1a) Create a sphere around the frustum and do sphere/sphere tests as a coarse cull 1b) then do either cone/sphere or 6 frustum planes/sphere tests 2) Possibly put AABB vertices in a VB and check the clip flags after transformation? Not even sure if 2 is possible or how to test the clip flags?? Regards, John. |