The U4DVisibilityCulling class tests whether a 3D model is within the frustum.
More...
The U4DVisibilityCulling class tests whether a 3D model is within the frustum.
◆ aabbInFrustum()
bool U4DEngine::U4DVisibilityCulling::aabbInFrustum |
( |
std::vector< U4DPlane > & |
uPlanes, |
|
|
U4DAABB * |
uAABB |
|
) |
| |
check if all the points of the AABB intersect or are inside the plane
- Parameters
-
uPlanes | camera planes |
uAABB | AABB box encompassing the 3D models |
- Returns
- true if all AABB points are inside the plane
◆ startFrustumIntersection()
void U4DEngine::U4DVisibilityCulling::startFrustumIntersection |
( |
std::vector< std::shared_ptr< U4DBVHNode< U4DModel >>> & |
uTreeContainer, |
|
|
std::vector< U4DPlane > & |
uPlanes |
|
) |
| |
starts the frustum intersection
- Parameters
-
uTreeContainer | tree containing the AABB boxes encompassing the 3D models |
uPlanes | camera planes |
◆ testFrustumIntersection()
tests the frustum intersection
- Parameters
-
uTreeLeftNode | left node of tree containing the AABB boxes encompassing the 3D models |
uTreeRightNode | right node of tree containing the AABB boxes encompassing the 3D models |
uPlanes | camera planes |