corrected visibility classification for leaf BVs in frustum culling.

This commit is contained in:
Luigi Malomo 2013-09-26 17:26:47 +00:00
parent cf4844f4a4
commit dd7e419215
1 changed files with 8 additions and 1 deletions

View File

@ -226,7 +226,8 @@ protected:
}
}
if (fullInside || (node->IsLeaf()) || (node->ObjectsCount() <= minNodeObjectsCount)) {
// Intermediate BVs containing a sufficient number of objects are marked fully visible even if they don't
if (fullInside || (node->ObjectsCount() <= minNodeObjectsCount)) {
node->Flags() |= FC_FULLY_VISIBLE_BIT;
nodeApply(*node);
return;
@ -234,6 +235,12 @@ protected:
node->Flags() |= FC_PARTIALLY_VISIBLE_BIT;
if ((node->IsLeaf()))
{
nodeApply(*node);
return;
}
//ClassType::NodeVsFrustum(node->children[0], viewerPosition, f, newMask, minNodeObjectsCount, nodeApply);
//ClassType::NodeVsFrustum(node->children[1], viewerPosition, f, newMask, minNodeObjectsCount, nodeApply);
ScalarType dt;