From db2abd49c3b41af612cbb6fed4c1626c37b4e14b Mon Sep 17 00:00:00 2001 From: Xiaohong Bao Date: Wed, 12 Jun 2013 11:30:43 -0600 Subject: fix for SH-4244: interesting: objects on adjacent region are not visible. --- indra/llmath/llcamera.cpp | 2 +- indra/newview/llvocache.cpp | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/indra/llmath/llcamera.cpp b/indra/llmath/llcamera.cpp index 6551b52462..054afd3e95 100755 --- a/indra/llmath/llcamera.cpp +++ b/indra/llmath/llcamera.cpp @@ -620,7 +620,7 @@ void LLCamera::calcRegionFrustumPlanes(const LLVector3& shift) if (mPlaneMask[i] != 0xff) { n.setVec(mAgentPlanes[i][0], mAgentPlanes[i][1], mAgentPlanes[i][2]); - d = mAgentPlanes[i][3] - n * shift; + d = mAgentPlanes[i][3] + n * shift; mRegionPlanes[i].setVec(n, d); } } diff --git a/indra/newview/llvocache.cpp b/indra/newview/llvocache.cpp index 5e2d2efc5e..1f3af78e77 100755 --- a/indra/newview/llvocache.cpp +++ b/indra/newview/llvocache.cpp @@ -417,9 +417,11 @@ public: virtual S32 frustumCheck(const LLviewerOctreeGroup* group) { +#if 1 S32 res = AABBInRegionFrustumGroupBounds(group); - - //S32 res = AABBInRegionFrustumNoFarClipGroupBounds(group); +#else + S32 res = AABBInRegionFrustumNoFarClipGroupBounds(group); +#endif if (res != 0) { res = llmin(res, AABBRegionSphereIntersectGroupExtents(group, mLocalShift)); @@ -429,9 +431,11 @@ public: virtual S32 frustumCheckObjects(const LLviewerOctreeGroup* group) { +#if 1 S32 res = AABBInRegionFrustumObjectBounds(group); - - //S32 res = AABBInRegionFrustumNoFarClipObjectBounds(group); +#else + S32 res = AABBInRegionFrustumNoFarClipObjectBounds(group); +#endif if (res != 0) { res = llmin(res, AABBRegionSphereIntersectObjectExtents(group, mLocalShift)); -- cgit v1.2.3