Index: trunk/VUT/work/TestCullingTerrain/TerrainContentGenerator.cpp
===================================================================
--- trunk/VUT/work/TestCullingTerrain/TerrainContentGenerator.cpp	(revision 85)
+++ trunk/VUT/work/TestCullingTerrain/TerrainContentGenerator.cpp	(revision 87)
@@ -50,5 +50,5 @@
 //-----------------------------------------------------------------------
 TerrainContentGenerator::TerrainContentGenerator(SceneManager *sm):
-SceneContentGenerator(sm), mMaxHeight(100)
+SceneContentGenerator(sm), mMaxHeight(50)
 {
 	mMinPos = Vector3(0.0f, 5000.0f, 0.0f);
Index: trunk/VUT/work/TestCullingTerrain/TestCullingTerrainApplication.cpp
===================================================================
--- trunk/VUT/work/TestCullingTerrain/TestCullingTerrainApplication.cpp	(revision 86)
+++ trunk/VUT/work/TestCullingTerrain/TestCullingTerrainApplication.cpp	(revision 87)
@@ -96,7 +96,6 @@
 
 	mTerrainContentGenerator = new TerrainContentGenerator(mSceneMgr);
-	
-	mTerrainContentGenerator->GenerateScene(500, "ninja.mesh");
-	mTerrainContentGenerator->GenerateScene(500, "robot.mesh");
+//	mTerrainContentGenerator->GenerateScene(500, "ninja.mesh");
+	mTerrainContentGenerator->GenerateScene(1000, "robot.mesh");
 
 	// no limitations needed anymore: the user can set 
@@ -150,5 +149,7 @@
 mTerrainContentGenerator(sceneGenerator),
 mVisibilityThreshold(0),
-mCurrentAlgorithm(GtpVisibility::VisibilityEnvironment::COHERENT_HIERARCHICAL_CULLING)
+mCurrentAlgorithm(GtpVisibility::VisibilityEnvironment::COHERENT_HIERARCHICAL_CULLING),
+mShowOctree(true),
+mUseCulling(false)
 {
 	// Reduce move speed
@@ -174,7 +175,8 @@
 	mHierarchyNodesInfo = OverlayManager::getSingleton().getOverlayElement("Example/Visibility/HierarchyNodesInfo");
 	mRenderedNodesInfo = OverlayManager::getSingleton().getOverlayElement("Example/Visibility/RenderedNodesInfo");
-	mNumObjectsInfo = OverlayManager::getSingleton().getOverlayElement("Example/Visibility/NumObjectsInfo");
+	mObjectsInfo = OverlayManager::getSingleton().getOverlayElement("Example/Visibility/ObjectsInfo");
 	mUseOptimizationInfo = OverlayManager::getSingleton().getOverlayElement("Example/Visibility/UseOptimizationInfo");
-
+	mQueriesIssuedInfo = OverlayManager::getSingleton().getOverlayElement("Example/Visibility/QueriesIssuedInfo");
+	
 	mAlgorithmInfo->setCaption(": " + mCurrentAlgorithmCaptions[mCurrentAlgorithm]);
 	mThresholdInfo->setCaption(": 0");
@@ -184,10 +186,12 @@
 	mHierarchyNodesInfo->setCaption(": 0");
 	mRenderedNodesInfo->setCaption(": 0");
-	mNumObjectsInfo->setCaption(": 0");
+	mObjectsInfo->setCaption(": 0");
 	mUseOptimizationInfo->setCaption(": true");
+	mQueriesIssuedInfo->setCaption(": 0");
 
 	setAlgorithm(mCurrentAlgorithm);
 	toggleUseOptimization();
 	toggleShowOctree();
+	toggleUseCulling();
 
     pOver->show();
@@ -301,7 +305,7 @@
 	KEY_PRESSED(KC_O, 0.3, toggleUseOptimization());
 	KEY_PRESSED(KC_S, 0.3, toggleShowOctree());
-	//KEY_PRESSED(KC_T, 1, change);
-      
-	changeStats();
+	KEY_PRESSED(KC_C, 0.3, toggleUseCulling());
+	      
+	updateStats();
 
     return ExampleFrameListener::frameStarted(evt) && ExampleFrameListener::frameEnded(evt);        
@@ -329,10 +333,9 @@
 void MouseQueryListener::setAlgorithm(int algorithm)
 {
-	//OutputDebugString("changing algorithm\n");
 	mAlgorithmInfo->setCaption(": " + mCurrentAlgorithmCaptions[mCurrentAlgorithm]);
 	mSceneMgr->setOption("Algorithm", &mCurrentAlgorithm);
 }
 //-----------------------------------------------------------------------
-void MouseQueryListener::changeStats()
+void MouseQueryListener::updateStats()
 {
 	unsigned int opt = 0;
@@ -342,4 +345,7 @@
 	mFrustumCulledNodesInfo->setCaption(str);
 	
+	mSceneMgr->getOption("NumQueriesIssued", &opt); sprintf(str,": %d", opt); 
+	mQueriesIssuedInfo->setCaption(str);
+	
 	mSceneMgr->getOption("NumQueryCulledNodes", &opt); sprintf(str,": %d", opt); 
 	mQueryCulledNodesInfo->setCaption(str);
@@ -355,5 +361,5 @@
 
 	sprintf(str,": %d", mTerrainContentGenerator->GetObjectCount()); 
-	mNumObjectsInfo->setCaption(str);
+	mObjectsInfo->setCaption(str);
 }
 //-----------------------------------------------------------------------
@@ -375,4 +381,11 @@
 
 	mSceneMgr->setOption("ShowOctree", &mShowOctree);
+}
+//-----------------------------------------------------------------------
+void MouseQueryListener::toggleUseCulling()
+{
+	mUseCulling = !mUseCulling;
+
+	mSceneMgr->setOption("UseCulling", &mUseCulling);
 }
 //-----------------------------------------------------------------------
Index: trunk/VUT/work/TestCullingTerrain/TestCullingTerrainApplication.h
===================================================================
--- trunk/VUT/work/TestCullingTerrain/TestCullingTerrainApplication.h	(revision 86)
+++ trunk/VUT/work/TestCullingTerrain/TestCullingTerrainApplication.h	(revision 87)
@@ -62,7 +62,8 @@
 	void setAlgorithm(int algorithm);
 	void changeThreshold(int incr);
-	void changeStats();
+	void updateStats();
 	void toggleUseOptimization();
 	void toggleShowOctree();
+	void toggleUseCulling();
 
 protected:
@@ -84,5 +85,6 @@
 	OverlayElement *mUseOptimizationInfo;
 	OverlayElement *mRenderedNodesInfo;
-	OverlayElement *mNumObjectsInfo;
+	OverlayElement *mObjectsInfo;
+	OverlayElement *mQueriesIssuedInfo;
 
 	SceneNode *mCurrentObject;         // The newly created object
@@ -94,4 +96,5 @@
 	bool mUseOptimization;
 	bool mShowOctree;
+	bool mUseCulling;
 };
 
