Index: GTP/trunk/Lib/Vis/OnlineCullingCHC/src/VisibilityEnvironment.cpp
===================================================================
--- GTP/trunk/Lib/Vis/OnlineCullingCHC/src/VisibilityEnvironment.cpp	(revision 2183)
+++ GTP/trunk/Lib/Vis/OnlineCullingCHC/src/VisibilityEnvironment.cpp	(revision 2278)
@@ -1,5 +1,5 @@
 #include "VisibilityEnvironment.h"
-#include "common.h"
-#include "Environment.h"
+//#include "common.h"
+//#include "Environment.h"
 
 
@@ -10,12 +10,10 @@
 {
 	// HACK: loading debug stream should not happen here
-	GtpVisibilityPreprocessor::Debug.open("debug.log");
-	// load environment
-	//Environment::GetSingleton() = new GtpVisibilityPreprocessor::Environment::GetSingleton();	 
+	//GtpVisibilityPreprocessor::Debug.open("debug.log");
 }
 //-----------------------------------------------------------------------
 VisibilityEnvironment::~VisibilityEnvironment()
 {
-	GtpVisibilityPreprocessor::Environment::DelSingleton();
+	//GtpVisibilityPreprocessor::Environment::DelSingleton();
 }
 //-----------------------------------------------------------------------
@@ -23,5 +21,5 @@
 {		
 	//-- parse environment
-	return GtpVisibilityPreprocessor::Environment::GetSingleton()->ReadEnvFile(filename.c_str());
+	return false;//GtpVisibilityPreprocessor::Environment::GetSingleton()->ReadEnvFile(filename.c_str());
 }
 //-----------------------------------------------------------------------
@@ -29,5 +27,5 @@
 {
 	char str[200];
-	GtpVisibilityPreprocessor::Environment::GetSingleton()->GetStringValue("Scene.filename", str);
+	//GtpVisibilityPreprocessor::Environment::GetSingleton()->GetStringValue("Scene.filename", str);
 	return str;
 }
@@ -36,12 +34,13 @@
 {
 	char str[200];
-	GtpVisibilityPreprocessor::Environment::GetSingleton()->GetStringValue("ViewCells.filename", str);
+	//GtpVisibilityPreprocessor::Environment::GetSingleton()->GetStringValue("ViewCells.filename", str);
 	
 	return str;
 }
 //-----------------------------------------------------------------------
-GtpVisibilityPreprocessor::Environment *VisibilityEnvironment::GetPreprocessorEnvironment()
+/*GtpVisibilityPreprocessor::Environment *VisibilityEnvironment::GetPreprocessorEnvironment()
 {
 	return GtpVisibilityPreprocessor::Environment::GetSingleton();
-}
+}*/
+
 } // namespace GtpVisibility
Index: GTP/trunk/Lib/Vis/OnlineCullingCHC/src/VisibilityManager.cpp
===================================================================
--- GTP/trunk/Lib/Vis/OnlineCullingCHC/src/VisibilityManager.cpp	(revision 2066)
+++ GTP/trunk/Lib/Vis/OnlineCullingCHC/src/VisibilityManager.cpp	(revision 2278)
@@ -5,5 +5,5 @@
 #include "DummyPreprocessingManager.h"
 #include "DummyQueryManager.h"
-//#include "BatchedQueriesCullingManager.h"
+#include "RandomUpdateCullingManager.h"
 
 namespace GtpVisibility {
@@ -53,5 +53,4 @@
 		case VisibilityEnvironment::STOP_AND_WAIT_CULLING:
 			mCullingManager = new StopAndWaitCullingManager();
-				//new BatchedQueriesCullingManager();
 			break;
 
@@ -61,5 +60,6 @@
 
 		case VisibilityEnvironment::FRUSTUM_CULLING:
-			mCullingManager = new FrustumCullingManager();
+			//mCullingManager = new FrustumCullingManager();
+			mCullingManager = new RandomUpdateCullingManager();
 			break;
 
Index: GTP/trunk/Lib/Vis/OnlineCullingCHC/src/GtpVisibility.vcproj
===================================================================
--- GTP/trunk/Lib/Vis/OnlineCullingCHC/src/GtpVisibility.vcproj	(revision 2258)
+++ GTP/trunk/Lib/Vis/OnlineCullingCHC/src/GtpVisibility.vcproj	(revision 2278)
@@ -71,6 +71,6 @@
 				OptimizeForProcessor="3"
 				OptimizeForWindowsApplication="TRUE"
-				AdditionalIncludeDirectories="..\include;&quot;$(OGRE_PATH)\OgreMain\include&quot;;..\..\Preprocessing\src"
-				PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
+				AdditionalIncludeDirectories="..\include;&quot;$(OGRE_PATH)\OgreMain\include&quot;"
+				PreprocessorDefinitions="WIN32;NDEBUG;_LIB;GTP_VISIBILITY_MODIFIED_OGRE;GAMETOOLS_ILLUMINATION_MODULE"
 				StringPooling="TRUE"
 				RuntimeLibrary="2"
Index: GTP/trunk/Lib/Vis/OnlineCullingCHC/src/RandomUpdateCullingManager.cpp
===================================================================
--- GTP/trunk/Lib/Vis/OnlineCullingCHC/src/RandomUpdateCullingManager.cpp	(revision 2259)
+++ GTP/trunk/Lib/Vis/OnlineCullingCHC/src/RandomUpdateCullingManager.cpp	(revision 2278)
@@ -106,10 +106,18 @@
 					continue;
 				}
-				
+				if (mHierarchyInterface->IsLeaf(node))
+				{
+					if (mHierarchyInterface->IsNodeVisible(node))
+						Ogre::LogManager::getSingleton().logMessage("u");
+					else
+						Ogre::LogManager::getSingleton().logMessage("g");
+				}
+
 				if (mHierarchyInterface->IsNodeFullyVisible(node))
-				{
+				{Ogre::LogManager::getSingleton().logMessage("here8");
 					// node fully visible => test only random leaves
 					for (int i = 0; i < mRandomCandidates; ++ i)
 					{
+						Ogre::LogManager::getSingleton().logMessage("z");
 						HierarchyNode *randomLeaf = mHierarchyInterface->GetRandomLeaf(node);
 
