From b63e15f2e9caf928ffbc81f7999295a93727af7e Mon Sep 17 00:00:00 2001 From: Brad Hefta-Gaub Date: Fri, 4 Sep 2015 15:06:56 -0700 Subject: [PATCH] fix a bug in bad PPS calculation --- interface/src/Application.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 7321be5ac1..928b4a0684 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -3053,9 +3053,8 @@ void Application::queryOctree(NodeType_t serverType, PacketType::Value packetTyp voxelDetailsForCode(rootCode, rootDetails); AACube serverBounds(glm::vec3(rootDetails.x * TREE_SCALE, rootDetails.y * TREE_SCALE, - rootDetails.z * TREE_SCALE), + rootDetails.z * TREE_SCALE) - glm::vec3(HALF_TREE_SCALE), rootDetails.s * TREE_SCALE); - ViewFrustum::location serverFrustumLocation = _viewFrustum.cubeInFrustum(serverBounds); if (serverFrustumLocation != ViewFrustum::OUTSIDE) { @@ -3120,11 +3119,10 @@ void Application::queryOctree(NodeType_t serverType, PacketType::Value packetTyp voxelDetailsForCode(rootCode, rootDetails); AACube serverBounds(glm::vec3(rootDetails.x * TREE_SCALE, rootDetails.y * TREE_SCALE, - rootDetails.z * TREE_SCALE), + rootDetails.z * TREE_SCALE) - glm::vec3(HALF_TREE_SCALE), rootDetails.s * TREE_SCALE); - ViewFrustum::location serverFrustumLocation = _viewFrustum.cubeInFrustum(serverBounds); if (serverFrustumLocation != ViewFrustum::OUTSIDE) { inView = true; @@ -3143,7 +3141,7 @@ void Application::queryOctree(NodeType_t serverType, PacketType::Value packetTyp } else if (unknownView) { if (wantExtraDebugging) { qCDebug(interfaceapp) << "no known jurisdiction for node " << *node << ", give it budget of " - << perUnknownServer << " to send us jurisdiction."; + << perUnknownServer << " to send us jurisdiction."; } // set the query's position/orientation to be degenerate in a manner that will get the scene quickly