Changeset 2130 for GTP/trunk/Lib/Vis


Ignore:
Timestamp:
02/20/07 13:05:26 (18 years ago)
Author:
mattausch
Message:

runs also under debug mode now

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

Legend:

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

    r2123 r2130  
    1616                {101A7691-74F3-48B4-96A3-CF35578F5900} = {101A7691-74F3-48B4-96A3-CF35578F5900} 
    1717                {EABCE292-D598-4600-A1C9-2591E7D62FDA} = {EABCE292-D598-4600-A1C9-2591E7D62FDA} 
     18                {7319E499-473D-4CE5-9983-725D6E68A55D} = {7319E499-473D-4CE5-9983-725D6E68A55D} 
    1819                {7319E499-473D-4CE5-9983-725D6E68A55D} = {7319E499-473D-4CE5-9983-725D6E68A55D} 
    1920                {7319E499-473D-4CE5-9983-725D6E68A55D} = {7319E499-473D-4CE5-9983-725D6E68A55D} 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/IVReader/src/IVReader.vcproj

    r2123 r2130  
    7373                                Name="VCCLCompilerTool" 
    7474                                AdditionalIncludeDirectories=""$(OGRE_PATH)\Dependencies\include\CEGUI";"$(OGRE_PATH)\Samples\Common\CEGUIRenderer\include";"$(OGRE_PATH)\OgreMain\include";"$(OGRE_PATH)\Dependencies\include";"$(OGRE_PATH)\Samples\Common\include";..\include" 
    75                                 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;IVREADER_EXPORTS;GTP_VISIBILITY_MODIFIED_OGRE;GAMETOOLS_ILLUMINATION_MODULE" 
     75                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;IVREADER_EXPORTS;GTP_VISIBILITY_MODIFIED_OGRE;GAMETOOLS_ILLUMINATION_MODULE1;USE_VERBOSE_PVS" 
    7676                                RuntimeLibrary="2" 
    7777                                UsePrecompiledHeader="0" 
     
    219219                <Configuration 
    220220                        Name="Release Internal|Win32" 
    221                         OutputDirectory="$(ConfigurationName)" 
    222                         IntermediateDirectory="$(ConfigurationName)" 
     221                        OutputDirectory="Release" 
     222                        IntermediateDirectory="Release" 
    223223                        ConfigurationType="2" 
    224224                        CharacterSet="2"> 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreKdTreeSceneManager.cpp

    r2123 r2130  
    364364        else if (strKey == "UseViewCells") 
    365365        {  
    366                         Ogre::LogManager::getSingleton().logMessage("here44"); 
    367366                if (mViewCellsLoaded) 
    368367                { 
    369                                 Ogre::LogManager::getSingleton().logMessage("here99"); 
    370368                        mUseViewCells = *static_cast<const bool *>(pValue); 
    371369 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp

    r2123 r2130  
    176176                float maxAxis = std::max(max_x, max_y); 
    177177                maxAxis = std::max(maxAxis, max_z); 
    178                 //resize(AxisAlignedBox( 0, 0, 0, maxAxis, maxAxis, maxAxis)); 
    179                 resize(AxisAlignedBox( 0, 0, 0, max_x, max_y, max_z )); 
     178                resize(AxisAlignedBox( 0, 0, 0, maxAxis, maxAxis, maxAxis)); 
     179                //resize(AxisAlignedBox( 0, 0, 0, max_x, max_y, max_z )); 
    180180 
    181181                setupTerrainMaterial(); 
     
    18441844        mTerrainPageSources.push_back(ps); 
    18451845        tsm->registerPageSource("Heightmap", ps); 
    1846  
     1846LogManager::getSingleton().logMessage("here4"); 
    18471847        return tsm; 
    18481848} 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/Plugin_VisibilitySceneManager.vcproj

    r2123 r2130  
    2020                                Name="VCCLCompilerTool" 
    2121                                Optimization="0" 
    22                                 AdditionalIncludeDirectories="&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\include&quot;;&quot;$(OGRE_PATH)\Samples\Common\include&quot;;&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;;..\include;..\..\..\OnlineCullingCHC\include;..\..\..\Preprocessing\src;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\ObjReader\include" 
     22                                AdditionalIncludeDirectories="&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\include&quot;;&quot;$(OGRE_PATH)\Samples\Common\include&quot;;&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;;..\include;..\..\..\OnlineCullingCHC\include;..\..\..\Preprocessing\src;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\ObjReader\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\include;..\..\..\Preprocessing\src\Timer" 
    2323                                PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;PLUGIN_KD_TERRAIN_EXPORTS;GTP_VISIBILITY_MODIFIED_OGRE" 
    2424                                MinimalRebuild="TRUE" 
     
    4141                                LinkIncremental="1" 
    4242                                SuppressStartupBanner="TRUE" 
    43                                 AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\OgreMain\lib\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\Dependencies\lib\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib&quot;;&quot;..\lib\$(ConfigurationName)&quot;;&quot;..\..\lib\$(ConfigurationName)&quot;;&quot;..\..\..\Preprocessing\lib\$(ConfigurationName)&quot;;..\..\..\Preprocessing\src\GL;..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;&quot;$(CG_LIB_PATH)&quot;;&quot;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\ObjReader\lib\$(ConfigurationName)&quot;;&quot;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\$(ConfigurationName)&quot;" 
     43                                AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\OgreMain\lib\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\Dependencies\lib\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib&quot;;&quot;..\lib\$(ConfigurationName)&quot;;&quot;..\..\lib\$(ConfigurationName)&quot;;&quot;..\..\..\Preprocessing\lib\$(ConfigurationName)&quot;;..\..\..\Preprocessing\src\GL;..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;&quot;$(CG_LIB_PATH)&quot;;&quot;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\$(ConfigurationName)&quot;;&quot;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\ObjReader\lib\$(ConfigurationName)&quot;" 
    4444                                ModuleDefinitionFile="..\misc\OgreVisibilitySceneManager.def" 
    4545                                GenerateDebugInformation="TRUE" 
     
    8787                                OmitFramePointers="TRUE" 
    8888                                EnableFiberSafeOptimizations="TRUE" 
    89                                 OptimizeForProcessor="0" 
     89                                OptimizeForProcessor="3" 
    9090                                OptimizeForWindowsApplication="TRUE" 
    91                                 AdditionalIncludeDirectories="&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\include&quot;;&quot;$(OGRE_PATH)\Samples\Common\include&quot;;&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;;..\include;..\..\..\OnlineCullingCHC\include;..\..\..\Preprocessing\src;..\..\..\Preprocessing\src\Timer;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\ObjReader\include" 
    92                                 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;PLUGIN_KD_TERRAIN_EXPORTS;GTP_VISIBILITY_MODIFIED_OGRE;GAMETOOLS_ILLUMINATION_MODULE" 
     91                                AdditionalIncludeDirectories="&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\include&quot;;&quot;$(OGRE_PATH)\Samples\Common\include&quot;;&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;;..\include;..\..\..\OnlineCullingCHC\include;..\..\..\Preprocessing\src;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\include;..\..\..\Preprocessing\src\Timer;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\ObjReader\include" 
     92                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;PLUGIN_KD_TERRAIN_EXPORTS;GTP_VISIBILITY_MODIFIED_OGRE;GAMETOOLS_ILLUMINATION_MODULE1" 
    9393                                StringPooling="TRUE" 
    9494                                RuntimeLibrary="2" 
     
    297297                                OptimizeForProcessor="3" 
    298298                                OptimizeForWindowsApplication="TRUE" 
    299                                 AdditionalIncludeDirectories="&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\include&quot;;&quot;$(OGRE_PATH)\Samples\Common\include&quot;;&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;;..\include;..\..\..\OnlineCullingCHC\include;..\..\..\Preprocessing\src;..\IVReader\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\include" 
     299                                AdditionalIncludeDirectories="&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\include&quot;;&quot;$(OGRE_PATH)\Samples\Common\include&quot;;&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;;..\include;..\..\..\OnlineCullingCHC\include;..\..\..\Preprocessing\src;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\ObjReader\include" 
    300300                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;GTP_VISIBILITY_MODIFIED_OGRE;PLUGIN_KD_TERRAIN_EXPORTS" 
    301301                                StringPooling="TRUE" 
     
    318318                                LinkIncremental="1" 
    319319                                SuppressStartupBanner="TRUE" 
    320                                 AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\Release&quot;;&quot;$(OGRE_PATH)\OgreMain\lib\Release&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib&quot;;..\..\GtpVisibility\lib\Release;..\..\lib\Release;..\lib\Release;&quot;$(OGRE_PATH)\Dependencies\lib\Release&quot;;..\..\..\Preprocessing\lib\Release;..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;..\..\..\Preprocessing\src\GL;&quot;$(CG_LIB_PATH)&quot;;..\..\..\..\..\..\..\NonGTP\Zlib\lib" 
     320                                AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\Release&quot;;&quot;$(OGRE_PATH)\OgreMain\lib\Release&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib&quot;;..\..\GtpVisibility\lib\Release;..\..\lib\Release;..\lib\Release;&quot;$(OGRE_PATH)\Dependencies\lib\Release&quot;;..\..\..\Preprocessing\lib\Release;..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;..\..\..\Preprocessing\src\GL;&quot;$(CG_LIB_PATH)&quot;;..\..\..\..\..\..\..\NonGTP\Zlib\lib;..\..\..\..\..\Lib\Vis\Preprocessing\MultiLevelRayTracing\RTWorld\Release;..\..\..\..\..\Lib\Vis\Preprocessing\MultiLevelRayTracing\RTScene\Release;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\Release;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\ObjReader\lib\Release" 
    321321                                ModuleDefinitionFile="..\misc\OgreVisibilitySceneManager.def" 
    322322                                GenerateDebugInformation="FALSE" 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/ObjReader/src/ObjReader.vcproj

    r2123 r2130  
    3333                        <Tool 
    3434                                Name="VCLinkerTool" 
    35                                 AdditionalDependencies="OgreMain_d.lib CEGUIBase_d.lib OgreGUIRenderer_d.lib Preprocessor.lib xerces-c_2.lib zdll.lib zziplibd.lib" 
    36                                 OutputFile="$(OutDir)/ObjReader.dll" 
    37                                 LinkIncremental="1" 
    38                                 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;;&quot;..\..\..\Preprocessing\lib\$(ConfigurationName)&quot;;..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib" 
     35                                AdditionalDependencies="OgreMain_d.lib Preprocessor.lib xerces-c_2D.lib zdll.lib zziplibd.lib" 
     36                                OutputFile="$(OutDir)/ObjReader.dll" 
     37                                LinkIncremental="1" 
     38                                AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\OgreMain\lib\$(ConfigurationName)&quot;;&quot;..\..\GtpVisibility\lib\$(ConfigurationName)&quot;;&quot;..\..\lib\$(ConfigurationName)&quot;;&quot;..\lib\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\Dependencies\lib\$(ConfigurationName)&quot;;&quot;..\..\..\Preprocessing\lib\$(ConfigurationName)&quot;;..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;..\..\..\..\..\..\NonGTP\Zlib\lib;..\..\..\Preprocessing\src\GL" 
    3939                                GenerateDebugInformation="TRUE" 
    4040                                ProgramDatabaseFile="$(OutDir)/$(ProjectName).pdb" 
     
    7373                                Name="VCCLCompilerTool" 
    7474                                AdditionalIncludeDirectories="&quot;$(OGRE_PATH)\OgreMain\include&quot;;&quot;$(OGRE_PATH)\Dependencies\include&quot;;&quot;$(OGRE_PATH)\Samples\Common\include&quot;;..\include;..\..\..\Preprocessing\src" 
    75                                 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;OBJREADER_EXPORTS;GTP_VISIBILITY_MODIFIED_OGRE;GAMETOOLS_ILLUMINATION_MODULE" 
     75                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;OBJREADER_EXPORTS;GTP_VISIBILITY_MODIFIED_OGRE;GAMETOOLS_ILLUMINATION_MODULE1" 
    7676                                RuntimeLibrary="2" 
    7777                                UsePrecompiledHeader="0" 
     
    8686                                OutputFile="$(OutDir)/ObjReader.dll" 
    8787                                LinkIncremental="1" 
    88                                 AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\OgreMain\lib\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\Dependencies\lib\$(ConfigurationName)&quot;;&quot;..\..\lib\$(ConfigurationName)&quot;;&quot;..\lib\$(ConfigurationName)&quot;;&quot;..\..\..\Preprocessing\lib\$(ConfigurationName)&quot;;..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib" 
     88                                AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\OgreMain\lib\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\Dependencies\lib\$(ConfigurationName)&quot;;&quot;..\..\lib\$(ConfigurationName)&quot;;&quot;..\lib\$(ConfigurationName)&quot;;&quot;..\..\..\Preprocessing\lib\$(ConfigurationName)&quot;;..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;..\..\..\Preprocessing\src\GL" 
    8989                                GenerateDebugInformation="FALSE" 
    9090                                SubSystem="2" 
     
    219219                <Configuration 
    220220                        Name="Release Internal|Win32" 
    221                         OutputDirectory="$(ConfigurationName)" 
    222                         IntermediateDirectory="$(ConfigurationName)" 
     221                        OutputDirectory="Release" 
     222                        IntermediateDirectory="Release" 
    223223                        ConfigurationType="2" 
    224224                        CharacterSet="2"> 
     
    232232                                OmitFramePointers="TRUE" 
    233233                                EnableFiberSafeOptimizations="TRUE" 
    234                                 OptimizeForProcessor="3" 
     234                                OptimizeForProcessor="0" 
    235235                                OptimizeForWindowsApplication="TRUE" 
    236                                 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" 
     236                                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;..\..\..\Preprocessing\src" 
    237237                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;OBJREADER_EXPORTS;GTP_VISIBILITY_MODIFIED_OGRE" 
    238238                                StringPooling="TRUE" 
     
    246246                        <Tool 
    247247                                Name="VCLinkerTool" 
    248                                 AdditionalDependencies="OgreMain.lib CEGUIBase.lib OgreGUIRenderer.lib" 
    249                                 OutputFile="$(OutDir)/ObjReader.dll" 
    250                                 LinkIncremental="1" 
    251                                 AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\OgreMain\lib\Release&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib&quot;;..\..\GtpVisibility\lib\Release;..\..\lib\Release;..\lib\Release;&quot;$(OGRE_PATH)\Dependencies\lib\Release&quot;" 
    252                                 GenerateDebugInformation="TRUE" 
     248                                AdditionalDependencies="OgreMain.lib zdll.lib zziplib.lib Preprocessor.lib xerces-c_2.lib RTScene.lib RTWorld.lib" 
     249                                OutputFile="$(OutDir)/ObjReader.dll" 
     250                                LinkIncremental="1" 
     251                                AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\Dependencies\lib\Release&quot;;&quot;$(OGRE_PATH)\OgreMain\lib\Release&quot;;..\..\GtpVisibility\lib\Release;..\..\lib\Release;..\lib\Release;..\..\..\Preprocessing\lib\Release;..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;..\..\..\Preprocessing\src\GL;..\..\..\..\..\Lib\Vis\Preprocessing\MultiLevelRayTracing\RTWorld\Release;..\..\..\..\..\Lib\Vis\Preprocessing\MultiLevelRayTracing\RTScene\Release" 
     252                                GenerateDebugInformation="FALSE" 
    253253                                SubSystem="2" 
    254254                                OptimizeReferences="2" 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/scripts/terrainCulling.cfg

    r2107 r2130  
    2626 
    2727#Scene=../../../../../resources/media/house_test1.iv 
    28 Scene=../../../../../resources/media/city1500_flat_1.iv;../../../../../resources/media/roofs_1500.iv;../../../../../resources/media/CityRoads60.iv;../../../../../resources/media/CityPlane60.iv 
     28#Scene=../../../../../resources/media/city1500_flat_1.iv;../../../../../resources/media/roofs_1500.iv;../../../../../resources/media/CityRoads60.iv;../../../../../resources/media/CityPlane60.iv 
    2929#Scene=../../../../../resources/media/city1.iv;../../../../../resources/media/roofs_1500.iv;../../../../../resources/media/CityRoads60.iv 
    3030 
     
    3333# 
    3434 
    35 ViewCells=../../../../../../../GTP/trunk/Lib/Vis/Preprocessing/scripts/vienna-visibility.xml.gz 
     35#ViewCells=../../../../../../../GTP/trunk/Lib/Vis/Preprocessing/scripts/vienna-visibility.xml.gz 
    3636 
    3737 
     
    4040# 
    4141 
    42 FlushQueue=1 
     42#FlushQueue=true 
    4343 
    4444 
     
    5050# 
    5151 
    52 #Scene=terrain 
     52Scene=terrain 
    5353 
    5454# 
     
    5656# 
    5757 
    58 #FlushQueue=false 
     58FlushQueue=false 
    5959 
    6060#UseDepthPass=false 
  • GTP/trunk/Lib/Vis/Preprocessing/scripts/preprocess_visibility.sh

    r2124 r2130  
    11#!/bin/sh 
    22 
    3 #PREPROCESSOR=../bin/release/preprocessor.exe 
    4 PREPROCESSOR=../bin/debug/preprocessor.exe 
     3PREPROCESSOR=../bin/release/preprocessor.exe 
     4#PREPROCESSOR=../bin/debug/preprocessor.exe 
    55 
    66if [ $# -ne 3 ] 
  • GTP/trunk/Lib/Vis/Preprocessing/scripts/preprocess_visibility_internal.sh

    r2099 r2130  
    1313export PATH=$PATH:../bin 
    1414 
    15 NUM_SAMPLE_RAYS=1000000000 
     15#NUM_SAMPLE_RAYS=1000000000 
     16NUM_SAMPLE_RAYS=10000000 
    1617 
    1718$PREPROCESSOR -total_samples=$NUM_SAMPLE_RAYS \ 
  • GTP/trunk/Lib/Vis/Preprocessing/src/Environment.cpp

    r2124 r2130  
    27852785                                        "99990.0"); 
    27862786         
     2787        RegisterOption("Hierarchy.useTraversalTree", 
     2788                                        optBool, 
     2789                                        "hierarchy_use_traversal_tree=", 
     2790                                        "false"); 
    27872791 
    27882792        /////////////////////////////////////////////////////// 
  • GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp

    r2124 r2130  
    160160                "Hierarchy.Construction.minAvgRayContri", mMinAvgRayContri); 
    161161 
     162        Environment::GetSingleton()->GetBoolValue( 
     163                "Hierarchy.useTraversalTree", mUseTraversalTree); 
     164 
    162165        // for comparing it with byte - value 
    163166        mTermMaxMemory *= (1024.0f * 1024.0f); 
     
    399402 
    400403        // create a traversal tree which is optimized for view cell casting  
    401         if (1)  
     404        if (mUseTraversalTree)  
    402405        { 
    403406                CreateTraversalTree(); 
  • GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.h

    r2124 r2130  
    612612        BvHierarchy *mBvHierarchy; 
    613613         
     614        bool mUseTraversalTree; 
     615 
    614616protected: 
    615617 
     
    682684 
    683685        ViewCellContainer mOldViewCells; 
    684  
    685         //ObjectPvs mOldPvs; 
    686686}; 
    687687 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ObjectsParser.cpp

    r2123 r2130  
    364364 
    365365                        GzFileInputSource isource(myFilePath); 
    366                         Debug<<"here93" << endl; 
    367366                        parser->parse(isource); 
    368367#else 
     
    370369 
    371370#endif 
    372 Debug<<"here932" << endl; 
     371 
    373372                        const unsigned long endMillis = XMLPlatformUtils::getCurrentMillis(); 
    374373                        duration = endMillis - startMillis; 
  • GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.vcproj

    r2123 r2130  
    222222                                OptimizeForWindowsApplication="TRUE" 
    223223                                AdditionalIncludeDirectories="..\src;..\..\..\..\..\..\NonGTP\Devil\include;..\..\..\..\..\..\NonGTP\Zlib\include;..\..\..\..\..\..\NonGTP\Xerces;..\..\..\..\..\..\NonGTP\Boost;..\MultiLevelRayTracing;&quot;$(QTDIR)\include\QtCore&quot;;&quot;$(QTDIR)\include\QtGui&quot;;&quot;$(QTDIR)\include&quot;;&quot;$(QTDIR)\include\QtOpenGl&quot;;&quot;$(CG_INC_PATH)&quot;;Timer" 
    224                                 PreprocessorDefinitions="WIN32;NDEBUG;_LIB;GTP_INTERNAL;USE_QT" 
     224                                PreprocessorDefinitions="WIN32;NDEBUG;_LIB;GTP_INTERNAL;USE_QT;USE_BIT_PVS" 
    225225                                ExceptionHandling="TRUE" 
    226226                                RuntimeLibrary="2" 
     
    383383                        </File> 
    384384                        <File 
    385                                 RelativePath=".\BitVectorPvs.cpp"> 
    386                         </File> 
    387                         <File 
    388385                                RelativePath=".\BitVectorPvs.h"> 
    389386                        </File> 
  • GTP/trunk/Lib/Vis/Preprocessing/src/RssTree.cpp

    r2119 r2130  
    403403  cout<<"Dirr Bbox = "<<dirBBox<<endl; 
    404404   
    405   stat.rays = rays.size(); 
     405  stat.rays = (int)rays.size(); 
    406406  stat.initialPvsSize = 0; 
    407407  for (int i=0; i < mRoots.size(); i++) { 
     
    862862        info.axis = axis; 
    863863        info.costRatio = 0.5f; // not true but good for speeding up the subdivision at the top levels! 
    864         info.raysBack = info.raysFront = leaf->rays.size()/2; 
     864        info.raysBack = info.raysFront = (int)leaf->rays.size()/2; 
    865865        return; 
    866866  } 
     
    953953 
    954954  currInfo.raysBack = 0; 
    955   currInfo.raysFront = leaf->rays.size(); 
     955  currInfo.raysFront = (int)leaf->rays.size(); 
    956956   
    957957  currInfo.pvsBack = 0; 
     
    11351135  splitCandidates->clear(); 
    11361136   
    1137   int requestedSize = 2*(node->rays.size()); 
     1137  int requestedSize = 2*((int)node->rays.size()); 
    11381138  // creates a sorted split candidates array 
    11391139  if (splitCandidates->capacity() > 500000 && 
     
    11951195  } 
    11961196 
    1197   if ( (int)(leaf->rays.size()) > stat.maxRayRefs) 
    1198     stat.maxRayRefs = leaf->rays.size(); 
     1197  if ((int)leaf->rays.size() > stat.maxRayRefs) 
     1198    stat.maxRayRefs = (int)leaf->rays.size(); 
    11991199 
    12001200} 
     
    13211321  // update stats 
    13221322  stat.rayRefs -= (int)leaf->rays.size(); 
    1323   stat.rayRefs += back->rays.size() + front->rays.size(); 
     1323  stat.rayRefs += (int)(back->rays.size() + front->rays.size()); 
    13241324 
    13251325   
     
    14611461  Debug<<"done."<<endl<<flush; 
    14621462 
    1463   stat.rayRefs += add.size() - remove.size(); 
     1463  stat.rayRefs += (int)add.size() - (int)remove.size(); 
    14641464 
    14651465  Debug<<"Updating statistics..."<<endl<<flush; 
     
    18171817        } 
    18181818  } 
    1819   return pvs.size(); 
     1819  return (int)pvs.size(); 
    18201820} 
    18211821 
     
    20212021                                          ) 
    20222022{ 
    2023   int nrays = leaf->rays.size(); 
     2023  int nrays = (int)leaf->rays.size(); 
    20242024 
    20252025  if (nrays == 2) { 
     
    20402040 
    20412041  if (r1 == r2) 
    2042         r2 = (r1+1)%leaf->rays.size(); 
     2042        r2 = (r1+1)%(int)leaf->rays.size(); 
    20432043 
    20442044#else 
     
    21582158  int indices[3]; 
    21592159 
    2160   int size = rays.size(); 
     2160  int size = (int)rays.size(); 
    21612161  // use russian roulete selection for the tripple 
    21622162  // number of free positions for the bullet 
     
    22302230        for (; ri != rays.end(); ++ri, ++rayIndex) { 
    22312231          RssTreeNode::RayInfo *ray = *ri; 
    2232           int tries = rays.size(); 
     2232          int tries = (int)rays.size(); 
    22332233          for (int i = 0; i < tries; i++) { 
    22342234                int r1, r2, r3; 
     
    26482648  } 
    26492649   
    2650   return rays.size(); 
     2650  return (int)rays.size(); 
    26512651   
    26522652} 
  • GTP/trunk/Lib/Vis/Preprocessing/src/SamplingPreprocessor.cpp

    r2066 r2130  
    137137           
    138138 
    139           rssSamples += vssRays.size(); 
     139          rssSamples += (int)vssRays.size(); 
    140140          for (int j=0; j < vssRays.size(); j++) 
    141141                if (vssRays[j]->mFlags & VssRay::Valid) { 
  • GTP/trunk/Lib/Vis/Preprocessing/src/TestPreprocessor.vcproj

    r2120 r2130  
    8181                                OptimizeForWindowsApplication="TRUE" 
    8282                                AdditionalIncludeDirectories="..\include;..\..\..\..\..\..\NonGTP\Boost;..\..\..\..\..\..\NonGTP\Devil\include;..\..\..\..\..\..\NonGTP\Zlib\include;..\..\..\..\..\..\NonGTP\Xerces;..\..\MultiLevelRayTracing;Timer" 
    83                                 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;NO_QT;USE_VERBOSE_PVS" 
     83                                PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;NO_QT" 
    8484                                RuntimeLibrary="2" 
    8585                                EnableEnhancedInstructionSet="2" 
     
    199199                                OptimizeForWindowsApplication="TRUE" 
    200200                                AdditionalIncludeDirectories="..\include;..\..\..\..\..\..\NonGTP\Boost;..\src;..\..\..\..\..\..\NonGTP\Devil\include;..\..\..\..\..\..\NonGTP\Zlib\include;..\..\..\..\..\..\NonGTP\Xerces;&quot;$(QTDIR)\include\QtOpenGl&quot;;&quot;$(QTDIR)\include\Qt&quot;;&quot;$(QTDIR)\include\QtCore&quot;;&quot;$(QTDIR)\include&quot;;QtInterface" 
    201                                 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;GTP_INTERNAL;USE_QT;USE_CG" 
     201                                PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;GTP_INTERNAL;USE_QT;USE_CG;USE_BIT_PVS" 
    202202                                ExceptionHandling="TRUE" 
    203203                                RuntimeLibrary="2" 
  • GTP/trunk/Lib/Vis/Preprocessing/src/TraversalTree.cpp

    r2124 r2130  
    640640                        // hack: assume that we use vsp tree,  
    641641                        //P so we can just test intersection with bounding boxes 
    642                         if (viewCell->GetBox().Intersects(lStart, lEnd)); 
     642                        if (viewCell->GetBox().Intersects(lStart, lEnd)) 
    643643                        { 
    644644                                hitViewCells.push_back(viewCell); 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp

    r2124 r2130  
    389389                        if (IsValidViewSpace(viewCell) &&  
    390390                                GenerateViewPoints(viewCell, nViewPoints, viewPoints)) 
    391                         {cout << "here99" << endl; 
     391                        { 
    392392                                Debug << "vc: " << viewCell->GetId() << endl; 
    393393 
     
    12891289        ViewCellContainer viewCells; 
    12901290#ifdef USE_BIT_PVS 
    1291         cout << "objects size: " << ObjectPvsIterator::sObjects.size() << endl; 
     1291        cout << "objects size: " << (int)ObjectPvsIterator::sObjects.size() << endl; 
    12921292        cout << "pvs size: " <<  ObjectPvs::sPvsSize << endl; 
    12931293#endif 
     
    70227022 
    70237023        if (1) 
    7024         {       // create a traversal tree for optimal view cell casting 
    7025                 mHierarchyManager->CreateTraversalTree(); 
    7026         } 
    7027 } 
    7028  
    7029  
    7030 } 
     7024        {        
     7025                if (mHierarchyManager->mUseTraversalTree) 
     7026                { 
     7027                        // create a traversal tree for optimal view cell casting 
     7028                        mHierarchyManager->CreateTraversalTree(); 
     7029                } 
     7030        } 
     7031} 
     7032 
     7033 
     7034} 
Note: See TracChangeset for help on using the changeset viewer.