Fixed inaccurate view frustum culling

Implemented smarter octree visibility query batching algorithm

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40106
This commit is contained in:
kearwood
2012-09-21 07:31:18 +00:00
parent d23fe9a700
commit d4903c1d84
16 changed files with 226 additions and 218 deletions

View File

@@ -106,7 +106,7 @@
}
[self.engine setNearZ: 5.0];
[self.engine setFarZ: 3000.0];
[self.engine setFarZ: 5000.0];
//[renderEngine setNearZ: 1.0];
//[renderEngine setFarZ: 3000.0];

View File

@@ -252,7 +252,7 @@
}
double dScaleFactor = 200.0f * deltaTime;
double dScaleFactor = 500.0f * deltaTime;
camera_position.z += (-cos(camera_pitch) * cos(camera_yaw) * leftStickDeltaX + -cos(camera_pitch) * cos(camera_yaw - 90.0f * d2r) * -leftStickDeltaY) * dScaleFactor;
camera_position.x += (cos(camera_pitch) * sin(camera_yaw) * leftStickDeltaX + cos(camera_pitch) * sin(camera_yaw - 90.0f * d2r) * -leftStickDeltaY) * dScaleFactor;

View File

@@ -271,7 +271,7 @@
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0440;
LastUpgradeCheck = 0450;
};
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "KRObjView" */;
compatibilityVersion = "Xcode 3.2";