Changeset 2278


Ignore:
Timestamp:
03/22/07 11:48:21 (17 years ago)
Author:
mattausch
Message:

worked on randomupdatemanager

Location:
GTP/trunk/Lib/Vis
Files:
18 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/GtpVisibility.sln

    r2258 r2278  
    1919                {101A7691-74F3-48B4-96A3-CF35578F5900} = {101A7691-74F3-48B4-96A3-CF35578F5900} 
    2020                {EABCE292-D598-4600-A1C9-2591E7D62FDA} = {EABCE292-D598-4600-A1C9-2591E7D62FDA} 
    21                 {7319E499-473D-4CE5-9983-725D6E68A55D} = {7319E499-473D-4CE5-9983-725D6E68A55D} 
    22                 {7319E499-473D-4CE5-9983-725D6E68A55D} = {7319E499-473D-4CE5-9983-725D6E68A55D} 
    23                 {7319E499-473D-4CE5-9983-725D6E68A55D} = {7319E499-473D-4CE5-9983-725D6E68A55D} 
    24                 {7319E499-473D-4CE5-9983-725D6E68A55D} = {7319E499-473D-4CE5-9983-725D6E68A55D} 
    25                 {7319E499-473D-4CE5-9983-725D6E68A55D} = {7319E499-473D-4CE5-9983-725D6E68A55D} 
    26                 {7319E499-473D-4CE5-9983-725D6E68A55D} = {7319E499-473D-4CE5-9983-725D6E68A55D} 
    27                 {7319E499-473D-4CE5-9983-725D6E68A55D} = {7319E499-473D-4CE5-9983-725D6E68A55D} 
    28                 {7319E499-473D-4CE5-9983-725D6E68A55D} = {7319E499-473D-4CE5-9983-725D6E68A55D} 
    2921        EndProjectSection 
    3022EndProject 
     
    4032Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestCullingTerrain", "..\..\App\Demos\Vis\HillyTerrain\OGRE\TestCullingTerrain.vcproj", "{248F19A6-2FE0-4F5D-8928-E0EA10609887}" 
    4133        ProjectSection(ProjectDependencies) = postProject 
     34                {80DECC17-BDDD-4412-8CF8-F7C1C17A7436} = {80DECC17-BDDD-4412-8CF8-F7C1C17A7436} 
     35                {101A7691-74F3-48B4-96A3-CF35578F5900} = {101A7691-74F3-48B4-96A3-CF35578F5900} 
     36        EndProjectSection 
     37EndProject 
     38Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestKdTree", "..\..\App\Demos\Vis\KdTreeDemo\OGRE\scripts\TestKdTree.vcproj", "{17F2C6F9-6101-430E-ABF4-71383868EF24}" 
     39        ProjectSection(ProjectDependencies) = postProject 
    4240                {5776B40B-5FCE-46D5-8F7C-3912E24E0638} = {5776B40B-5FCE-46D5-8F7C-3912E24E0638} 
    43                 {101A7691-74F3-48B4-96A3-CF35578F5900} = {101A7691-74F3-48B4-96A3-CF35578F5900} 
    44                 {80DECC17-BDDD-4412-8CF8-F7C1C17A7436} = {80DECC17-BDDD-4412-8CF8-F7C1C17A7436} 
    45         EndProjectSection 
    46 EndProject 
    47 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestKdTree", "..\..\App\Demos\Vis\KdTreeDemo\OGRE\scripts\TestKdTree.vcproj", "{17F2C6F9-6101-430E-ABF4-71383868EF24}" 
    48         ProjectSection(ProjectDependencies) = postProject 
    4941                {5776B40B-5FCE-46D5-8F7C-3912E24E0638} = {5776B40B-5FCE-46D5-8F7C-3912E24E0638} 
    5042                {80DECC17-BDDD-4412-8CF8-F7C1C17A7436} = {80DECC17-BDDD-4412-8CF8-F7C1C17A7436} 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/IVReader/src/IVReader.vcproj

    r2254 r2278  
    7272                        <Tool 
    7373                                Name="VCCLCompilerTool" 
    74                                 AdditionalIncludeDirectories="&quot;$(OGRE_PATH)\Dependencies\include\CEGUI&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\include&quot;;&quot;$(OGRE_PATH)\OgreMain\include&quot;;&quot;$(OGRE_PATH)\Dependencies\include&quot;;&quot;$(OGRE_PATH)\Samples\Common\include&quot;;..\include" 
    75                                 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;IVREADER_EXPORTS;GTP_VISIBILITY_MODIFIED_OGRE;GAMETOOLS_ILLUMINATION_MODULE;USE_VERBOSE_PVS" 
    76                                 RuntimeLibrary="2" 
    77                                 UsePrecompiledHeader="0" 
    78                                 WarningLevel="3" 
    79                                 Detect64BitPortabilityProblems="TRUE" 
    80                                 DebugInformationFormat="3"/> 
    81                         <Tool 
    82                                 Name="VCCustomBuildTool"/> 
    83                         <Tool 
    84                                 Name="VCLinkerTool" 
    85                                 AdditionalDependencies="OgreMain.lib CEGUIBase.lib OgreGUIRenderer.lib" 
    86                                 OutputFile="$(OutDir)/IVReader.dll" 
    87                                 LinkIncremental="1" 
    88                                 AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\OgreMain\lib\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib&quot;;&quot;..\..\GtpVisibility\lib\$(ConfigurationName)&quot;;&quot;..\..\lib\$(ConfigurationName)&quot;;&quot;..\lib\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\Dependencies\lib\$(ConfigurationName)&quot;" 
    89                                 GenerateDebugInformation="FALSE" 
    90                                 SubSystem="2" 
    91                                 OptimizeReferences="2" 
    92                                 EnableCOMDATFolding="2" 
    93                                 ImportLibrary="$(OutDir)/IVReader.lib" 
    94                                 TargetMachine="1"/> 
    95                         <Tool 
    96                                 Name="VCMIDLTool"/> 
    97                         <Tool 
    98                                 Name="VCPostBuildEventTool"/> 
     74                                Optimization="3" 
     75                                GlobalOptimizations="TRUE" 
     76                                InlineFunctionExpansion="2" 
     77                                EnableIntrinsicFunctions="TRUE" 
     78                                FavorSizeOrSpeed="1" 
     79                                OmitFramePointers="TRUE" 
     80                                EnableFiberSafeOptimizations="TRUE" 
     81                                OptimizeForWindowsApplication="TRUE" 
     82                                AdditionalIncludeDirectories="&quot;$(OGRE_PATH)\Dependencies\include\CEGUI&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\include&quot;;&quot;$(OGRE_PATH)\OgreMain\include&quot;;&quot;$(OGRE_PATH)\Dependencies\include&quot;;&quot;$(OGRE_PATH)\Samples\Common\include&quot;;..\include" 
     83                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;IVREADER_EXPORTS;GTP_VISIBILITY_MODIFIED_OGRE;GAMETOOLS_ILLUMINATION_MODULE" 
     84                                RuntimeLibrary="2" 
     85                                UsePrecompiledHeader="0" 
     86                                WarningLevel="3" 
     87                                Detect64BitPortabilityProblems="TRUE" 
     88                                DebugInformationFormat="3"/> 
     89                        <Tool 
     90                                Name="VCCustomBuildTool"/> 
     91                        <Tool 
     92                                Name="VCLinkerTool" 
     93                                AdditionalDependencies="OgreMain.lib CEGUIBase.lib OgreGUIRenderer.lib" 
     94                                OutputFile="$(OutDir)/IVReader.dll" 
     95                                LinkIncremental="1" 
     96                                AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\OgreMain\lib\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib&quot;;&quot;..\..\GtpVisibility\lib\$(ConfigurationName)&quot;;&quot;..\..\lib\$(ConfigurationName)&quot;;&quot;..\lib\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\Dependencies\lib\$(ConfigurationName)&quot;" 
     97                                GenerateDebugInformation="TRUE" 
     98                                SubSystem="2" 
     99                                OptimizeReferences="2" 
     100                                EnableCOMDATFolding="2" 
     101                                OptimizeForWindows98="1" 
     102                                ImportLibrary="$(OutDir)/IVReader.lib" 
     103                                TargetMachine="1"/> 
     104                        <Tool 
     105                                Name="VCMIDLTool"/> 
     106                        <Tool 
     107                                Name="VCPostBuildEventTool" 
     108                                CommandLine="copy $(OutDir)\$(TargetFileName) &quot;$(OGRE_PATH)\Samples\Common\bin\$(ConfigurationName)&quot;"/> 
    99109                        <Tool 
    100110                                Name="VCPreBuildEventTool"/> 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreOctreeHierarchyInterface.h

    r2259 r2278  
    1616         
    1717        /** Sets the number of nodes in this octree  
    18                 @remark do not confuse this with the OctreeNode class which is derived from SceneNode 
     18                @remark do not confuse this with the OctreeNode class  
     19                which is derived from SceneNode. 
    1920                @param num number of nodes in the octree 
    2021        */ 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp

    r2258 r2278  
    19281928 
    19291929                ivReader.buildTree(this, node); 
    1930                  
    19311930                ivReader.collapse(); 
    1932  
     1931                 
    19331932                std::stringstream d;  
    19341933                d << "loaded " << filename << " in " << timer->getMilliseconds() * 1e-3 << " secs"; 
     
    19371936                PlatformManager::getSingleton().destroyTimer(timer); 
    19381937 
    1939                 //-- bake into static geometry 
    19401938                /*if (USE_STATIC_GEOMETRY) 
    19411939                { 
     1940                        //-- bake into static geometry 
    19421941                        BakeSceneIntoStaticGeometry("staticVienna", "Vienna"); 
    19431942                }*/ 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOctreeHierarchyInterface.cpp

    r2259 r2278  
    5858        Octree *octree = static_cast<Octree *>(root); 
    5959 
    60         int mask = (int) (rand() * 8); 
     60        int mask = (int) (rand() * 8.0f); 
    6161         
    6262        // random decision 
    63         Octree *child = octree->mChildren[mask & 1][mask & 2][mask & 3]; 
     63        Octree *child = NULL; 
     64         
     65        while (!child) 
     66                child = octree->mChildren[(mask & 4) / 4][(mask & 2) / 2][mask & 1]; 
    6467 
    6568        return GetRandomLeaf(child); 
     
    173176        { 
    174177                octant->setOctreeFullyVisible(octant->isOctreeVisible()); 
     178                         
    175179                return; 
    176180        } 
    177181 
    178         octant->setOctreeFullyVisible(false); 
    179  
     182        octant->setOctreeFullyVisible(true); 
     183         
    180184        Octree *nextChild; 
    181  
     185        //LogManager::getSingleton().logMessage("***"); 
    182186        for (int i = 0; i < 8; ++ i) 
    183187        { 
    184                 int x = i & 4; 
    185                 int y = i & 2; 
     188                int x = (i & 4) / 4; 
     189                int y = (i & 2) / 2; 
    186190                int z = i & 1; 
     191 
     192                //std::stringstream d; d << "x " << x << " y " << y << " z " << z; 
     193                //LogManager::getSingleton().logMessage(d.str()); 
    187194 
    188195                if ((nextChild = octant->mChildren[x][y][z]) != NULL) 
    189196                { 
    190197                        DetermineFullVisibility(nextChild); 
     198                        // this leaf is not fully visible => break 
    191199                        if (!nextChild->isOctreeFullyVisible()) 
    192                         return; 
     200                                octant->setOctreeFullyVisible(false); 
    193201                } 
    194202        } 
    195  
    196         // all children fully visible => pull up 
    197         octant->setOctreeFullyVisible(true); 
    198203} 
    199204//----------------------------------------------------------------------- 
     
    295300        } 
    296301 
    297         //static_cast<OctreeSceneManager *>(mSceneManager)->getBoxes()->push_back(box); 
    298302        static_cast<OctreeSceneManager *>(mSceneManager)->getBoxes()->push_back(box); 
    299303} 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgrePlatformHierarchyInterface.cpp

    r2254 r2278  
    9595        static RenderOperation ro; 
    9696 
    97         //LogManager::getSingleton().logMessage("here66"); 
    9897        SolidBoundingBox *solidBox = GetSolidBoundingBox(); 
    9998         
     
    182181        GtpVisibility::HierarchyNode *node,  
    183182        const bool wasVisible)  
    184 {//LogManager::getSingleton().logMessage("here6960"); 
     183{ 
    185184        // get next available test id 
    186185        GtpVisibility::OcclusionQuery *query = GetNextOcclusionQuery(); 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreSceneContentGenerator.cpp

    r1264 r2278  
    157157                return false; 
    158158 
    159         //mSceneNodes.clear(); // reset list of objects 
    160  
    161         while (!ifstr.eof())  
     159        while (1) 
    162160        { 
    163161                ifstr.getline(line, 256); 
     162 
     163                if (ifstr.eof()) 
     164                        break; 
     165 
    164166                sscanf(line, "%s %f %f %f %f %f %f %f %f %f %f", objName,  
    165167                        &position.x, &position.y, &position.z, 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreTerrainContentGenerator.cpp

    r164 r2278  
    4343        return false; 
    4444} 
     45 
    4546 
    4647/*******************************************************/ 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/Plugin_VisibilitySceneManager.vcproj

    r2255 r2278  
    2626                                RuntimeLibrary="3" 
    2727                                EnableFunctionLevelLinking="TRUE" 
    28                                 RuntimeTypeInfo="TRUE" 
     28                                RuntimeTypeInfo="FALSE" 
    2929                                UsePrecompiledHeader="2" 
    3030                                WarningLevel="3" 
     
    113113                                AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\OgreMain\lib\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib&quot;;&quot;$(OGRE_PATH)\Dependencies\lib\$(ConfigurationName)&quot;;&quot;..\..\..\Preprocessing\lib\$(ConfigurationName)&quot;;..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;..\..\..\Preprocessing\src\GL;..\..\..\..\..\..\..\NonGTP\Zlib\lib;&quot;..\..\lib\$(ConfigurationName)&quot;;&quot;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\$(ConfigurationName)&quot;;&quot;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\ObjReader\lib\$(ConfigurationName)&quot;" 
    114114                                ModuleDefinitionFile="..\misc\OgreVisibilitySceneManager.def" 
    115                                 GenerateDebugInformation="FALSE" 
     115                                GenerateDebugInformation="TRUE" 
    116116                                SubSystem="2" 
    117117                                OptimizeReferences="2" 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/ObjReader/src/ObjReader.vcproj

    r2254 r2278  
    7272                        <Tool 
    7373                                Name="VCCLCompilerTool" 
     74                                Optimization="3" 
     75                                GlobalOptimizations="TRUE" 
     76                                InlineFunctionExpansion="2" 
     77                                EnableIntrinsicFunctions="TRUE" 
     78                                FavorSizeOrSpeed="1" 
     79                                OmitFramePointers="TRUE" 
     80                                EnableFiberSafeOptimizations="TRUE" 
     81                                OptimizeForWindowsApplication="TRUE" 
    7482                                AdditionalIncludeDirectories="&quot;$(OGRE_PATH)\OgreMain\include&quot;;&quot;$(OGRE_PATH)\Dependencies\include&quot;;&quot;$(OGRE_PATH)\Samples\Common\include&quot;;..\include;..\..\..\Preprocessing\src" 
    7583                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;OBJREADER_EXPORTS;GTP_VISIBILITY_MODIFIED_OGRE;GAMETOOLS_ILLUMINATION_MODULE" 
     
    96104                                Name="VCMIDLTool"/> 
    97105                        <Tool 
    98                                 Name="VCPostBuildEventTool"/> 
     106                                Name="VCPostBuildEventTool" 
     107                                CommandLine="copy $(OutDir)\$(TargetFileName) &quot;$(OGRE_PATH)\Samples\Common\bin\$(ConfigurationName)&quot;"/> 
    99108                        <Tool 
    100109                                Name="VCPreBuildEventTool"/> 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/include/CullingManager.h

    r897 r2278  
    44#include "HierarchyInterface.h" 
    55 
     6 
    67namespace GtpVisibility { 
    78 
    89/** This abstract class implements an interface for a specific culling  
    9         algorithm. The algorithm is either used to render a scene or to make a visibility query. 
     10        algorithm. The algorithm is either used to render a scene  
     11        or to make a visibility query. 
    1012*/ 
    1113class CullingManager 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/include/DummyPreprocessingManager.h

    r316 r2278  
    11#ifndef _VisibilityDummyPreprocessingManager_H__ 
    22#define _VisibilityDummyPreprocessingManager_H__ 
     3 
    34 
    45#include "PreprocessingManager.h" 
     
    1819      hierarchyInterface as argument.  
    1920  */ 
    20   DummyPreprocessingManager( HierarchyInterface *hierarchyInterface ); 
     21  DummyPreprocessingManager(HierarchyInterface *hierarchyInterface); 
    2122   
    2223   
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/include/VisibilityEnvironment.h

    r1004 r2278  
    1818    VisibilityEnvironment(); 
    1919        ~VisibilityEnvironment(); 
     20 
    2021        /** Different types of occlusion culling algorithms  
    2122        */ 
     
    3637        std::string getViewCellsFileName(); 
    3738 
    38         GtpVisibilityPreprocessor::Environment *GetPreprocessorEnvironment(); 
     39        //GtpVisibilityPreprocessor::Environment *GetPreprocessorEnvironment(); 
     40}; 
    3941 
    40  
    41 protected: 
    42         //GtpVisibilityPreprocessor::Environment *Environment::GetSingleton(); 
    43 }; 
    4442} // namespace GtpVisibility 
    4543 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/include/VisibilityManager.h

    r925 r2278  
    44#include "CullingManager.h" 
    55#include "VisibilityEnvironment.h" 
     6 
    67 
    78/** This namespace includes all classes which are created by the VUT (Vienna University 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/src/GtpVisibility.vcproj

    r2258 r2278  
    7171                                OptimizeForProcessor="3" 
    7272                                OptimizeForWindowsApplication="TRUE" 
    73                                 AdditionalIncludeDirectories="..\include;&quot;$(OGRE_PATH)\OgreMain\include&quot;;..\..\Preprocessing\src" 
    74                                 PreprocessorDefinitions="WIN32;NDEBUG;_LIB" 
     73                                AdditionalIncludeDirectories="..\include;&quot;$(OGRE_PATH)\OgreMain\include&quot;" 
     74                                PreprocessorDefinitions="WIN32;NDEBUG;_LIB;GTP_VISIBILITY_MODIFIED_OGRE;GAMETOOLS_ILLUMINATION_MODULE" 
    7575                                StringPooling="TRUE" 
    7676                                RuntimeLibrary="2" 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/src/RandomUpdateCullingManager.cpp

    r2259 r2278  
    106106                                        continue; 
    107107                                } 
    108                                  
     108                                if (mHierarchyInterface->IsLeaf(node)) 
     109                                { 
     110                                        if (mHierarchyInterface->IsNodeVisible(node)) 
     111                                                Ogre::LogManager::getSingleton().logMessage("u"); 
     112                                        else 
     113                                                Ogre::LogManager::getSingleton().logMessage("g"); 
     114                                } 
     115 
    109116                                if (mHierarchyInterface->IsNodeFullyVisible(node)) 
    110                                 { 
     117                                {Ogre::LogManager::getSingleton().logMessage("here8"); 
    111118                                        // node fully visible => test only random leaves 
    112119                                        for (int i = 0; i < mRandomCandidates; ++ i) 
    113120                                        { 
     121                                                Ogre::LogManager::getSingleton().logMessage("z"); 
    114122                                                HierarchyNode *randomLeaf = mHierarchyInterface->GetRandomLeaf(node); 
    115123 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/src/VisibilityEnvironment.cpp

    r2183 r2278  
    11#include "VisibilityEnvironment.h" 
    2 #include "common.h" 
    3 #include "Environment.h" 
     2//#include "common.h" 
     3//#include "Environment.h" 
    44 
    55 
     
    1010{ 
    1111        // HACK: loading debug stream should not happen here 
    12         GtpVisibilityPreprocessor::Debug.open("debug.log"); 
    13         // load environment 
    14         //Environment::GetSingleton() = new GtpVisibilityPreprocessor::Environment::GetSingleton();       
     12        //GtpVisibilityPreprocessor::Debug.open("debug.log"); 
    1513} 
    1614//----------------------------------------------------------------------- 
    1715VisibilityEnvironment::~VisibilityEnvironment() 
    1816{ 
    19         GtpVisibilityPreprocessor::Environment::DelSingleton(); 
     17        //GtpVisibilityPreprocessor::Environment::DelSingleton(); 
    2018} 
    2119//----------------------------------------------------------------------- 
     
    2321{                
    2422        //-- parse environment 
    25         return GtpVisibilityPreprocessor::Environment::GetSingleton()->ReadEnvFile(filename.c_str()); 
     23        return false;//GtpVisibilityPreprocessor::Environment::GetSingleton()->ReadEnvFile(filename.c_str()); 
    2624} 
    2725//----------------------------------------------------------------------- 
     
    2927{ 
    3028        char str[200]; 
    31         GtpVisibilityPreprocessor::Environment::GetSingleton()->GetStringValue("Scene.filename", str); 
     29        //GtpVisibilityPreprocessor::Environment::GetSingleton()->GetStringValue("Scene.filename", str); 
    3230        return str; 
    3331} 
     
    3634{ 
    3735        char str[200]; 
    38         GtpVisibilityPreprocessor::Environment::GetSingleton()->GetStringValue("ViewCells.filename", str); 
     36        //GtpVisibilityPreprocessor::Environment::GetSingleton()->GetStringValue("ViewCells.filename", str); 
    3937         
    4038        return str; 
    4139} 
    4240//----------------------------------------------------------------------- 
    43 GtpVisibilityPreprocessor::Environment *VisibilityEnvironment::GetPreprocessorEnvironment() 
     41/*GtpVisibilityPreprocessor::Environment *VisibilityEnvironment::GetPreprocessorEnvironment() 
    4442{ 
    4543        return GtpVisibilityPreprocessor::Environment::GetSingleton(); 
    46 } 
     44}*/ 
     45 
    4746} // namespace GtpVisibility 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/src/VisibilityManager.cpp

    r2066 r2278  
    55#include "DummyPreprocessingManager.h" 
    66#include "DummyQueryManager.h" 
    7 //#include "BatchedQueriesCullingManager.h" 
     7#include "RandomUpdateCullingManager.h" 
    88 
    99namespace GtpVisibility { 
     
    5353                case VisibilityEnvironment::STOP_AND_WAIT_CULLING: 
    5454                        mCullingManager = new StopAndWaitCullingManager(); 
    55                                 //new BatchedQueriesCullingManager(); 
    5655                        break; 
    5756 
     
    6160 
    6261                case VisibilityEnvironment::FRUSTUM_CULLING: 
    63                         mCullingManager = new FrustumCullingManager(); 
     62                        //mCullingManager = new FrustumCullingManager(); 
     63                        mCullingManager = new RandomUpdateCullingManager(); 
    6464                        break; 
    6565 
Note: See TracChangeset for help on using the changeset viewer.