Changeset 2353


Ignore:
Timestamp:
05/08/07 13:04:43 (17 years ago)
Author:
mattausch
Message:

cleaned up project files

Location:
GTP/trunk
Files:
5 deleted
26 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TestCullingTerrain.vcproj

    r2290 r2353  
    9898                                LinkIncremental="1" 
    9999                                AdditionalLibraryDirectories=""$(OGRE_PATH)\Dependencies\Lib\$(ConfigurationName)";"$(OGRE_PATH)\OgreMain\Lib\$(ConfigurationName)";"$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\$(ConfigurationName)";"$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib";"..\..\..\..\..\Lib\Vis\OnlineCullingCHC\lib\$(ConfigurationName)";"..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\lib\$(ConfigurationName)";"..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\$(ConfigurationName)";..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;"..\..\..\..\..\Lib\Vis\Preprocessing\lib\$(ConfigurationName)"" 
    100                                 GenerateDebugInformation="TRUE" 
    101                                 SubSystem="2" 
    102                                 OptimizeReferences="2" 
    103                                 EnableCOMDATFolding="2" 
    104                                 TargetMachine="1"/> 
    105                         <Tool 
    106                                 Name="VCMIDLTool"/> 
    107                         <Tool 
    108                                 Name="VCPostBuildEventTool"/> 
    109                         <Tool 
    110                                 Name="VCPreBuildEventTool"/> 
    111                         <Tool 
    112                                 Name="VCPreLinkEventTool"/> 
    113                         <Tool 
    114                                 Name="VCResourceCompilerTool"/> 
    115                         <Tool 
    116                                 Name="VCWebServiceProxyGeneratorTool"/> 
    117                         <Tool 
    118                                 Name="VCXMLDataGeneratorTool"/> 
    119                         <Tool 
    120                                 Name="VCWebDeploymentTool"/> 
    121                         <Tool 
    122                                 Name="VCManagedWrapperGeneratorTool"/> 
    123                         <Tool 
    124                                 Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
    125                 </Configuration> 
    126                 <Configuration 
    127                         Name="mlrt|Win32" 
    128                         OutputDirectory="$(ConfigurationName)" 
    129                         IntermediateDirectory="$(ConfigurationName)" 
    130                         ConfigurationType="1" 
    131                         CharacterSet="2"> 
    132                         <Tool 
    133                                 Name="VCCLCompilerTool" 
    134                                 AdditionalIncludeDirectories="&quot;$(OGRE_PATH)\Dependencies\include&quot;;&quot;$(OGRE_PATH)\OgreMain\include&quot;;&quot;$(OGRE_PATH)\Samples\Common\include&quot;;&quot;$(OGRE_PATH)\Dependencies\include\CEGUI&quot;;&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\include&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\include&quot;;..\..\Ogre\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\include;..\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\include;&quot;$(LIBXML_HOME)\include&quot;;d:\work\Collada\include" 
    135                                 PreprocessorDefinitions="_WINDOWS;_STLP_USE_DYNAMIC_LIB;OGRE_LIBRARY_IMPORTS;_RELEASE;WIN32;_STLP_RELEASE;GTP_VISIBILITY_MODIFIED_OGRE" 
    136                                 RuntimeLibrary="2" 
    137                                 RuntimeTypeInfo="TRUE" 
    138                                 UsePrecompiledHeader="0" 
    139                                 WarningLevel="3" 
    140                                 Detect64BitPortabilityProblems="TRUE" 
    141                                 DebugInformationFormat="3"/> 
    142                         <Tool 
    143                                 Name="VCCustomBuildTool"/> 
    144                         <Tool 
    145                                 Name="VCLinkerTool" 
    146                                 AdditionalDependencies="OGREMain.LIB CEGUIBase.lib OgreGUIRenderer.lib Plugin_OctreeSceneManager.lib Plugin_VisibilitySceneManager.lib IVReader.lib zdll.lib zziplib.lib xerces-c_2.lib" 
    147                                 OutputFile="$(OGRE_PATH)/Samples/Common/bin/Release/TestCullingTerrain.exe" 
    148                                 LinkIncremental="1" 
    149                                 AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\Dependencies\Lib\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\OgreMain\Lib\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib&quot;;&quot;..\..\Ogre\lib\$(ConfigurationName)&quot;;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\lib;&quot;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\lib\$(ConfigurationName)&quot;;&quot;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\$(ConfigurationName)&quot;;..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib" 
    150                                 GenerateDebugInformation="TRUE" 
    151                                 SubSystem="2" 
    152                                 OptimizeReferences="2" 
    153                                 EnableCOMDATFolding="2" 
    154                                 TargetMachine="1"/> 
    155                         <Tool 
    156                                 Name="VCMIDLTool"/> 
    157                         <Tool 
    158                                 Name="VCPostBuildEventTool"/> 
    159                         <Tool 
    160                                 Name="VCPreBuildEventTool"/> 
    161                         <Tool 
    162                                 Name="VCPreLinkEventTool"/> 
    163                         <Tool 
    164                                 Name="VCResourceCompilerTool"/> 
    165                         <Tool 
    166                                 Name="VCWebServiceProxyGeneratorTool"/> 
    167                         <Tool 
    168                                 Name="VCXMLDataGeneratorTool"/> 
    169                         <Tool 
    170                                 Name="VCWebDeploymentTool"/> 
    171                         <Tool 
    172                                 Name="VCManagedWrapperGeneratorTool"/> 
    173                         <Tool 
    174                                 Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
    175                 </Configuration> 
    176                 <Configuration 
    177                         Name="Release_Internal|Win32" 
    178                         OutputDirectory="$(ConfigurationName)" 
    179                         IntermediateDirectory="$(ConfigurationName)" 
    180                         ConfigurationType="1" 
    181                         CharacterSet="2"> 
    182                         <Tool 
    183                                 Name="VCCLCompilerTool" 
    184                                 AdditionalIncludeDirectories="&quot;$(OGRE_PATH)\Dependencies\include&quot;;&quot;$(OGRE_PATH)\OgreMain\include&quot;;&quot;$(OGRE_PATH)\Samples\Common\include&quot;;&quot;$(OGRE_PATH)\Dependencies\include\CEGUI&quot;;&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\include&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\include&quot;;..\..\Ogre\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\include;..\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\include;&quot;$(LIBXML_HOME)\include&quot;;d:\work\Collada\include" 
    185                                 PreprocessorDefinitions="_WINDOWS;_STLP_USE_DYNAMIC_LIB;OGRE_LIBRARY_IMPORTS;_RELEASE;WIN32;_STLP_RELEASE;GTP_VISIBILITY_MODIFIED_OGRE" 
    186                                 RuntimeLibrary="2" 
    187                                 RuntimeTypeInfo="TRUE" 
    188                                 UsePrecompiledHeader="0" 
    189                                 WarningLevel="3" 
    190                                 Detect64BitPortabilityProblems="TRUE" 
    191                                 DebugInformationFormat="3"/> 
    192                         <Tool 
    193                                 Name="VCCustomBuildTool"/> 
    194                         <Tool 
    195                                 Name="VCLinkerTool" 
    196                                 AdditionalDependencies="OGREMain.LIB CEGUIBase.lib OgreGUIRenderer.lib Plugin_OctreeSceneManager.lib Plugin_VisibilitySceneManager.lib IVReader.lib zdll.lib zziplib.lib xerces-c_2.lib" 
    197                                 OutputFile="$(OGRE_PATH)/Samples/Common/bin/Release/TestCullingTerrain.exe" 
    198                                 LinkIncremental="1" 
    199                                 AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\Dependencies\Lib\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\OgreMain\Lib\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib&quot;;&quot;..\..\Ogre\lib\$(ConfigurationName)&quot;;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\lib;&quot;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\lib\$(ConfigurationName)&quot;;&quot;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\$(ConfigurationName)&quot;;..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib" 
    200100                                GenerateDebugInformation="TRUE" 
    201101                                SubSystem="2" 
     
    259159                                LinkIncremental="1" 
    260160                                AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\Dependencies\Lib\Release&quot;;&quot;$(OGRE_PATH)\OgreMain\Lib\Release&quot;;&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\Release&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib&quot;;..\..\Ogre\lib\Release;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\lib;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\lib\Release;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\Release;..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\lib\Release;..\..\..\..\..\Lib\Vis\Preprocessing\lib\Release" 
    261                                 GenerateDebugInformation="TRUE" 
     161                                GenerateDebugInformation="FALSE" 
    262162                                SubSystem="2" 
    263163                                OptimizeReferences="2" 
     
    288188                <Configuration 
    289189                        Name="Release_qt|Win32" 
    290                         OutputDirectory="$(ConfigurationName)" 
    291                         IntermediateDirectory="$(ConfigurationName)" 
     190                        OutputDirectory="Release" 
     191                        IntermediateDirectory="Release" 
    292192                        ConfigurationType="1" 
    293193                        CharacterSet="2"> 
     
    299199                                EnableIntrinsicFunctions="TRUE" 
    300200                                FavorSizeOrSpeed="1" 
     201                                OmitFramePointers="TRUE" 
    301202                                EnableFiberSafeOptimizations="TRUE" 
    302203                                OptimizeForProcessor="0" 
    303204                                OptimizeForWindowsApplication="TRUE" 
    304                                 AdditionalIncludeDirectories="&quot;$(OGRE_PATH)\Dependencies\include&quot;;&quot;$(OGRE_PATH)\OgreMain\include&quot;;&quot;$(OGRE_PATH)\Samples\Common\include&quot;;&quot;$(OGRE_PATH)\Dependencies\include\CEGUI&quot;;&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\include&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\include&quot;;..\..\Ogre\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\include;..\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\include" 
     205                                AdditionalIncludeDirectories="&quot;$(OGRE_PATH)\Dependencies\include&quot;;&quot;$(OGRE_PATH)\OgreMain\include&quot;;&quot;$(OGRE_PATH)\Samples\Common\include&quot;;&quot;$(OGRE_PATH)\Dependencies\include\CEGUI&quot;;&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\include&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\include&quot;;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\include" 
    305206                                PreprocessorDefinitions="_WINDOWS;_STLP_USE_DYNAMIC_LIB;OGRE_LIBRARY_IMPORTS;_RELEASE;WIN32;_STLP_RELEASE;GTP_VISIBILITY_MODIFIED_OGRE" 
    306207                                RuntimeLibrary="2" 
     
    317218                                OutputFile="$(OGRE_PATH)/Samples/Common/bin/Release/TestCullingTerrain.exe" 
    318219                                LinkIncremental="1" 
    319                                 AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\Dependencies\Lib\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\OgreMain\Lib\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib&quot;;&quot;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\lib\$(ConfigurationName)&quot;;&quot;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\lib\$(ConfigurationName)&quot;;&quot;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\$(ConfigurationName)&quot;;..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;&quot;..\..\..\..\..\Lib\Vis\Preprocessing\lib\$(ConfigurationName)&quot;" 
     220                                AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\Dependencies\Lib\Release&quot;;&quot;$(OGRE_PATH)\OgreMain\Lib\Release&quot;;&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\Release&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib&quot;;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\lib\Release;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\lib\Release;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\Release;..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;..\..\..\..\..\Lib\Vis\Preprocessing\lib\Release" 
     221                                GenerateDebugInformation="FALSE" 
     222                                SubSystem="2" 
     223                                OptimizeReferences="2" 
     224                                EnableCOMDATFolding="2" 
     225                                TargetMachine="1"/> 
     226                        <Tool 
     227                                Name="VCMIDLTool"/> 
     228                        <Tool 
     229                                Name="VCPostBuildEventTool" 
     230                                CommandLine="copy $(OutDir)\$(TargetFileName) $(OGRE_PATH)\Samples\Common\bin\Release"/> 
     231                        <Tool 
     232                                Name="VCPreBuildEventTool"/> 
     233                        <Tool 
     234                                Name="VCPreLinkEventTool"/> 
     235                        <Tool 
     236                                Name="VCResourceCompilerTool"/> 
     237                        <Tool 
     238                                Name="VCWebServiceProxyGeneratorTool"/> 
     239                        <Tool 
     240                                Name="VCXMLDataGeneratorTool"/> 
     241                        <Tool 
     242                                Name="VCWebDeploymentTool"/> 
     243                        <Tool 
     244                                Name="VCManagedWrapperGeneratorTool"/> 
     245                        <Tool 
     246                                Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
     247                </Configuration> 
     248                <Configuration 
     249                        Name="Release_noqt|Win32" 
     250                        OutputDirectory="Release" 
     251                        IntermediateDirectory="Release" 
     252                        ConfigurationType="1" 
     253                        CharacterSet="2"> 
     254                        <Tool 
     255                                Name="VCCLCompilerTool" 
     256                                Optimization="3" 
     257                                GlobalOptimizations="TRUE" 
     258                                InlineFunctionExpansion="2" 
     259                                EnableIntrinsicFunctions="TRUE" 
     260                                FavorSizeOrSpeed="1" 
     261                                OmitFramePointers="TRUE" 
     262                                EnableFiberSafeOptimizations="TRUE" 
     263                                OptimizeForProcessor="0" 
     264                                OptimizeForWindowsApplication="TRUE" 
     265                                AdditionalIncludeDirectories="&quot;$(OGRE_PATH)\Dependencies\include&quot;;&quot;$(OGRE_PATH)\OgreMain\include&quot;;&quot;$(OGRE_PATH)\Samples\Common\include&quot;;&quot;$(OGRE_PATH)\Dependencies\include\CEGUI&quot;;&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\include&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\include&quot;;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\include;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\include" 
     266                                PreprocessorDefinitions="_WINDOWS;_STLP_USE_DYNAMIC_LIB;OGRE_LIBRARY_IMPORTS;_RELEASE;WIN32;_STLP_RELEASE;GTP_VISIBILITY_MODIFIED_OGRE;GAMETOOLS_ILLUMINATION_MODULE" 
     267                                RuntimeLibrary="2" 
     268                                RuntimeTypeInfo="TRUE" 
     269                                UsePrecompiledHeader="0" 
     270                                WarningLevel="3" 
     271                                Detect64BitPortabilityProblems="TRUE" 
     272                                DebugInformationFormat="3"/> 
     273                        <Tool 
     274                                Name="VCCustomBuildTool"/> 
     275                        <Tool 
     276                                Name="VCLinkerTool" 
     277                                AdditionalDependencies="OGREMain.LIB CEGUIBase.lib OgreGUIRenderer.lib IVReader.lib zdll.lib zziplib.lib xerces-c_2.lib Plugin_OctreeSceneManager.lib Plugin_VisibilitySceneManager.lib GtpVisibility.lib Preprocessor.lib" 
     278                                OutputFile="$(OGRE_PATH)/Samples/Common/bin/Release/TestCullingTerrain.exe" 
     279                                LinkIncremental="1" 
     280                                AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\Dependencies\Lib\Release&quot;;&quot;$(OGRE_PATH)\OgreMain\Lib\Release&quot;;&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\Release&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib&quot;;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\lib\Release;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\lib\Release;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\Release;..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;..\..\..\..\..\Lib\Vis\Preprocessing\lib\Release" 
    320281                                GenerateDebugInformation="FALSE" 
    321282                                SubSystem="2" 
  • GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TestCullingTerrainApplication.cpp

    r2352 r2353  
    573573                                                                 this); 
    574574 
    575         //mTerrainFrameListener->setPriority(10); 
    576         //mTerrainFrameListener->setPriority(10); 
     575        mTerrainFrameListener->setPriority(10); 
     576         
    577577        mRoot->addFrameListener(mTerrainFrameListener);  
    578578} 
     
    593593 
    594594        //mSceneMgr = mRoot->createSceneManager("OcclusionCullingSceneManager"); 
    595          
    596         //mSceneMgr = mRoot->createSceneManager("TerrainSceneManager");  
    597         //mSceneMgr = mRoot->createSceneManager("OctreeSceneManager"); 
    598         //mSceneMgr = mRoot->createSceneManager("BiHierarchySceneManager"); 
    599  
    600         mSceneMgr = mRoot->createSceneManager("BiTreeTerrainSceneManager"); 
     595        mSceneMgr = mRoot->createSceneManager("BiHierarchySceneManager"); 
     596        //mSceneMgr = mRoot->createSceneManager("BiTreeTerrainSceneManager"); 
    601597         
    602598#endif 
  • GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/scripts/TestKdTree.vcproj

    r2290 r2353  
    133133                </Configuration> 
    134134                <Configuration 
    135                         Name="mlrt|Win32" 
    136                         OutputDirectory="$(ConfigurationName)" 
    137                         IntermediateDirectory="$(ConfigurationName)" 
    138                         ConfigurationType="1" 
    139                         CharacterSet="2" 
    140                         WholeProgramOptimization="TRUE"> 
    141                         <Tool 
    142                                 Name="VCCLCompilerTool" 
    143                                 Optimization="2" 
    144                                 GlobalOptimizations="TRUE" 
    145                                 InlineFunctionExpansion="1" 
    146                                 EnableIntrinsicFunctions="TRUE" 
    147                                 ImproveFloatingPointConsistency="TRUE" 
    148                                 FavorSizeOrSpeed="1" 
    149                                 OmitFramePointers="TRUE" 
    150                                 OptimizeForProcessor="2" 
    151                                 OptimizeForWindowsApplication="TRUE" 
    152                                 AdditionalIncludeDirectories="..\include;&quot;$(OGRE_PATH)\Samples\Common\include&quot;;&quot;$(OGRE_PATH)\OgreMain\include&quot;;..\..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\include;..\..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\include;..\..\..\..\..\..\Lib\Vis\OnlineCullingCHC\include" 
    153                                 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;GTP_VISIBILITY_MODIFIED_OGRE" 
    154                                 StringPooling="TRUE" 
    155                                 MinimalRebuild="TRUE" 
    156                                 RuntimeLibrary="2" 
    157                                 BufferSecurityCheck="FALSE" 
    158                                 EnableFunctionLevelLinking="TRUE" 
    159                                 UsePrecompiledHeader="0" 
    160                                 WarningLevel="3" 
    161                                 Detect64BitPortabilityProblems="TRUE" 
    162                                 DebugInformationFormat="3"/> 
    163                         <Tool 
    164                                 Name="VCCustomBuildTool"/> 
    165                         <Tool 
    166                                 Name="VCLinkerTool" 
    167                                 AdditionalDependencies="OgreMain.lib IVReader.lib" 
    168                                 OutputFile="$(OutDir)/$(ProjectName).exe" 
    169                                 LinkIncremental="1" 
    170                                 AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\OgreMain\lib\$(ConfigurationName)&quot;;&quot;..\..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\$(ConfigurationName)&quot;" 
    171                                 GenerateDebugInformation="TRUE" 
    172                                 SubSystem="2" 
    173                                 OptimizeReferences="2" 
    174                                 EnableCOMDATFolding="2" 
    175                                 OptimizeForWindows98="1" 
    176                                 TargetMachine="1"/> 
    177                         <Tool 
    178                                 Name="VCMIDLTool"/> 
    179                         <Tool 
    180                                 Name="VCPostBuildEventTool" 
    181                                 CommandLine="copy $(OutDir)\$(TargetFileName) &quot;$(OGRE_PATH)\Samples\Common\bin\$(ConfigurationName)&quot;"/> 
    182                         <Tool 
    183                                 Name="VCPreBuildEventTool"/> 
    184                         <Tool 
    185                                 Name="VCPreLinkEventTool"/> 
    186                         <Tool 
    187                                 Name="VCResourceCompilerTool"/> 
    188                         <Tool 
    189                                 Name="VCWebServiceProxyGeneratorTool"/> 
    190                         <Tool 
    191                                 Name="VCXMLDataGeneratorTool"/> 
    192                         <Tool 
    193                                 Name="VCWebDeploymentTool"/> 
    194                         <Tool 
    195                                 Name="VCManagedWrapperGeneratorTool"/> 
    196                         <Tool 
    197                                 Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
    198                 </Configuration> 
    199                 <Configuration 
    200                         Name="Release_Internal|Win32" 
    201                         OutputDirectory="$(ConfigurationName)" 
    202                         IntermediateDirectory="$(ConfigurationName)" 
    203                         ConfigurationType="1" 
    204                         CharacterSet="2" 
    205                         WholeProgramOptimization="TRUE"> 
    206                         <Tool 
    207                                 Name="VCCLCompilerTool" 
    208                                 Optimization="2" 
    209                                 GlobalOptimizations="TRUE" 
    210                                 InlineFunctionExpansion="1" 
    211                                 EnableIntrinsicFunctions="TRUE" 
    212                                 ImproveFloatingPointConsistency="TRUE" 
    213                                 FavorSizeOrSpeed="1" 
    214                                 OmitFramePointers="TRUE" 
    215                                 OptimizeForProcessor="2" 
    216                                 OptimizeForWindowsApplication="TRUE" 
    217                                 AdditionalIncludeDirectories="..\include;&quot;$(OGRE_PATH)\Samples\Common\include&quot;;&quot;$(OGRE_PATH)\OgreMain\include&quot;;..\..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\include;..\..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\include;..\..\..\..\..\..\Lib\Vis\OnlineCullingCHC\include" 
    218                                 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;GTP_VISIBILITY_MODIFIED_OGRE" 
    219                                 StringPooling="TRUE" 
    220                                 MinimalRebuild="TRUE" 
    221                                 RuntimeLibrary="2" 
    222                                 BufferSecurityCheck="FALSE" 
    223                                 EnableFunctionLevelLinking="TRUE" 
    224                                 UsePrecompiledHeader="0" 
    225                                 WarningLevel="3" 
    226                                 Detect64BitPortabilityProblems="TRUE" 
    227                                 DebugInformationFormat="3"/> 
    228                         <Tool 
    229                                 Name="VCCustomBuildTool"/> 
    230                         <Tool 
    231                                 Name="VCLinkerTool" 
    232                                 AdditionalDependencies="OgreMain.lib IVReader.lib" 
    233                                 OutputFile="$(OutDir)/$(ProjectName).exe" 
    234                                 LinkIncremental="1" 
    235                                 AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\OgreMain\lib\$(ConfigurationName)&quot;;&quot;..\..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\$(ConfigurationName)&quot;" 
    236                                 GenerateDebugInformation="TRUE" 
    237                                 SubSystem="2" 
    238                                 OptimizeReferences="2" 
    239                                 EnableCOMDATFolding="2" 
    240                                 OptimizeForWindows98="1" 
    241                                 TargetMachine="1"/> 
    242                         <Tool 
    243                                 Name="VCMIDLTool"/> 
    244                         <Tool 
    245                                 Name="VCPostBuildEventTool" 
    246                                 CommandLine="copy $(OutDir)\$(TargetFileName) &quot;$(OGRE_PATH)\Samples\Common\bin\$(ConfigurationName)&quot;"/> 
    247                         <Tool 
    248                                 Name="VCPreBuildEventTool"/> 
    249                         <Tool 
    250                                 Name="VCPreLinkEventTool"/> 
    251                         <Tool 
    252                                 Name="VCResourceCompilerTool"/> 
    253                         <Tool 
    254                                 Name="VCWebServiceProxyGeneratorTool"/> 
    255                         <Tool 
    256                                 Name="VCXMLDataGeneratorTool"/> 
    257                         <Tool 
    258                                 Name="VCWebDeploymentTool"/> 
    259                         <Tool 
    260                                 Name="VCManagedWrapperGeneratorTool"/> 
    261                         <Tool 
    262                                 Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
    263                 </Configuration> 
    264                 <Configuration 
    265135                        Name="Release Internal|Win32" 
    266136                        OutputDirectory="..\bin\Release" 
     
    329199                <Configuration 
    330200                        Name="Release_qt|Win32" 
    331                         OutputDirectory="$(ConfigurationName)" 
    332                         IntermediateDirectory="$(ConfigurationName)" 
     201                        OutputDirectory="Release" 
     202                        IntermediateDirectory="Release" 
    333203                        ConfigurationType="1" 
    334204                        CharacterSet="2" 
     
    343213                                FavorSizeOrSpeed="1" 
    344214                                OmitFramePointers="TRUE" 
     215                                EnableFiberSafeOptimizations="TRUE" 
    345216                                OptimizeForProcessor="2" 
    346217                                OptimizeForWindowsApplication="TRUE" 
    347                                 AdditionalIncludeDirectories="..\include;&quot;$(OGRE_PATH)\Samples\Common\include&quot;;&quot;$(OGRE_PATH)\OgreMain\include&quot;;..\..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\include;..\..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\include;..\..\..\..\..\..\Lib\Vis\OnlineCullingCHC\include" 
     218                                AdditionalIncludeDirectories="&quot;$(OGRE_PATH)\Samples\Common\include&quot;;&quot;$(OGRE_PATH)\OgreMain\include&quot;;..\..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\include;..\..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\include;..\..\..\..\..\..\Lib\Vis\OnlineCullingCHC\include;..\include" 
    348219                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;GTP_VISIBILITY_MODIFIED_OGRE" 
    349220                                StringPooling="TRUE" 
     
    363234                                OutputFile="$(OutDir)/$(ProjectName).exe" 
    364235                                LinkIncremental="1" 
    365                                 AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\OgreMain\lib\$(ConfigurationName)&quot;;&quot;..\..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\$(ConfigurationName)&quot;" 
     236                                AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\OgreMain\lib\Release&quot;;..\..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\Release" 
     237                                GenerateDebugInformation="TRUE" 
     238                                SubSystem="2" 
     239                                OptimizeReferences="2" 
     240                                EnableCOMDATFolding="2" 
     241                                OptimizeForWindows98="1" 
     242                                TargetMachine="1"/> 
     243                        <Tool 
     244                                Name="VCMIDLTool"/> 
     245                        <Tool 
     246                                Name="VCPostBuildEventTool" 
     247                                CommandLine="copy $(OutDir)\$(TargetFileName) &quot;$(OGRE_PATH)\Samples\Common\bin\$(ConfigurationName)&quot;"/> 
     248                        <Tool 
     249                                Name="VCPreBuildEventTool"/> 
     250                        <Tool 
     251                                Name="VCPreLinkEventTool"/> 
     252                        <Tool 
     253                                Name="VCResourceCompilerTool"/> 
     254                        <Tool 
     255                                Name="VCWebServiceProxyGeneratorTool"/> 
     256                        <Tool 
     257                                Name="VCXMLDataGeneratorTool"/> 
     258                        <Tool 
     259                                Name="VCWebDeploymentTool"/> 
     260                        <Tool 
     261                                Name="VCManagedWrapperGeneratorTool"/> 
     262                        <Tool 
     263                                Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
     264                </Configuration> 
     265<Configuration 
     266                        Name="Release_noqt|Win32" 
     267                        OutputDirectory="Release" 
     268                        IntermediateDirectory="Release" 
     269                        ConfigurationType="1" 
     270                        CharacterSet="2" 
     271                        WholeProgramOptimization="TRUE"> 
     272                        <Tool 
     273                                Name="VCCLCompilerTool" 
     274                                Optimization="2" 
     275                                GlobalOptimizations="TRUE" 
     276                                InlineFunctionExpansion="1" 
     277                                EnableIntrinsicFunctions="TRUE" 
     278                                ImproveFloatingPointConsistency="TRUE" 
     279                                FavorSizeOrSpeed="1" 
     280                                OmitFramePointers="TRUE" 
     281                                EnableFiberSafeOptimizations="TRUE" 
     282                                OptimizeForProcessor="2" 
     283                                OptimizeForWindowsApplication="TRUE" 
     284                                AdditionalIncludeDirectories="&quot;$(OGRE_PATH)\Samples\Common\include&quot;;&quot;$(OGRE_PATH)\OgreMain\include&quot;;..\..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\include;..\..\..\..\..\..\Lib\Vis\OnlineCullingCHC\OGRE\include;..\..\..\..\..\..\Lib\Vis\OnlineCullingCHC\include;..\include" 
     285                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;GTP_VISIBILITY_MODIFIED_OGRE" 
     286                                StringPooling="TRUE" 
     287                                MinimalRebuild="TRUE" 
     288                                RuntimeLibrary="2" 
     289                                BufferSecurityCheck="FALSE" 
     290                                EnableFunctionLevelLinking="TRUE" 
     291                                UsePrecompiledHeader="0" 
     292                                WarningLevel="3" 
     293                                Detect64BitPortabilityProblems="TRUE" 
     294                                DebugInformationFormat="3"/> 
     295                        <Tool 
     296                                Name="VCCustomBuildTool"/> 
     297                        <Tool 
     298                                Name="VCLinkerTool" 
     299                                AdditionalDependencies="OgreMain.lib IVReader.lib" 
     300                                OutputFile="$(OutDir)/$(ProjectName).exe" 
     301                                LinkIncremental="1" 
     302                                AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\OgreMain\lib\Release&quot;;..\..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\Release" 
    366303                                GenerateDebugInformation="TRUE" 
    367304                                SubSystem="2" 
  • GTP/trunk/Lib/Vis/GtpVisibility.sln

    r2332 r2353  
    6161                Release = Release 
    6262                Release Internal = Release Internal 
    63                 release_noqt = release_noqt 
     63                Release_noqt = Release_noqt 
    6464                Release_qt = Release_qt 
    6565        EndGlobalSection 
     
    7171                {935D1BDD-41B0-49F1-A86C-EB49B94DDB20}.Release Internal.ActiveCfg = Release Internal|Win32 
    7272                {935D1BDD-41B0-49F1-A86C-EB49B94DDB20}.Release Internal.Build.0 = Release Internal|Win32 
    73                 {935D1BDD-41B0-49F1-A86C-EB49B94DDB20}.release_noqt.ActiveCfg = Release_qt|Win32 
    74                 {935D1BDD-41B0-49F1-A86C-EB49B94DDB20}.release_noqt.Build.0 = Release_qt|Win32 
     73                {935D1BDD-41B0-49F1-A86C-EB49B94DDB20}.Release_noqt.ActiveCfg = Release_noqt|Win32 
     74                {935D1BDD-41B0-49F1-A86C-EB49B94DDB20}.Release_noqt.Build.0 = Release_noqt|Win32 
    7575                {935D1BDD-41B0-49F1-A86C-EB49B94DDB20}.Release_qt.ActiveCfg = Release_qt|Win32 
    7676                {935D1BDD-41B0-49F1-A86C-EB49B94DDB20}.Release_qt.Build.0 = Release_qt|Win32 
     
    8181                {101A7691-74F3-48B4-96A3-CF35578F5900}.Release Internal.ActiveCfg = Release Internal|Win32 
    8282                {101A7691-74F3-48B4-96A3-CF35578F5900}.Release Internal.Build.0 = Release Internal|Win32 
    83                 {101A7691-74F3-48B4-96A3-CF35578F5900}.release_noqt.ActiveCfg = Release_qt|Win32 
    84                 {101A7691-74F3-48B4-96A3-CF35578F5900}.release_noqt.Build.0 = Release_qt|Win32 
     83                {101A7691-74F3-48B4-96A3-CF35578F5900}.Release_noqt.ActiveCfg = Release_noqt|Win32 
     84                {101A7691-74F3-48B4-96A3-CF35578F5900}.Release_noqt.Build.0 = Release_noqt|Win32 
    8585                {101A7691-74F3-48B4-96A3-CF35578F5900}.Release_qt.ActiveCfg = Release_qt|Win32 
    8686                {101A7691-74F3-48B4-96A3-CF35578F5900}.Release_qt.Build.0 = Release_qt|Win32 
     
    9191                {5776B40B-5FCE-46D5-8F7C-3912E24E0638}.Release Internal.ActiveCfg = Release Internal|Win32 
    9292                {5776B40B-5FCE-46D5-8F7C-3912E24E0638}.Release Internal.Build.0 = Release Internal|Win32 
    93                 {5776B40B-5FCE-46D5-8F7C-3912E24E0638}.release_noqt.ActiveCfg = Release_qt|Win32 
    94                 {5776B40B-5FCE-46D5-8F7C-3912E24E0638}.release_noqt.Build.0 = Release_qt|Win32 
     93                {5776B40B-5FCE-46D5-8F7C-3912E24E0638}.Release_noqt.ActiveCfg = Release_noqt|Win32 
     94                {5776B40B-5FCE-46D5-8F7C-3912E24E0638}.Release_noqt.Build.0 = Release_noqt|Win32 
    9595                {5776B40B-5FCE-46D5-8F7C-3912E24E0638}.Release_qt.ActiveCfg = Release_qt|Win32 
    9696                {5776B40B-5FCE-46D5-8F7C-3912E24E0638}.Release_qt.Build.0 = Release_qt|Win32 
     
    101101                {80DECC17-BDDD-4412-8CF8-F7C1C17A7436}.Release Internal.ActiveCfg = Release Internal|Win32 
    102102                {80DECC17-BDDD-4412-8CF8-F7C1C17A7436}.Release Internal.Build.0 = Release Internal|Win32 
     103                {80DECC17-BDDD-4412-8CF8-F7C1C17A7436}.Release_noqt.ActiveCfg = Release_noqt|Win32 
     104                {80DECC17-BDDD-4412-8CF8-F7C1C17A7436}.Release_noqt.Build.0 = Release_noqt|Win32 
    103105                {80DECC17-BDDD-4412-8CF8-F7C1C17A7436}.Release_qt.ActiveCfg = Release_qt|Win32 
    104106                {80DECC17-BDDD-4412-8CF8-F7C1C17A7436}.Release_qt.Build.0 = Release_qt|Win32 
     
    109111                {EABCE292-D598-4600-A1C9-2591E7D62FDA}.Release Internal.ActiveCfg = Release Internal|Win32 
    110112                {EABCE292-D598-4600-A1C9-2591E7D62FDA}.Release Internal.Build.0 = Release Internal|Win32 
    111                 {EABCE292-D598-4600-A1C9-2591E7D62FDA}.release_noqt.ActiveCfg = release_noqt|Win32 
    112                 {EABCE292-D598-4600-A1C9-2591E7D62FDA}.release_noqt.Build.0 = release_noqt|Win32 
     113                {EABCE292-D598-4600-A1C9-2591E7D62FDA}.Release_noqt.ActiveCfg = Release_noqt|Win32 
     114                {EABCE292-D598-4600-A1C9-2591E7D62FDA}.Release_noqt.Build.0 = Release_noqt|Win32 
    113115                {EABCE292-D598-4600-A1C9-2591E7D62FDA}.Release_qt.ActiveCfg = Release_Qt|Win32 
    114116                {EABCE292-D598-4600-A1C9-2591E7D62FDA}.Release_qt.Build.0 = Release_Qt|Win32 
     
    119121                {69BC58F0-C7EB-4B43-B782-B6F047EF0528}.Release Internal.ActiveCfg = Release Internal|Win32 
    120122                {69BC58F0-C7EB-4B43-B782-B6F047EF0528}.Release Internal.Build.0 = Release Internal|Win32 
    121                 {69BC58F0-C7EB-4B43-B782-B6F047EF0528}.release_noqt.ActiveCfg = release_noqt|Win32 
    122                 {69BC58F0-C7EB-4B43-B782-B6F047EF0528}.release_noqt.Build.0 = release_noqt|Win32 
     123                {69BC58F0-C7EB-4B43-B782-B6F047EF0528}.Release_noqt.ActiveCfg = Release_noqt|Win32 
     124                {69BC58F0-C7EB-4B43-B782-B6F047EF0528}.Release_noqt.Build.0 = Release_noqt|Win32 
    123125                {69BC58F0-C7EB-4B43-B782-B6F047EF0528}.Release_qt.ActiveCfg = Release_Qt|Win32 
    124126                {69BC58F0-C7EB-4B43-B782-B6F047EF0528}.Release_qt.Build.0 = Release_Qt|Win32 
     
    129131                {248F19A6-2FE0-4F5D-8928-E0EA10609887}.Release Internal.ActiveCfg = Release Internal|Win32 
    130132                {248F19A6-2FE0-4F5D-8928-E0EA10609887}.Release Internal.Build.0 = Release Internal|Win32 
    131                 {248F19A6-2FE0-4F5D-8928-E0EA10609887}.release_noqt.ActiveCfg = Release_qt|Win32 
    132                 {248F19A6-2FE0-4F5D-8928-E0EA10609887}.release_noqt.Build.0 = Release_qt|Win32 
     133                {248F19A6-2FE0-4F5D-8928-E0EA10609887}.Release_noqt.ActiveCfg = Release_noqt|Win32 
     134                {248F19A6-2FE0-4F5D-8928-E0EA10609887}.Release_noqt.Build.0 = Release_noqt|Win32 
    133135                {248F19A6-2FE0-4F5D-8928-E0EA10609887}.Release_qt.ActiveCfg = Release_qt|Win32 
    134136                {248F19A6-2FE0-4F5D-8928-E0EA10609887}.Release_qt.Build.0 = Release_qt|Win32 
     
    139141                {17F2C6F9-6101-430E-ABF4-71383868EF24}.Release Internal.ActiveCfg = Release Internal|Win32 
    140142                {17F2C6F9-6101-430E-ABF4-71383868EF24}.Release Internal.Build.0 = Release Internal|Win32 
    141                 {17F2C6F9-6101-430E-ABF4-71383868EF24}.release_noqt.ActiveCfg = Release_qt|Win32 
    142                 {17F2C6F9-6101-430E-ABF4-71383868EF24}.release_noqt.Build.0 = Release_qt|Win32 
     143                {17F2C6F9-6101-430E-ABF4-71383868EF24}.Release_noqt.ActiveCfg = Release_noqt|Win32 
     144                {17F2C6F9-6101-430E-ABF4-71383868EF24}.Release_noqt.Build.0 = Release_noqt|Win32 
    143145                {17F2C6F9-6101-430E-ABF4-71383868EF24}.Release_qt.ActiveCfg = Release_qt|Win32 
    144146                {17F2C6F9-6101-430E-ABF4-71383868EF24}.Release_qt.Build.0 = Release_qt|Win32 
     
    149151                {5776B40B-5FCE-46D5-8F7C-3912E24E0638}.Release Internal.ActiveCfg = Release Internal|Win32 
    150152                {5776B40B-5FCE-46D5-8F7C-3912E24E0638}.Release Internal.Build.0 = Release Internal|Win32 
    151                 {5776B40B-5FCE-46D5-8F7C-3912E24E0638}.release_noqt.ActiveCfg = Release_qt|Win32 
    152                 {5776B40B-5FCE-46D5-8F7C-3912E24E0638}.release_noqt.Build.0 = Release_qt|Win32 
     153                {5776B40B-5FCE-46D5-8F7C-3912E24E0638}.Release_noqt.ActiveCfg = Release_noqt|Win32 
     154                {5776B40B-5FCE-46D5-8F7C-3912E24E0638}.Release_noqt.Build.0 = Release_noqt|Win32 
    153155                {5776B40B-5FCE-46D5-8F7C-3912E24E0638}.Release_qt.ActiveCfg = Release_qt|Win32 
    154156                {5776B40B-5FCE-46D5-8F7C-3912E24E0638}.Release_qt.Build.0 = Release_qt|Win32 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/IVReader/src/IVReader.vcproj

    r2318 r2353  
    125125                </Configuration> 
    126126                <Configuration 
    127                         Name="mlrt|Win32" 
    128                         OutputDirectory="$(ConfigurationName)" 
    129                         IntermediateDirectory="$(ConfigurationName)" 
    130                         ConfigurationType="2" 
    131                         CharacterSet="2"> 
    132                         <Tool 
    133                                 Name="VCCLCompilerTool" 
    134                                 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" 
    135                                 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;IVREADER_EXPORTS;GTP_VISIBILITY_MODIFIED_OGRE" 
    136                                 RuntimeLibrary="2" 
    137                                 UsePrecompiledHeader="0" 
    138                                 WarningLevel="3" 
    139                                 Detect64BitPortabilityProblems="TRUE" 
    140                                 DebugInformationFormat="3"/> 
    141                         <Tool 
    142                                 Name="VCCustomBuildTool"/> 
    143                         <Tool 
    144                                 Name="VCLinkerTool" 
    145                                 AdditionalDependencies="OgreMain.lib CEGUIBase.lib OgreGUIRenderer.lib" 
    146                                 OutputFile="$(OutDir)/IVReader.dll" 
    147                                 LinkIncremental="1" 
    148                                 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;" 
    149                                 GenerateDebugInformation="TRUE" 
    150                                 SubSystem="2" 
    151                                 OptimizeReferences="2" 
    152                                 EnableCOMDATFolding="2" 
    153                                 ImportLibrary="$(OutDir)/IVReader.lib" 
    154                                 TargetMachine="1"/> 
    155                         <Tool 
    156                                 Name="VCMIDLTool"/> 
    157                         <Tool 
    158                                 Name="VCPostBuildEventTool" 
    159                                 CommandLine="copy $(OutDir)\$(TargetFileName) &quot;$(OGRE_PATH)\Samples\Common\bin\$(ConfigurationName)&quot;"/> 
    160                         <Tool 
    161                                 Name="VCPreBuildEventTool"/> 
    162                         <Tool 
    163                                 Name="VCPreLinkEventTool"/> 
    164                         <Tool 
    165                                 Name="VCResourceCompilerTool"/> 
    166                         <Tool 
    167                                 Name="VCWebServiceProxyGeneratorTool"/> 
    168                         <Tool 
    169                                 Name="VCXMLDataGeneratorTool"/> 
    170                         <Tool 
    171                                 Name="VCWebDeploymentTool"/> 
    172                         <Tool 
    173                                 Name="VCManagedWrapperGeneratorTool"/> 
    174                         <Tool 
    175                                 Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
    176                 </Configuration> 
    177                 <Configuration 
    178                         Name="Release_Internal|Win32" 
    179                         OutputDirectory="$(ConfigurationName)" 
    180                         IntermediateDirectory="$(ConfigurationName)" 
    181                         ConfigurationType="2" 
    182                         CharacterSet="2"> 
    183                         <Tool 
    184                                 Name="VCCLCompilerTool" 
    185                                 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" 
    186                                 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;IVREADER_EXPORTS;GTP_VISIBILITY_MODIFIED_OGRE" 
    187                                 RuntimeLibrary="2" 
    188                                 UsePrecompiledHeader="0" 
    189                                 WarningLevel="3" 
    190                                 Detect64BitPortabilityProblems="TRUE" 
    191                                 DebugInformationFormat="3"/> 
    192                         <Tool 
    193                                 Name="VCCustomBuildTool"/> 
    194                         <Tool 
    195                                 Name="VCLinkerTool" 
    196                                 AdditionalDependencies="OgreMain.lib CEGUIBase.lib OgreGUIRenderer.lib" 
    197                                 OutputFile="$(OutDir)/IVReader.dll" 
    198                                 LinkIncremental="1" 
    199                                 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;" 
    200                                 GenerateDebugInformation="TRUE" 
    201                                 SubSystem="2" 
    202                                 OptimizeReferences="2" 
    203                                 EnableCOMDATFolding="2" 
    204                                 ImportLibrary="$(OutDir)/IVReader.lib" 
    205                                 TargetMachine="1"/> 
    206                         <Tool 
    207                                 Name="VCMIDLTool"/> 
    208                         <Tool 
    209                                 Name="VCPostBuildEventTool" 
    210                                 CommandLine="copy $(OutDir)\$(TargetFileName) &quot;$(OGRE_PATH)\Samples\Common\bin\$(ConfigurationName)&quot;"/> 
    211                         <Tool 
    212                                 Name="VCPreBuildEventTool"/> 
    213                         <Tool 
    214                                 Name="VCPreLinkEventTool"/> 
    215                         <Tool 
    216                                 Name="VCResourceCompilerTool"/> 
    217                         <Tool 
    218                                 Name="VCWebServiceProxyGeneratorTool"/> 
    219                         <Tool 
    220                                 Name="VCXMLDataGeneratorTool"/> 
    221                         <Tool 
    222                                 Name="VCWebDeploymentTool"/> 
    223                         <Tool 
    224                                 Name="VCManagedWrapperGeneratorTool"/> 
    225                         <Tool 
    226                                 Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
    227                 </Configuration> 
    228                 <Configuration 
    229127                        Name="Release Internal|Win32" 
    230128                        OutputDirectory="..\lib\Release" 
     
    290188                <Configuration 
    291189                        Name="Release_qt|Win32" 
    292                         OutputDirectory="Release" 
    293                         IntermediateDirectory="Release" 
     190                        OutputDirectory="..\lib\Release" 
     191                        IntermediateDirectory="..\obj\Release" 
     192                        ConfigurationType="2" 
     193                        CharacterSet="2"> 
     194                        <Tool 
     195                                Name="VCCLCompilerTool" 
     196                                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" 
     197                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;IVREADER_EXPORTS;GTP_VISIBILITY_MODIFIED_OGRE" 
     198                                RuntimeLibrary="2" 
     199                                UsePrecompiledHeader="0" 
     200                                WarningLevel="3" 
     201                                Detect64BitPortabilityProblems="TRUE" 
     202                                DebugInformationFormat="3"/> 
     203                        <Tool 
     204                                Name="VCCustomBuildTool"/> 
     205                        <Tool 
     206                                Name="VCLinkerTool" 
     207                                AdditionalDependencies="OgreMain.lib CEGUIBase.lib OgreGUIRenderer.lib" 
     208                                OutputFile="$(OutDir)/IVReader.dll" 
     209                                LinkIncremental="1" 
     210                                AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\OgreMain\lib\Release&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib&quot;;&quot;$(OGRE_PATH)\Dependencies\lib\Release&quot;;..\..\GtpVisibility\lib\Release;..\..\lib\Release" 
     211                                GenerateDebugInformation="FALSE" 
     212                                SubSystem="2" 
     213                                OptimizeReferences="2" 
     214                                EnableCOMDATFolding="2" 
     215                                ImportLibrary="$(OutDir)/IVReader.lib" 
     216                                TargetMachine="1"/> 
     217                        <Tool 
     218                                Name="VCMIDLTool"/> 
     219                        <Tool 
     220                                Name="VCPostBuildEventTool" 
     221                                CommandLine="copy $(OutDir)\$(TargetFileName) &quot;$(OGRE_PATH)\Samples\Common\bin\Release&quot;"/> 
     222                        <Tool 
     223                                Name="VCPreBuildEventTool"/> 
     224                        <Tool 
     225                                Name="VCPreLinkEventTool"/> 
     226                        <Tool 
     227                                Name="VCResourceCompilerTool"/> 
     228                        <Tool 
     229                                Name="VCWebServiceProxyGeneratorTool"/> 
     230                        <Tool 
     231                                Name="VCXMLDataGeneratorTool"/> 
     232                        <Tool 
     233                                Name="VCWebDeploymentTool"/> 
     234                        <Tool 
     235                                Name="VCManagedWrapperGeneratorTool"/> 
     236                        <Tool 
     237                                Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
     238                </Configuration> 
     239                <Configuration 
     240                        Name="Release_noqt|Win32" 
     241                        OutputDirectory="..\lib\Release" 
     242                        IntermediateDirectory="..\obj\Release" 
    294243                        ConfigurationType="2" 
    295244                        CharacterSet="2"> 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreBoundingBoxConverter.h

    r2349 r2353  
    1717class OctreeSceneManager; 
    1818class KdTreeSceneManager; 
    19 class BvHierarchySceneManager; 
    2019class BiHierarchySceneManager; 
    2120 
     
    328327 
    329328typedef PlatFormBoundingBoxConverter<OctreeSceneManager> OctreeBoundingBoxConverter; 
    330 typedef PlatFormBoundingBoxConverter<BvHierarchySceneManager> BvhBoundingBoxConverter; 
    331329typedef PlatFormBoundingBoxConverter<BiHierarchySceneManager> BihBoundingBoxConverter; 
    332330typedef PlatFormBoundingBoxConverter<KdTreeSceneManager> KdTreeBoundingBoxConverter; 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreVisibilitySceneManagerDll.cpp

    r2348 r2353  
    4949KdTerrainSceneManagerFactory *kdTerrainFactory; 
    5050BiTerrainSceneManagerFactory *biTerrainFactory; 
    51 BvHierarchySceneManagerFactory *bvHierarchyFactory; 
    5251BiHierarchySceneManagerFactory *biHierarchyFactory; 
    5352 
     
    6463        kdTerrainFactory = new KdTerrainSceneManagerFactory(visManager); 
    6564        biTerrainFactory = new BiTerrainSceneManagerFactory(visManager); 
    66         bvHierarchyFactory = new BvHierarchySceneManagerFactory(visManager); 
    6765        biHierarchyFactory = new BiHierarchySceneManagerFactory(visManager); 
    6866 
     
    7876        Root::getSingleton().addSceneManagerFactory(kdTerrainFactory); 
    7977        Root::getSingleton().addSceneManagerFactory(biTerrainFactory); 
    80         Root::getSingleton().addSceneManagerFactory(bvHierarchyFactory); 
    8178        Root::getSingleton().addSceneManagerFactory(biHierarchyFactory); 
    8279} 
     
    8885        Root::getSingleton().removeSceneManagerFactory(kdTerrainFactory); 
    8986        Root::getSingleton().removeSceneManagerFactory(biTerrainFactory); 
    90         Root::getSingleton().removeSceneManagerFactory(bvHierarchyFactory); 
    9187        Root::getSingleton().removeSceneManagerFactory(biHierarchyFactory); 
    9288 
     
    105101        delete kdTerrainFactory; 
    106102        delete biTerrainFactory; 
    107         delete bvHierarchyFactory; 
    108103        delete biHierarchyFactory; 
    109104 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/Plugin_VisibilitySceneManager.vcproj

    r2348 r2353  
    145145                </Configuration> 
    146146                <Configuration 
    147                         Name="mlrt|Win32" 
    148                         OutputDirectory="$(ConfigurationName)" 
    149                         IntermediateDirectory="$(ConfigurationName)" 
    150                         ConfigurationType="2" 
    151                         CharacterSet="2" 
    152                         WholeProgramOptimization="TRUE"> 
    153                         <Tool 
    154                                 Name="VCCLCompilerTool" 
    155                                 Optimization="3" 
    156                                 GlobalOptimizations="TRUE" 
    157                                 InlineFunctionExpansion="2" 
    158                                 EnableIntrinsicFunctions="TRUE" 
    159                                 ImproveFloatingPointConsistency="TRUE" 
    160                                 FavorSizeOrSpeed="1" 
    161                                 OmitFramePointers="TRUE" 
    162                                 EnableFiberSafeOptimizations="TRUE" 
    163                                 OptimizeForProcessor="2" 
    164                                 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" 
    165                                 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;GTP_VISIBILITY_MODIFIED_OGRE" 
    166                                 StringPooling="TRUE" 
    167                                 RuntimeLibrary="2" 
    168                                 BufferSecurityCheck="FALSE" 
    169                                 EnableFunctionLevelLinking="TRUE" 
    170                                 RuntimeTypeInfo="TRUE" 
    171                                 UsePrecompiledHeader="0" 
    172                                 WarningLevel="3" 
    173                                 Detect64BitPortabilityProblems="TRUE" 
    174                                 DebugInformationFormat="3"/> 
    175                         <Tool 
    176                                 Name="VCCustomBuildTool"/> 
    177                         <Tool 
    178                                 Name="VCLinkerTool" 
    179                                 IgnoreImportLibrary="TRUE" 
    180                                 AdditionalDependencies="OgreMain.lib CEGUIBase.lib OgreGUIRenderer.lib Plugin_OctreeSceneManager.lib GtpVisibility.lib zdll.lib zziplib.lib Preprocessor.lib xerces-c_2.lib devil.lib glut32.lib OpenGL32.Lib glu32.lib cg.lib cgGL.lib glew32.lib glew32s.lib" 
    181                                 OutputFile="$(OutDir)/Plugin_VisibilitySceneManager.dll" 
    182                                 Version="0.99" 
    183                                 LinkIncremental="1" 
    184                                 SuppressStartupBanner="TRUE" 
    185                                 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;..\..\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;..\..\..\Preprocessing\src\GL;&quot;$(CG_LIB_PATH)&quot;;..\..\..\..\..\..\..\NonGTP\Zlib\lib" 
    186                                 ModuleDefinitionFile="..\misc\OgreVisibilitySceneManager.def" 
    187                                 GenerateDebugInformation="TRUE" 
    188                                 SubSystem="2" 
    189                                 OptimizeReferences="2" 
    190                                 EnableCOMDATFolding="2" 
    191                                 ImportLibrary="$(OutDir)/Plugin_VisibilitySceneManager.lib" 
    192                                 TargetMachine="1"/> 
    193                         <Tool 
    194                                 Name="VCMIDLTool"/> 
    195                         <Tool 
    196                                 Name="VCPostBuildEventTool" 
    197                                 CommandLine="copy $(OutDir)\$(TargetFileName) $(OGRE_PATH)\Samples\Common\bin\$(ConfigurationName)"/> 
    198                         <Tool 
    199                                 Name="VCPreBuildEventTool"/> 
    200                         <Tool 
    201                                 Name="VCPreLinkEventTool"/> 
    202                         <Tool 
    203                                 Name="VCResourceCompilerTool"/> 
    204                         <Tool 
    205                                 Name="VCWebServiceProxyGeneratorTool"/> 
    206                         <Tool 
    207                                 Name="VCXMLDataGeneratorTool"/> 
    208                         <Tool 
    209                                 Name="VCWebDeploymentTool"/> 
    210                         <Tool 
    211                                 Name="VCManagedWrapperGeneratorTool"/> 
    212                         <Tool 
    213                                 Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
    214                 </Configuration> 
    215                 <Configuration 
    216                         Name="Release_Internal|Win32" 
    217                         OutputDirectory="Release" 
    218                         IntermediateDirectory="Release" 
    219                         ConfigurationType="2" 
    220                         CharacterSet="2" 
    221                         WholeProgramOptimization="TRUE"> 
    222                         <Tool 
    223                                 Name="VCCLCompilerTool" 
    224                                 Optimization="3" 
    225                                 GlobalOptimizations="TRUE" 
    226                                 InlineFunctionExpansion="2" 
    227                                 EnableIntrinsicFunctions="TRUE" 
    228                                 ImproveFloatingPointConsistency="TRUE" 
    229                                 FavorSizeOrSpeed="1" 
    230                                 OmitFramePointers="TRUE" 
    231                                 EnableFiberSafeOptimizations="TRUE" 
    232                                 OptimizeForProcessor="2" 
    233                                 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" 
    234                                 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;GTP_VISIBILITY_MODIFIED_OGRE" 
    235                                 StringPooling="TRUE" 
    236                                 RuntimeLibrary="2" 
    237                                 BufferSecurityCheck="FALSE" 
    238                                 EnableFunctionLevelLinking="TRUE" 
    239                                 RuntimeTypeInfo="FALSE" 
    240                                 UsePrecompiledHeader="0" 
    241                                 WarningLevel="3" 
    242                                 Detect64BitPortabilityProblems="TRUE" 
    243                                 DebugInformationFormat="3"/> 
    244                         <Tool 
    245                                 Name="VCCustomBuildTool"/> 
    246                         <Tool 
    247                                 Name="VCLinkerTool" 
    248                                 IgnoreImportLibrary="TRUE" 
    249                                 AdditionalDependencies="OgreMain.lib CEGUIBase.lib OgreGUIRenderer.lib Plugin_OctreeSceneManager.lib GtpVisibility.lib zdll.lib zziplib.lib Preprocessor.lib xerces-c_2.lib devil.lib glut32.lib OpenGL32.Lib glu32.lib cg.lib cgGL.lib glew32.lib glew32s.lib" 
    250                                 OutputFile="$(OutDir)/Plugin_VisibilitySceneManager.dll" 
    251                                 Version="0.99" 
    252                                 LinkIncremental="1" 
    253                                 SuppressStartupBanner="TRUE" 
    254                                 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;..\..\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;..\..\..\Preprocessing\src\GL;&quot;$(CG_LIB_PATH)&quot;;..\..\..\..\..\..\..\NonGTP\Zlib\lib" 
    255                                 ModuleDefinitionFile="..\misc\OgreVisibilitySceneManager.def" 
    256                                 GenerateDebugInformation="TRUE" 
    257                                 SubSystem="2" 
    258                                 OptimizeReferences="2" 
    259                                 EnableCOMDATFolding="2" 
    260                                 ImportLibrary="$(OutDir)/Plugin_VisibilitySceneManager.lib" 
    261                                 TargetMachine="1"/> 
    262                         <Tool 
    263                                 Name="VCMIDLTool"/> 
    264                         <Tool 
    265                                 Name="VCPostBuildEventTool" 
    266                                 CommandLine="copy $(OutDir)\$(TargetFileName) $(OGRE_PATH)\Samples\Common\bin\Release"/> 
    267                         <Tool 
    268                                 Name="VCPreBuildEventTool"/> 
    269                         <Tool 
    270                                 Name="VCPreLinkEventTool"/> 
    271                         <Tool 
    272                                 Name="VCResourceCompilerTool"/> 
    273                         <Tool 
    274                                 Name="VCWebServiceProxyGeneratorTool"/> 
    275                         <Tool 
    276                                 Name="VCXMLDataGeneratorTool"/> 
    277                         <Tool 
    278                                 Name="VCWebDeploymentTool"/> 
    279                         <Tool 
    280                                 Name="VCManagedWrapperGeneratorTool"/> 
    281                         <Tool 
    282                                 Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
    283                 </Configuration> 
    284                 <Configuration 
    285147                        Name="Release Internal|Win32" 
    286148                        OutputDirectory="..\lib\Release" 
     
    322184                                LinkIncremental="1" 
    323185                                SuppressStartupBanner="TRUE" 
    324                                 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" 
     186                                AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\Release&quot;;&quot;$(OGRE_PATH)\OgreMain\lib\Release&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib&quot;;&quot;$(OGRE_PATH)\Dependencies\lib\Release&quot;;..\..\..\Preprocessing\lib\Release;..\..\..\Preprocessing\src\GL;..\..\GtpVisibility\lib\Release;..\..\lib\Release;..\lib\Release;..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;..\..\..\..\..\..\..\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;&quot;$(CG_LIB_PATH)&quot;" 
    325187                                ModuleDefinitionFile="..\misc\OgreVisibilitySceneManager.def" 
    326188                                GenerateDebugInformation="TRUE" 
     
    355217                <Configuration 
    356218                        Name="Release_qt|Win32" 
    357                         OutputDirectory="$(ConfigurationName)" 
    358                         IntermediateDirectory="$(ConfigurationName)" 
     219                        OutputDirectory="..\lib\Release" 
     220                        IntermediateDirectory="..\obj\Release" 
    359221                        ConfigurationType="2" 
    360222                        CharacterSet="2" 
     
    423285                                Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
    424286                </Configuration> 
     287                <Configuration 
     288                        Name="Release_noqt|Win32" 
     289                        OutputDirectory="..\lib\Release" 
     290                        IntermediateDirectory="..\obj\Release" 
     291                        ConfigurationType="2" 
     292                        CharacterSet="2" 
     293                        WholeProgramOptimization="TRUE"> 
     294                        <Tool 
     295                                Name="VCCLCompilerTool" 
     296                                Optimization="3" 
     297                                GlobalOptimizations="TRUE" 
     298                                InlineFunctionExpansion="2" 
     299                                EnableIntrinsicFunctions="TRUE" 
     300                                ImproveFloatingPointConsistency="TRUE" 
     301                                FavorSizeOrSpeed="1" 
     302                                OmitFramePointers="TRUE" 
     303                                EnableFiberSafeOptimizations="TRUE" 
     304                                OptimizeForProcessor="0" 
     305                                OptimizeForWindowsApplication="TRUE" 
     306                                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" 
     307                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;PLUGIN_KD_TERRAIN_EXPORTS;GTP_VISIBILITY_MODIFIED_OGRE;GAMETOOLS_ILLUMINATION_MODULE" 
     308                                StringPooling="TRUE" 
     309                                RuntimeLibrary="2" 
     310                                BufferSecurityCheck="FALSE" 
     311                                EnableFunctionLevelLinking="TRUE" 
     312                                RuntimeTypeInfo="TRUE" 
     313                                UsePrecompiledHeader="0" 
     314                                WarningLevel="3" 
     315                                Detect64BitPortabilityProblems="TRUE" 
     316                                DebugInformationFormat="3"/> 
     317                        <Tool 
     318                                Name="VCCustomBuildTool"/> 
     319                        <Tool 
     320                                Name="VCLinkerTool" 
     321                                IgnoreImportLibrary="TRUE" 
     322                                AdditionalDependencies="OgreMain.lib CEGUIBase.lib OgreGUIRenderer.lib Plugin_OctreeSceneManager.lib GtpVisibility.lib zdll.lib zziplib.lib Preprocessor.lib xerces-c_2.lib devil.lib glut32.lib OpenGL32.Lib glu32.lib glew32.lib glew32s.lib RTScene.lib RTWorld.lib IVReader.lib" 
     323                                OutputFile="$(OutDir)/Plugin_VisibilitySceneManager.dll" 
     324                                Version="0.99" 
     325                                LinkIncremental="1" 
     326                                SuppressStartupBanner="TRUE" 
     327                                AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\Release&quot;;&quot;$(OGRE_PATH)\OgreMain\lib\Release&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib&quot;;&quot;$(OGRE_PATH)\Dependencies\lib\Release&quot;;..\..\GtpVisibility\lib\Release;..\..\lib\Release;..\lib\Release;..\..\..\Preprocessing\lib\Release;..\..\..\Preprocessing\src\GL;..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;..\..\..\..\..\..\..\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;&quot;$(CG_LIB_PATH)&quot;" 
     328                                ModuleDefinitionFile="..\misc\OgreVisibilitySceneManager.def" 
     329                                GenerateDebugInformation="FALSE" 
     330                                SubSystem="2" 
     331                                OptimizeReferences="2" 
     332                                EnableCOMDATFolding="2" 
     333                                ImportLibrary="$(OutDir)/Plugin_VisibilitySceneManager.lib" 
     334                                TargetMachine="1"/> 
     335                        <Tool 
     336                                Name="VCMIDLTool"/> 
     337                        <Tool 
     338                                Name="VCPostBuildEventTool" 
     339                                CommandLine="copy $(OutDir)\$(TargetFileName) $(OGRE_PATH)\Samples\Common\bin\$(ConfigurationName)"/> 
     340                        <Tool 
     341                                Name="VCPreBuildEventTool"/> 
     342                        <Tool 
     343                                Name="VCPreLinkEventTool"/> 
     344                        <Tool 
     345                                Name="VCResourceCompilerTool"/> 
     346                        <Tool 
     347                                Name="VCWebServiceProxyGeneratorTool"/> 
     348                        <Tool 
     349                                Name="VCXMLDataGeneratorTool"/> 
     350                        <Tool 
     351                                Name="VCWebDeploymentTool"/> 
     352                        <Tool 
     353                                Name="VCManagedWrapperGeneratorTool"/> 
     354                        <Tool 
     355                                Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
     356                </Configuration> 
    425357        </Configurations> 
    426358        <References> 
     
    454386                                <File 
    455387                                        RelativePath="..\src\OgreTerrainContentGenerator.cpp"> 
    456                                 </File> 
    457                         </Filter> 
    458                 </Filter> 
    459                 <Filter 
    460                         Name="BvHierarchySceneManager" 
    461                         Filter=""> 
    462                         <Filter 
    463                                 Name="src" 
    464                                 Filter=""> 
    465                                 <File 
    466                                         RelativePath=".\OgreBvHierarchy.cpp"> 
    467                                 </File> 
    468                                 <File 
    469                                         RelativePath=".\OgreBvHierarchyCamera.cpp"> 
    470                                 </File> 
    471                                 <File 
    472                                         RelativePath=".\OgreBvHierarchyInterface.cpp"> 
    473                                 </File> 
    474                                 <File 
    475                                         RelativePath=".\OgreBvHierarchySceneManager.cpp"> 
    476                                 </File> 
    477                                 <File 
    478                                         RelativePath=".\OgreBvHierarchySceneNode.cpp"> 
    479                                 </File> 
    480                         </Filter> 
    481                         <Filter 
    482                                 Name="include" 
    483                                 Filter=""> 
    484                                 <File 
    485                                         RelativePath="..\include\OgreBvHierarchy.h"> 
    486                                 </File> 
    487                                 <File 
    488                                         RelativePath="..\include\OgreBvHierarchyCamera.h"> 
    489                                 </File> 
    490                                 <File 
    491                                         RelativePath="..\include\OgreBvHierarchyInterface.h"> 
    492                                 </File> 
    493                                 <File 
    494                                         RelativePath="..\include\OgreBvHierarchySceneManager.h"> 
    495                                 </File> 
    496                                 <File 
    497                                         RelativePath="..\include\OgreBvHierarchySceneNode.h"> 
    498                                 </File> 
    499                                 <File 
    500                                         RelativePath="..\include\OgreBvhRenderable.h"> 
    501388                                </File> 
    502389                        </Filter> 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/ObjReader/src/ObjReader.vcproj

    r2332 r2353  
    9696                                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" 
    9797                                GenerateDebugInformation="FALSE" 
    98                                 SubSystem="2" 
    99                                 OptimizeReferences="2" 
    100                                 EnableCOMDATFolding="2" 
    101                                 ImportLibrary="$(OutDir)/ObjReader.lib" 
    102                                 TargetMachine="1"/> 
    103                         <Tool 
    104                                 Name="VCMIDLTool"/> 
    105                         <Tool 
    106                                 Name="VCPostBuildEventTool" 
    107                                 CommandLine="copy $(OutDir)\$(TargetFileName) &quot;$(OGRE_PATH)\Samples\Common\bin\$(ConfigurationName)&quot;"/> 
    108                         <Tool 
    109                                 Name="VCPreBuildEventTool"/> 
    110                         <Tool 
    111                                 Name="VCPreLinkEventTool"/> 
    112                         <Tool 
    113                                 Name="VCResourceCompilerTool"/> 
    114                         <Tool 
    115                                 Name="VCWebServiceProxyGeneratorTool"/> 
    116                         <Tool 
    117                                 Name="VCXMLDataGeneratorTool"/> 
    118                         <Tool 
    119                                 Name="VCWebDeploymentTool"/> 
    120                         <Tool 
    121                                 Name="VCManagedWrapperGeneratorTool"/> 
    122                         <Tool 
    123                                 Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
    124                 </Configuration> 
    125                 <Configuration 
    126                         Name="mlrt|Win32" 
    127                         OutputDirectory="$(ConfigurationName)" 
    128                         IntermediateDirectory="$(ConfigurationName)" 
    129                         ConfigurationType="2" 
    130                         CharacterSet="2"> 
    131                         <Tool 
    132                                 Name="VCCLCompilerTool" 
    133                                 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" 
    134                                 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;OBJREADER_EXPORTS;GTP_VISIBILITY_MODIFIED_OGRE" 
    135                                 RuntimeLibrary="2" 
    136                                 UsePrecompiledHeader="0" 
    137                                 WarningLevel="3" 
    138                                 Detect64BitPortabilityProblems="TRUE" 
    139                                 DebugInformationFormat="3"/> 
    140                         <Tool 
    141                                 Name="VCCustomBuildTool"/> 
    142                         <Tool 
    143                                 Name="VCLinkerTool" 
    144                                 AdditionalDependencies="OgreMain.lib CEGUIBase.lib OgreGUIRenderer.lib" 
    145                                 OutputFile="$(OutDir)/ObjReader.dll" 
    146                                 LinkIncremental="1" 
    147                                 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;" 
    148                                 GenerateDebugInformation="TRUE" 
    149                                 SubSystem="2" 
    150                                 OptimizeReferences="2" 
    151                                 EnableCOMDATFolding="2" 
    152                                 ImportLibrary="$(OutDir)/ObjReader.lib" 
    153                                 TargetMachine="1"/> 
    154                         <Tool 
    155                                 Name="VCMIDLTool"/> 
    156                         <Tool 
    157                                 Name="VCPostBuildEventTool" 
    158                                 CommandLine="copy $(OutDir)\$(TargetFileName) &quot;$(OGRE_PATH)\Samples\Common\bin\$(ConfigurationName)&quot;"/> 
    159                         <Tool 
    160                                 Name="VCPreBuildEventTool"/> 
    161                         <Tool 
    162                                 Name="VCPreLinkEventTool"/> 
    163                         <Tool 
    164                                 Name="VCResourceCompilerTool"/> 
    165                         <Tool 
    166                                 Name="VCWebServiceProxyGeneratorTool"/> 
    167                         <Tool 
    168                                 Name="VCXMLDataGeneratorTool"/> 
    169                         <Tool 
    170                                 Name="VCWebDeploymentTool"/> 
    171                         <Tool 
    172                                 Name="VCManagedWrapperGeneratorTool"/> 
    173                         <Tool 
    174                                 Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
    175                 </Configuration> 
    176                 <Configuration 
    177                         Name="Release_Internal|Win32" 
    178                         OutputDirectory="$(ConfigurationName)" 
    179                         IntermediateDirectory="$(ConfigurationName)" 
    180                         ConfigurationType="2" 
    181                         CharacterSet="2"> 
    182                         <Tool 
    183                                 Name="VCCLCompilerTool" 
    184                                 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" 
    185                                 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;OBJREADER_EXPORTS;GTP_VISIBILITY_MODIFIED_OGRE" 
    186                                 RuntimeLibrary="2" 
    187                                 UsePrecompiledHeader="0" 
    188                                 WarningLevel="3" 
    189                                 Detect64BitPortabilityProblems="TRUE" 
    190                                 DebugInformationFormat="3"/> 
    191                         <Tool 
    192                                 Name="VCCustomBuildTool"/> 
    193                         <Tool 
    194                                 Name="VCLinkerTool" 
    195                                 AdditionalDependencies="OgreMain.lib CEGUIBase.lib OgreGUIRenderer.lib" 
    196                                 OutputFile="$(OutDir)/ObjReader.dll" 
    197                                 LinkIncremental="1" 
    198                                 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;" 
    199                                 GenerateDebugInformation="TRUE" 
    20098                                SubSystem="2" 
    20199                                OptimizeReferences="2" 
     
    289187                <Configuration 
    290188                        Name="Release_qt|Win32" 
    291                         OutputDirectory="Release" 
    292                         IntermediateDirectory="Release" 
     189                        OutputDirectory="..\lib\Release" 
     190                        IntermediateDirectory="..\obj\Release" 
    293191                        ConfigurationType="2" 
    294192                        CharacterSet="2"> 
     
    310208                                LinkIncremental="1" 
    311209                                AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\OgreMain\lib\Release&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib&quot;;&quot;$(OGRE_PATH)\Dependencies\lib\$(ConfigurationName)&quot;;..\..\GtpVisibility\lib\Release;..\..\lib\Release" 
     210                                GenerateDebugInformation="FALSE" 
     211                                SubSystem="2" 
     212                                OptimizeReferences="2" 
     213                                EnableCOMDATFolding="2" 
     214                                ImportLibrary="$(OutDir)/ObjReader.lib" 
     215                                TargetMachine="1"/> 
     216                        <Tool 
     217                                Name="VCMIDLTool"/> 
     218                        <Tool 
     219                                Name="VCPostBuildEventTool" 
     220                                CommandLine="copy $(OutDir)\$(TargetFileName) &quot;$(OGRE_PATH)\Samples\Common\bin\Release&quot;"/> 
     221                        <Tool 
     222                                Name="VCPreBuildEventTool"/> 
     223                        <Tool 
     224                                Name="VCPreLinkEventTool"/> 
     225                        <Tool 
     226                                Name="VCResourceCompilerTool"/> 
     227                        <Tool 
     228                                Name="VCWebServiceProxyGeneratorTool"/> 
     229                        <Tool 
     230                                Name="VCXMLDataGeneratorTool"/> 
     231                        <Tool 
     232                                Name="VCWebDeploymentTool"/> 
     233                        <Tool 
     234                                Name="VCManagedWrapperGeneratorTool"/> 
     235                        <Tool 
     236                                Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
     237                </Configuration> 
     238                <Configuration 
     239                        Name="Release_noqt|Win32" 
     240                        OutputDirectory="..\lib\Release" 
     241                        IntermediateDirectory="..\obj\Release" 
     242                        ConfigurationType="2" 
     243                        CharacterSet="2"> 
     244                        <Tool 
     245                                Name="VCCLCompilerTool" 
     246                                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" 
     247                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;OBJREADER_EXPORTS;GTP_VISIBILITY_MODIFIED_OGRE" 
     248                                RuntimeLibrary="2" 
     249                                UsePrecompiledHeader="0" 
     250                                WarningLevel="3" 
     251                                Detect64BitPortabilityProblems="TRUE" 
     252                                DebugInformationFormat="3"/> 
     253                        <Tool 
     254                                Name="VCCustomBuildTool"/> 
     255                        <Tool 
     256                                Name="VCLinkerTool" 
     257                                AdditionalDependencies="OgreMain.lib zdll.lib zziplib.lib Preprocessor.lib xerces-c_2.lib RTScene.lib RTWorld.lib" 
     258                                OutputFile="$(OutDir)/ObjReader.dll" 
     259                                LinkIncremental="1" 
     260                                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" 
    312261                                GenerateDebugInformation="FALSE" 
    313262                                SubSystem="2" 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/include/DummyPreprocessingManager.h

    r2280 r2353  
    77 
    88namespace GtpVisibility { 
    9    
    10   /** 
    11      Implements a dummy interface to the external visibility preprocessing. 
    12   */ 
     9 
     10/** 
     11        Implements a dummy interface to the external visibility preprocessing. 
     12*/ 
    1313class DummyPreprocessingManager : public PreprocessingManager 
    1414{ 
    1515public: 
    1616 
     17        /** Constructor taking a scene traverser for a specific type of 
     18        hierarchyInterface as argument.  
     19        */ 
     20        DummyPreprocessingManager(HierarchyInterface *hierarchyInterface); 
    1721 
    18   /** Constructor taking a scene traverser for a specific type of 
    19       hierarchyInterface as argument.  
    20   */ 
    21   DummyPreprocessingManager(HierarchyInterface *hierarchyInterface); 
    22    
    23    
    24   /**  
    25       Export the scene for visibility preprocessing. Exports the hierarchyInterface including 
    26       its bounding boxes + mesh data for occluders. The viewcell data will either be 
    27       supplied directly to the visibility preprocessing standalone module 
    28   */ 
    29   virtual bool ExportScene(const string filename); 
    30    
    31    
    32   /**  
    33       Load preprocessed visibility information 
    34   */ 
    35   virtual bool LoadPreprocessedData(const string filename); 
    36    
    37    
     22        /**  
     23        Export the scene for visibility preprocessing. Exports the hierarchyInterface including 
     24        its bounding boxes + mesh data for occluders. The viewcell data will either be 
     25        supplied directly to the visibility preprocessing standalone module 
     26        */ 
     27        virtual bool ExportScene(const std::string &filename); 
     28 
     29        /**  
     30        Load preprocessed visibility information 
     31        */ 
     32        virtual bool LoadPreprocessedData(const std::string &filename); 
     33 
     34 
    3835protected: 
    3936 
    40   /**  
    41       Find viewcells intersecting a spherical neighborhood of a point. 
    42       Returns false if no viewcell was found. 
    43     */ 
    44   /*virtual bool LocateViewCellIds(const Vector3 &center, 
    45                                                                  const float radius, 
    46                                                                  vector<int> *viewCellIds 
    47                                                                 ); 
    48 */ 
     37        /**  
     38        Find viewcells intersecting a spherical neighborhood of a point. 
     39        Returns false if no viewcell was found. 
     40        */ 
     41        /*virtual bool LocateViewCellIds(const Vector3 &center, 
     42        const float radius, 
     43        vector<int> *viewCellIds 
     44        ); 
     45        */ 
    4946 
    50   /** 
    51      Add a PVS of the given viewcell to the already evaluated PVS by computing 
    52      a union with visibleNodes and visibleMeshes. Returns the number of added entries. 
    53   */ 
    54   //virtual int AddViewCellPVS(const int cellID, 
    55 //                                               NodeInfoContainer *visibleNodes, 
    56 //                                               MeshInfoContainer *visibleMeshes); 
     47        /** 
     48        Add a PVS of the given viewcell to the already evaluated PVS by computing 
     49        a union with visibleNodes and visibleMeshes. Returns the number of added entries. 
     50        */ 
     51        //virtual int AddViewCellPVS(const int cellID, 
     52        //                                               NodeInfoContainer *visibleNodes, 
     53        //                                               MeshInfoContainer *visibleMeshes); 
    5754 
    5855}; 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/include/PreprocessingManager.h

    r2280 r2353  
    33 
    44#include <string> 
    5 using namespace std; 
    65 
    76#include "HierarchyInterface.h" 
    87#include "VisibilityInfo.h" 
    9 //#include "VisibilityVector3.h" 
     8 
    109 
    1110namespace GtpVisibility { 
     
    4847        @return true if the export was succesful. 
    4948    */ 
    50     virtual bool ExportScene(const string filename) = 0; 
     49        virtual bool ExportScene(const std::string &filename) = 0; 
    5150     
    5251        /** Load preprocessed visibility information. The loaded data is matched with the current 
     
    6059        @return true if the loading was succesful. 
    6160    */ 
    62     virtual bool LoadPreprocessedData(const string filename) = 0; 
     61        virtual bool LoadPreprocessedData(const std::string &filename) = 0; 
    6362     
    6463    /**  
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/src/DummyPreprocessingManager.cpp

    r2280 r2353  
    11#include "DummyPreprocessingManager.h" 
     2 
    23#include <iostream> 
    34#include <fstream> 
     5 
     6using  namespace std; 
     7 
    48 
    59namespace GtpVisibility { 
    610 
    711DummyPreprocessingManager::DummyPreprocessingManager(HierarchyInterface *hierarchyInterface) 
    8   :PreprocessingManager(hierarchyInterface) 
     12:PreprocessingManager(hierarchyInterface) 
    913{ 
    1014} 
    11    
    1215 
    13 bool DummyPreprocessingManager::ExportScene(const string filename) 
     16 
     17bool DummyPreprocessingManager::ExportScene(const string &filename) 
    1418{ 
    15   ofstream s(filename.c_str()); 
    16   s<<"#VRML 2.0 utf8"<<endl; 
    17   s<<"#Dummy module output"<<endl; 
    18   return true; 
    19 } 
    20    
    21  
    22 bool DummyPreprocessingManager::LoadPreprocessedData(const string filename) 
    23 { 
    24   // do nothing 
    25   return false; 
     19        ofstream s(filename.c_str()); 
     20        s<<"#VRML 2.0 utf8"<<endl; 
     21        s<<"#Dummy module output"<<endl; 
     22        return true; 
    2623} 
    2724 
    28    
    29    
    30 /*bool DummyPreprocessingManager::LocateViewCellIds(const Vector3 &center, 
    31                                                                                                   const float radius, 
    32                                                                                                   vector<int> *viewCellIds) 
     25 
     26bool DummyPreprocessingManager::LoadPreprocessedData(const string &filename) 
    3327{ 
    34   return false; 
    35 }*/ 
    36    
    37 /*int DummyPreprocessingManager::AddViewCellPVS(const int cellID, 
    38                                           NodeInfoContainer *visibleNodes, 
    39                                           MeshInfoContainer *visibleMeshes ) 
    40 { 
    41   // return the root of the hierarchyInterface regardless of the cellId 
    42   //  visibleNodes->push_back(traverser->GetRoot()); 
    43   return false; 
     28        // do nothing 
     29        return false; 
    4430} 
    45 */ 
     31 
     32 
    4633} 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/src/GtpVisibility.vcproj

    r2280 r2353  
    106106                </Configuration> 
    107107                <Configuration 
    108                         Name="mlrt|Win32" 
    109                         OutputDirectory="$(ConfigurationName)" 
    110                         IntermediateDirectory="$(ConfigurationName)" 
    111                         ConfigurationType="4" 
    112                         CharacterSet="2"> 
    113                         <Tool 
    114                                 Name="VCCLCompilerTool" 
    115                                 OptimizeForWindowsApplication="TRUE" 
    116                                 AdditionalIncludeDirectories="..\include;&quot;$(OGRE_PATH)\OgreMain\include&quot;;..\..\Preprocessing\src" 
    117                                 PreprocessorDefinitions="WIN32;NDEBUG;_LIB" 
    118                                 RuntimeLibrary="2" 
    119                                 RuntimeTypeInfo="TRUE" 
    120                                 UsePrecompiledHeader="0" 
    121                                 WarningLevel="3" 
    122                                 Detect64BitPortabilityProblems="TRUE" 
    123                                 DebugInformationFormat="3"/> 
    124                         <Tool 
    125                                 Name="VCCustomBuildTool"/> 
    126                         <Tool 
    127                                 Name="VCLibrarianTool" 
    128                                 OutputFile="$(OutDir)/GtpVisibility.lib"/> 
    129                         <Tool 
    130                                 Name="VCMIDLTool"/> 
    131                         <Tool 
    132                                 Name="VCPostBuildEventTool"/> 
    133                         <Tool 
    134                                 Name="VCPreBuildEventTool"/> 
    135                         <Tool 
    136                                 Name="VCPreLinkEventTool"/> 
    137                         <Tool 
    138                                 Name="VCResourceCompilerTool"/> 
    139                         <Tool 
    140                                 Name="VCWebServiceProxyGeneratorTool"/> 
    141                         <Tool 
    142                                 Name="VCXMLDataGeneratorTool"/> 
    143                         <Tool 
    144                                 Name="VCManagedWrapperGeneratorTool"/> 
    145                         <Tool 
    146                                 Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
    147                 </Configuration> 
    148                 <Configuration 
    149                         Name="Release_Internal|Win32" 
    150                         OutputDirectory="$(ConfigurationName)" 
    151                         IntermediateDirectory="$(ConfigurationName)" 
    152                         ConfigurationType="4" 
    153                         CharacterSet="2"> 
    154                         <Tool 
    155                                 Name="VCCLCompilerTool" 
    156                                 OptimizeForWindowsApplication="TRUE" 
    157                                 AdditionalIncludeDirectories="..\include;&quot;$(OGRE_PATH)\OgreMain\include&quot;;..\..\Preprocessing\src" 
    158                                 PreprocessorDefinitions="WIN32;NDEBUG;_LIB" 
    159                                 RuntimeLibrary="2" 
    160                                 RuntimeTypeInfo="TRUE" 
    161                                 UsePrecompiledHeader="0" 
    162                                 WarningLevel="3" 
    163                                 Detect64BitPortabilityProblems="TRUE" 
    164                                 DebugInformationFormat="3"/> 
    165                         <Tool 
    166                                 Name="VCCustomBuildTool"/> 
    167                         <Tool 
    168                                 Name="VCLibrarianTool" 
    169                                 OutputFile="$(OutDir)/GtpVisibility.lib"/> 
    170                         <Tool 
    171                                 Name="VCMIDLTool"/> 
    172                         <Tool 
    173                                 Name="VCPostBuildEventTool"/> 
    174                         <Tool 
    175                                 Name="VCPreBuildEventTool"/> 
    176                         <Tool 
    177                                 Name="VCPreLinkEventTool"/> 
    178                         <Tool 
    179                                 Name="VCResourceCompilerTool"/> 
    180                         <Tool 
    181                                 Name="VCWebServiceProxyGeneratorTool"/> 
    182                         <Tool 
    183                                 Name="VCXMLDataGeneratorTool"/> 
    184                         <Tool 
    185                                 Name="VCManagedWrapperGeneratorTool"/> 
    186                         <Tool 
    187                                 Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
    188                 </Configuration> 
    189                 <Configuration 
    190108                        Name="Release Internal|Win32" 
    191109                        OutputDirectory="..\lib\Release" 
     
    282200                                Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
    283201                </Configuration> 
     202                <Configuration 
     203                        Name="Release_noqt|Win32" 
     204                        OutputDirectory="..\lib\Release" 
     205                        IntermediateDirectory="..\obj\Release" 
     206                        ConfigurationType="4" 
     207                        CharacterSet="2"> 
     208                        <Tool 
     209                                Name="VCCLCompilerTool" 
     210                                GlobalOptimizations="TRUE" 
     211                                FavorSizeOrSpeed="1" 
     212                                OmitFramePointers="TRUE" 
     213                                OptimizeForWindowsApplication="TRUE" 
     214                                AdditionalIncludeDirectories="..\include;&quot;$(OGRE_PATH)\OgreMain\include&quot;;..\..\Preprocessing\src" 
     215                                PreprocessorDefinitions="WIN32;NDEBUG;_LIB" 
     216                                RuntimeLibrary="2" 
     217                                RuntimeTypeInfo="TRUE" 
     218                                UsePrecompiledHeader="0" 
     219                                WarningLevel="3" 
     220                                Detect64BitPortabilityProblems="TRUE" 
     221                                DebugInformationFormat="3"/> 
     222                        <Tool 
     223                                Name="VCCustomBuildTool"/> 
     224                        <Tool 
     225                                Name="VCLibrarianTool" 
     226                                OutputFile="$(OutDir)/GtpVisibility.lib"/> 
     227                        <Tool 
     228                                Name="VCMIDLTool"/> 
     229                        <Tool 
     230                                Name="VCPostBuildEventTool"/> 
     231                        <Tool 
     232                                Name="VCPreBuildEventTool"/> 
     233                        <Tool 
     234                                Name="VCPreLinkEventTool"/> 
     235                        <Tool 
     236                                Name="VCResourceCompilerTool"/> 
     237                        <Tool 
     238                                Name="VCWebServiceProxyGeneratorTool"/> 
     239                        <Tool 
     240                                Name="VCXMLDataGeneratorTool"/> 
     241                        <Tool 
     242                                Name="VCManagedWrapperGeneratorTool"/> 
     243                        <Tool 
     244                                Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
     245                </Configuration> 
    284246        </Configurations> 
    285247        <References> 
  • GTP/trunk/Lib/Vis/Preprocessing/EvalStats/EvalStats.vcproj

    r2280 r2353  
    106106                </Configuration> 
    107107                <Configuration 
    108                         Name="mlrt|Win32" 
    109                         OutputDirectory="$(ConfigurationName)" 
    110                         IntermediateDirectory="$(ConfigurationName)" 
    111                         ConfigurationType="1" 
    112                         CharacterSet="2"> 
    113                         <Tool 
    114                                 Name="VCCLCompilerTool" 
    115                                 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" 
    116                                 RuntimeLibrary="0" 
    117                                 UsePrecompiledHeader="3" 
    118                                 WarningLevel="3" 
    119                                 Detect64BitPortabilityProblems="TRUE" 
    120                                 DebugInformationFormat="3"/> 
    121                         <Tool 
    122                                 Name="VCCustomBuildTool"/> 
    123                         <Tool 
    124                                 Name="VCLinkerTool" 
    125                                 OutputFile="$(OutDir)/EvalStats.exe" 
    126                                 LinkIncremental="1" 
    127                                 GenerateDebugInformation="TRUE" 
    128                                 SubSystem="1" 
    129                                 OptimizeReferences="2" 
    130                                 EnableCOMDATFolding="2" 
    131                                 TargetMachine="1"/> 
    132                         <Tool 
    133                                 Name="VCMIDLTool"/> 
    134                         <Tool 
    135                                 Name="VCPostBuildEventTool"/> 
    136                         <Tool 
    137                                 Name="VCPreBuildEventTool"/> 
    138                         <Tool 
    139                                 Name="VCPreLinkEventTool"/> 
    140                         <Tool 
    141                                 Name="VCResourceCompilerTool"/> 
    142                         <Tool 
    143                                 Name="VCWebServiceProxyGeneratorTool"/> 
    144                         <Tool 
    145                                 Name="VCXMLDataGeneratorTool"/> 
    146                         <Tool 
    147                                 Name="VCWebDeploymentTool"/> 
    148                         <Tool 
    149                                 Name="VCManagedWrapperGeneratorTool"/> 
    150                         <Tool 
    151                                 Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
    152                 </Configuration> 
    153                 <Configuration 
    154                         Name="Release_Internal|Win32" 
    155                         OutputDirectory="$(ConfigurationName)" 
    156                         IntermediateDirectory="$(ConfigurationName)" 
    157                         ConfigurationType="1" 
    158                         CharacterSet="2"> 
    159                         <Tool 
    160                                 Name="VCCLCompilerTool" 
    161                                 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" 
    162                                 RuntimeLibrary="0" 
    163                                 UsePrecompiledHeader="3" 
    164                                 WarningLevel="3" 
    165                                 Detect64BitPortabilityProblems="TRUE" 
    166                                 DebugInformationFormat="3"/> 
    167                         <Tool 
    168                                 Name="VCCustomBuildTool"/> 
    169                         <Tool 
    170                                 Name="VCLinkerTool" 
    171                                 OutputFile="$(OutDir)/EvalStats.exe" 
    172                                 LinkIncremental="1" 
    173                                 GenerateDebugInformation="TRUE" 
    174                                 SubSystem="1" 
    175                                 OptimizeReferences="2" 
    176                                 EnableCOMDATFolding="2" 
    177                                 TargetMachine="1"/> 
    178                         <Tool 
    179                                 Name="VCMIDLTool"/> 
    180                         <Tool 
    181                                 Name="VCPostBuildEventTool"/> 
    182                         <Tool 
    183                                 Name="VCPreBuildEventTool"/> 
    184                         <Tool 
    185                                 Name="VCPreLinkEventTool"/> 
    186                         <Tool 
    187                                 Name="VCResourceCompilerTool"/> 
    188                         <Tool 
    189                                 Name="VCWebServiceProxyGeneratorTool"/> 
    190                         <Tool 
    191                                 Name="VCXMLDataGeneratorTool"/> 
    192                         <Tool 
    193                                 Name="VCWebDeploymentTool"/> 
    194                         <Tool 
    195                                 Name="VCManagedWrapperGeneratorTool"/> 
    196                         <Tool 
    197                                 Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
    198                 </Configuration> 
    199                 <Configuration 
    200108                        Name="Release Internal|Win32" 
    201                         OutputDirectory="..\bin\Release" 
    202                         IntermediateDirectory="..\obj\Release" 
     109                        OutputDirectory="Release" 
     110                        IntermediateDirectory="Release" 
    203111                        ConfigurationType="1" 
    204112                        CharacterSet="2"> 
     
    226134                                OutputFile="$(OutDir)/EvalStats.exe" 
    227135                                LinkIncremental="1" 
    228                                 GenerateDebugInformation="TRUE" 
     136                                GenerateDebugInformation="FALSE" 
    229137                                SubSystem="1" 
    230138                                OptimizeReferences="2" 
     
    255163                <Configuration 
    256164                        Name="Release_qt|Win32" 
    257                         OutputDirectory="$(ConfigurationName)" 
    258                         IntermediateDirectory="$(ConfigurationName)" 
     165                        OutputDirectory="Release" 
     166                        IntermediateDirectory="Release" 
    259167                        ConfigurationType="1" 
    260168                        CharacterSet="2"> 
     
    274182                                LinkIncremental="1" 
    275183                                GenerateDebugInformation="TRUE" 
     184                                SubSystem="1" 
     185                                OptimizeReferences="2" 
     186                                EnableCOMDATFolding="2" 
     187                                TargetMachine="1"/> 
     188                        <Tool 
     189                                Name="VCMIDLTool"/> 
     190                        <Tool 
     191                                Name="VCPostBuildEventTool"/> 
     192                        <Tool 
     193                                Name="VCPreBuildEventTool"/> 
     194                        <Tool 
     195                                Name="VCPreLinkEventTool"/> 
     196                        <Tool 
     197                                Name="VCResourceCompilerTool"/> 
     198                        <Tool 
     199                                Name="VCWebServiceProxyGeneratorTool"/> 
     200                        <Tool 
     201                                Name="VCXMLDataGeneratorTool"/> 
     202                        <Tool 
     203                                Name="VCWebDeploymentTool"/> 
     204                        <Tool 
     205                                Name="VCManagedWrapperGeneratorTool"/> 
     206                        <Tool 
     207                                Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
     208                </Configuration> 
     209                <Configuration 
     210                        Name="Release_noqt|Win32" 
     211                        OutputDirectory="Release" 
     212                        IntermediateDirectory="Release" 
     213                        ConfigurationType="1" 
     214                        CharacterSet="2"> 
     215                        <Tool 
     216                                Name="VCCLCompilerTool" 
     217                                PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" 
     218                                RuntimeLibrary="0" 
     219                                UsePrecompiledHeader="3" 
     220                                WarningLevel="3" 
     221                                Detect64BitPortabilityProblems="TRUE" 
     222                                DebugInformationFormat="3"/> 
     223                        <Tool 
     224                                Name="VCCustomBuildTool"/> 
     225                        <Tool 
     226                                Name="VCLinkerTool" 
     227                                OutputFile="Release/EvalStats.exe" 
     228                                LinkIncremental="1" 
     229                                GenerateDebugInformation="FALSE" 
    276230                                SubSystem="1" 
    277231                                OptimizeReferences="2" 
     
    325279                                </FileConfiguration> 
    326280                                <FileConfiguration 
    327                                         Name="mlrt|Win32"> 
    328                                         <Tool 
    329                                                 Name="VCCLCompilerTool" 
    330                                                 UsePrecompiledHeader="1"/> 
    331                                 </FileConfiguration> 
    332                                 <FileConfiguration 
    333                                         Name="Release_Internal|Win32"> 
    334                                         <Tool 
    335                                                 Name="VCCLCompilerTool" 
    336                                                 UsePrecompiledHeader="1"/> 
    337                                 </FileConfiguration> 
    338                                 <FileConfiguration 
    339281                                        Name="Release Internal|Win32"> 
    340282                                        <Tool 
     
    344286                                <FileConfiguration 
    345287                                        Name="Release_qt|Win32"> 
     288                                        <Tool 
     289                                                Name="VCCLCompilerTool" 
     290                                                UsePrecompiledHeader="1"/> 
     291                                </FileConfiguration> 
     292                                <FileConfiguration 
     293                                        Name="Release_noqt|Win32"> 
    346294                                        <Tool 
    347295                                                Name="VCCLCompilerTool" 
  • GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp

    r2342 r2353  
    285285 
    286286        // split was not reevaluated before => do it now 
    287         if (splitCandidate->IsDirty()) 
     287        // matt: for new evaluation method, we cannot be sure if the candidate is dirty, 
     288        // so ALWAYS reevaluate 
     289        if (1 || splitCandidate->IsDirty()) 
    288290        { 
    289291                splitCandidate->EvalCandidate(); 
     
    25092511} 
    25102512 
    2511 #ifdef USE_SSE 
     2513 
    25122514int HierarchyManager::CastLineSegment(RayPacket &packet) 
    25132515{ 
     
    25152517} 
    25162518 
    2517 #endif 
    2518  
    2519 } 
     2519 
     2520} 
  • GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.h

    r2347 r2353  
    318318                                                const bool useMailboxing = true); 
    319319 
    320 #ifdef USE_SSE 
    321320        int CastLineSegment(RayPacket &packet); 
    322 #endif 
    323321 
    324322 
  • GTP/trunk/Lib/Vis/Preprocessing/src/Mutation.cpp

    r2210 r2353  
    4949  //    cout<<mRays[i].mMutations<<" "; 
    5050  //  cout<<endl; 
    51   cerr<<"Muattion update..."<<endl; 
     51  cerr<<"Mutation update..."<<endl; 
    5252  cerr<<"rays = "<<mRays.size()<<endl; 
    5353  if ((int)mRays.size()) { 
  • GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.vcproj

    r2342 r2353  
    8080                                UsePrecompiledHeader="0" 
    8181                                BrowseInformation="1" 
    82                                 WarningLevel="2" 
    83                                 Detect64BitPortabilityProblems="TRUE" 
    84                                 DebugInformationFormat="3"/> 
    85                         <Tool 
    86                                 Name="VCCustomBuildTool"/> 
    87                         <Tool 
    88                                 Name="VCLibrarianTool"/> 
    89                         <Tool 
    90                                 Name="VCMIDLTool"/> 
    91                         <Tool 
    92                                 Name="VCPostBuildEventTool"/> 
    93                         <Tool 
    94                                 Name="VCPreBuildEventTool"/> 
    95                         <Tool 
    96                                 Name="VCPreLinkEventTool"/> 
    97                         <Tool 
    98                                 Name="VCResourceCompilerTool"/> 
    99                         <Tool 
    100                                 Name="VCWebServiceProxyGeneratorTool"/> 
    101                         <Tool 
    102                                 Name="VCXMLDataGeneratorTool"/> 
    103                         <Tool 
    104                                 Name="VCManagedWrapperGeneratorTool"/> 
    105                         <Tool 
    106                                 Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
    107                 </Configuration> 
    108                 <Configuration 
    109                         Name="Release_Internal|Win32" 
    110                         OutputDirectory="$(ConfigurationName)" 
    111                         IntermediateDirectory="$(ConfigurationName)" 
    112                         ConfigurationType="4" 
    113                         CharacterSet="2"> 
    114                         <Tool 
    115                                 Name="VCCLCompilerTool" 
    116                                 Optimization="0" 
    117                                 InlineFunctionExpansion="0" 
    118                                 FavorSizeOrSpeed="0" 
    119                                 OptimizeForWindowsApplication="TRUE" 
    120                                 AdditionalIncludeDirectories="..\include;&quot;$(QTDIR)\include\QtCore&quot;;&quot;$(QTDIR)\include\QtGui&quot;;&quot;$(QTDIR)\include&quot;;&quot;$(QTDIR)\include\QtOpenGl&quot;;..\src;&quot;$(CG_INC_PATH)&quot;;..\..\..\..\..\..\NonGTP\Devil\include;..\..\..\..\..\..\NonGTP\Zlib\include;..\..\..\..\..\..\NonGTP\Xerces;&quot;$(BOOST_INCLUDE)&quot;;..\..\Preprocessing\MultiLevelRayTracing" 
    121                                 PreprocessorDefinitions="WIN32;NDEBUG;_LIB" 
    122                                 ExceptionHandling="TRUE" 
    123                                 RuntimeLibrary="2" 
    124                                 DisableLanguageExtensions="FALSE" 
    125                                 ForceConformanceInForLoopScope="FALSE" 
    126                                 RuntimeTypeInfo="TRUE" 
    127                                 UsePrecompiledHeader="0" 
    12882                                WarningLevel="2" 
    12983                                Detect64BitPortabilityProblems="TRUE" 
     
    270224                </Configuration> 
    271225                <Configuration 
    272                         Name="Release_Qt|Win32" 
     226                        Name="Release_qt|Win32" 
    273227                        OutputDirectory="..\lib\Release" 
    274228                        IntermediateDirectory="..\obj\Release" 
     
    627581                                <FileConfiguration 
    628582                                        Name="Release|Win32"> 
    629                                         <Tool 
    630                                                 Name="VCCustomBuildTool" 
    631                                                 Description="" 
    632                                                 CommandLine="" 
    633                                                 Outputs=""/> 
    634                                 </FileConfiguration> 
    635                                 <FileConfiguration 
    636                                         Name="Release_Internal|Win32"> 
    637583                                        <Tool 
    638584                                                Name="VCCustomBuildTool" 
     
    658604                                </FileConfiguration> 
    659605                                <FileConfiguration 
    660                                         Name="Release_Qt|Win32"> 
     606                                        Name="Release_qt|Win32"> 
    661607                                        <Tool 
    662608                                                Name="VCCustomBuildTool" 
     
    679625                                <FileConfiguration 
    680626                                        Name="Release|Win32"> 
    681                                         <Tool 
    682                                                 Name="VCCustomBuildTool" 
    683                                                 Description="" 
    684                                                 CommandLine="" 
    685                                                 Outputs=""/> 
    686                                 </FileConfiguration> 
    687                                 <FileConfiguration 
    688                                         Name="Release_Internal|Win32"> 
    689627                                        <Tool 
    690628                                                Name="VCCustomBuildTool" 
     
    710648                                </FileConfiguration> 
    711649                                <FileConfiguration 
    712                                         Name="Release_Qt|Win32"> 
     650                                        Name="Release_qt|Win32"> 
    713651                                        <Tool 
    714652                                                Name="VCCustomBuildTool" 
  • GTP/trunk/Lib/Vis/Preprocessing/src/SamplingStrategy.cpp

    r2227 r2353  
    496496} 
    497497 
    498   // add contributions of the sample to the strategies 
     498 
     499#if TEST_PACKETS 
     500 
     501// add contributions of the sample to the strategies 
     502void MixtureDistribution::ComputeContributions(VssRayContainer &vssRays) 
     503{ 
     504        int i; 
     505 
     506        mPreprocessor.mViewCellsManager->ComputeSampleContributions(vssRays, true, false); 
     507 
     508        VssRayContainer::iterator it = vssRays.begin(); 
     509 
     510        for (i=0; i < mDistributions.size(); i++) { 
     511                mDistributions[i]->mContribution = 0; 
     512                mDistributions[i]->mRays = 0; 
     513        } 
     514 
     515        for(; it != vssRays.end(); ++ it)  
     516        { 
     517                VssRay *ray = *it; 
     518 
     519                for (i = 0; i < mDistributions.size() - 1; ++ i)  
     520                { 
     521                        if (mDistributions[i]->mType == ray->mDistribution) 
     522                                break; 
     523                } 
     524 
     525                float contribution = 
     526                        mPreprocessor.mViewCellsManager->ComputeSampleContribution(*ray, true, false); 
     527 
     528                mDistributions[i]->mContribution += contribution; 
     529                mDistributions[i]->mRays ++; 
     530 
     531                mDistributions[i]->mTotalContribution += contribution; 
     532                mDistributions[i]->mTotalRays ++; 
     533        } 
     534 
     535        UpdateRatios(); 
     536 
     537 
     538        const float vcTime = viewCellCastTimer.TotalTime(); 
     539        const float pvsTime = pvsTimer.TotalTime(); 
     540        const float haltonTime = haltonTimer.TotalTime(); 
     541 
     542        cout << "view cell cast time: " << vcTime << " s" << endl; 
     543        cout << "pvs time: " << pvsTime << " s" << endl; 
     544        cout << "halton time: "<< haltonTime << " s" << endl; 
     545 
     546        Debug << "view cell cast time: " << vcTime << " s" << endl; 
     547        Debug << "pvs time: " << pvsTime << " s" << endl; 
     548        Debug << "halton time: "<< haltonTime << " s" << endl; 
     549} 
     550 
     551 
     552#else 
     553 
     554// add contributions of the sample to the strategies 
    499555void 
    500556MixtureDistribution::ComputeContributions(VssRayContainer &vssRays) 
    501557{ 
    502   int i; 
    503    
    504   VssRayContainer::iterator it = vssRays.begin(); 
    505  
    506   for (i=0; i < mDistributions.size(); i++) { 
    507         mDistributions[i]->mContribution = 0; 
    508         mDistributions[i]->mRays = 0; 
    509   } 
    510  
    511   for(; it != vssRays.end(); ++it) { 
    512         VssRay *ray = *it; 
    513         for (i=0; i < mDistributions.size()-1; i++) { 
    514           if (mDistributions[i]->mType == ray->mDistribution) 
    515                 break; 
    516         } 
    517   
    518         float contribution = 
    519           mPreprocessor.mViewCellsManager->ComputeSampleContribution(*ray, 
    520                                                                                                                                  true, 
    521                                                                                                                                  false); 
    522  
    523         mDistributions[i]->mContribution += contribution; 
    524         mDistributions[i]->mRays ++; 
    525          
    526         mDistributions[i]->mTotalContribution += contribution; 
    527         mDistributions[i]->mTotalRays ++; 
    528   } 
    529  
    530 #if 0 
    531   pvsTimer.Entry(); 
    532   // resort pvss 
    533   mPreprocessor.mViewCellsManager->SortViewCellPvs(); 
    534   pvsTimer.Exit(); 
     558        int i; 
     559 
     560        VssRayContainer::iterator it = vssRays.begin(); 
     561 
     562        for (i=0; i < mDistributions.size(); i++) { 
     563                mDistributions[i]->mContribution = 0; 
     564                mDistributions[i]->mRays = 0; 
     565        } 
     566 
     567        for(; it != vssRays.end(); ++it) { 
     568                VssRay *ray = *it; 
     569                for (i=0; i < mDistributions.size()-1; i++) { 
     570                        if (mDistributions[i]->mType == ray->mDistribution) 
     571                                break; 
     572                } 
     573 
     574                float contribution = 
     575                        mPreprocessor.mViewCellsManager->ComputeSampleContribution(*ray, 
     576                        true, 
     577                        false); 
     578 
     579                mDistributions[i]->mContribution += contribution; 
     580                mDistributions[i]->mRays ++; 
     581 
     582                mDistributions[i]->mTotalContribution += contribution; 
     583                mDistributions[i]->mTotalRays ++; 
     584        } 
     585 
     586        UpdateRatios(); 
     587 
     588 
     589  if (1) 
     590  { 
     591          const float vcTime = viewCellCastTimer.TotalTime(); 
     592          const float pvsTime = pvsTimer.TotalTime(); 
     593          const float haltonTime = haltonTimer.TotalTime(); 
     594 
     595          cout << "view cell cast time: " << vcTime << " s" << endl; 
     596          cout << "pvs time: " << pvsTime << " s" << endl; 
     597          cout << "halton time: "<< haltonTime << " s" << endl; 
     598 
     599          Debug << "view cell cast time: " << vcTime << " s" << endl; 
     600          Debug << "pvs time: " << pvsTime << " s" << endl; 
     601          Debug << "halton time: "<< haltonTime << " s" << endl; 
     602  } 
     603} 
     604 
    535605#endif 
    536606 
    537    
    538   UpdateRatios(); 
    539  
    540 #if 1 
    541   const float vcTime = viewCellCastTimer.TotalTime(); 
    542   const float pvsTime = pvsTimer.TotalTime(); 
    543   const float haltonTime = haltonTimer.TotalTime(); 
    544  
    545   cout << "view cell cast time: " << vcTime << " s" << endl; 
    546   cout << "pvs time: " << pvsTime << " s" << endl; 
    547   cout << "halton time: "<< haltonTime << " s" << endl; 
    548   // cout<<"obj time:"<<objTimer.TotalTime()<<" s"<<endl; 
    549  
    550   Debug << "view cell cast time: " << vcTime << " s" << endl; 
    551   Debug << "pvs time: " << pvsTime << " s" << endl; 
    552   Debug << "halton time: "<< haltonTime << " s" << endl; 
    553 #endif 
    554 } 
    555607 
    556608void 
  • GTP/trunk/Lib/Vis/Preprocessing/src/TestPreprocessor.vcproj

    r2347 r2353  
    212212                                OptimizeForProcessor="1" 
    213213                                OptimizeForWindowsApplication="TRUE" 
    214                                 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;" 
     214                                AdditionalIncludeDirectories="..\include;..\..\..\..\..\..\NonGTP\Boost;..\src;..\..\..\..\..\..\NonGTP\Devil\include;..\..\..\..\..\..\NonGTP\Zlib\include;..\..\..\..\..\..\NonGTP\Xerces" 
    215215                                PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;GTP_INTERNAL;NO_QT;USE_SSE" 
    216216                                RuntimeLibrary="2" 
     
    226226                                Name="VCLinkerTool" 
    227227                                AdditionalDependencies="xerces-c_2.lib glew32.lib zdll.lib zziplib.lib devil.lib glut32.lib OpenGL32.Lib glu32.lib Preprocessor.lib RTScene.lib RTWorld.lib" 
    228                                 OutputFile="../bin/release/Preprocessor2.exe" 
     228                                OutputFile="../bin/release/Preprocessor.exe" 
    229229                                LinkIncremental="1" 
    230230                                AdditionalLibraryDirectories="..\src\GL;..\lib\release;..\..\Preprocessing\lib\release;..\..\..\..\..\..\NonGTP\Boost\lib;..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;..\..\..\..\..\..\NonGTP\Zlib\lib;..\..\..\..\..\..\NonGTP\Devil\lib;..\MultiLevelRayTracing\RTScene\Release;..\MultiLevelRayTracing\RTWorld\Release" 
     
    258258                </Configuration> 
    259259                <Configuration 
    260                         Name="Release_Qt|Win32" 
     260                        Name="Release_qt|Win32" 
    261261                        OutputDirectory="..\bin\Release" 
    262262                        IntermediateDirectory="..\obj\Release" 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp

    r2351 r2353  
    66526652        stream << "</ViewCells>" << endl; 
    66536653 
     6654 
    66546655        ////////////////////// 
    66556656        //-- export the view space hierarchy 
     
    68086809} 
    68096810 
    6810  
    6811 #if 1 
    68126811 
    68136812void VspOspViewCellsManager::EvalViewCellPartition() 
     
    68986897                        Debug << "statistics computed in " << timeDiff * 1e-3 << " secs" << endl; 
    68996898 
    6900 #if 0 
    6901                         ////////////// 
    6902                         // filtered stats 
    6903  
    6904                         sprintf(suffix, "-%09d-eval-filter.log", castSamples); 
    6905                         const string filename2 = string(statsPrefix) + string(suffix); 
    6906  
    6907                         startTime = GetTime(); 
    6908                          
    6909                         cout << "compute new statistics for filtered pvs ... " << endl; 
    6910  
    6911                         ofstream ofstr2(filename2.c_str()); 
    6912                         mHierarchyManager->EvaluateSubdivision2(ofstr2, splitsStepSize, true); 
    6913  
    6914                         timeDiff = TimeDiff(startTime, GetTime()); 
    6915                         cout << "finished in " << timeDiff * 1e-3 << " secs" << endl; 
    6916                         cout << "*************************************" << endl; 
    6917                         Debug << "filtered statistics computed in " << timeDiff * 1e-3 << " secs" << endl; 
    6918 #endif 
    6919  
    6920                         // only for debugging purpose 
    6921                         if (0) 
    6922                         { 
    6923                                 ViewCellContainer viewCells; 
    6924                                 mViewCellsTree->CollectLeaves(mViewCellsTree->GetRoot(), viewCells); 
    6925  
    6926                                 ViewCellContainer::const_iterator vit, vit_end = viewCells.end(); 
    6927                                 int pvsSize = 0; 
    6928  
    6929                                 for (vit = viewCells.begin(); vit != vit_end; ++ vit) 
    6930                                 { 
    6931                                         pvsSize += (*vit)->GetPvs().GetSize(); 
    6932                                 } 
    6933  
    6934                                 cout << "debug entries: " << pvsSize << ", memcost: "  
    6935                                          << (float)pvsSize * ObjectPvs::GetEntrySize() << endl; 
    6936                         } 
    69376899                        ++ pass; 
    69386900                } 
     
    69596921 
    69606922                //for (int pass = histoStepSize; pass <= numLeaves; pass += histoStepSize) 
    6961                 if (1) 
    6962                 { 
    6963                         string filename; 
    6964  
    6965                         cout << "computing histogram for " << pass << " view cells" << endl; 
    6966  
    6967                         ////////////////////////////////////////// 
    6968             //-- evaluate histogram for pvs size 
    6969  
    6970                         cout << "computing pvs histogram for " << pass << " view cells" << endl; 
    6971  
    6972                         sprintf(str, "-%09d-histo-pvs2.log", pass); 
    6973                         filename = string(statsPrefix) + string(str); 
    6974  
    6975                         EvalViewCellHistogramForPvsSize(filename, pass); 
    6976                 } 
    6977         } 
    6978 } 
    6979  
    6980 #endif 
     6923 
     6924                string filename; 
     6925 
     6926                cout << "computing histogram for " << pass << " view cells" << endl; 
     6927 
     6928                ///////////////////////////// 
     6929                //-- evaluate histogram for pvs size 
     6930 
     6931                cout << "computing pvs histogram for " << pass << " view cells" << endl; 
     6932 
     6933                sprintf(str, "-%09d-histo-pvs2.log", pass); 
     6934                filename = string(statsPrefix) + string(str); 
     6935 
     6936                EvalViewCellHistogramForPvsSize(filename, pass); 
     6937        } 
     6938} 
     6939 
    69816940 
    69826941void VspOspViewCellsManager::FinalizeViewCells(const bool createMesh) 
     
    69936952 
    69946953#if TEST_PACKETS 
    6995 #ifdef USE_SSE 
    6996  
    6997 float ViewCellsManager::ComputeSampleContributions(const VssRayContainer &rays, 
    6998                                                                                                    const bool addContributions, 
    6999                                                                                                    const bool storeViewCells, 
    7000                                                                                                    const bool useHitObjects) 
    7001 { 
     6954 
     6955float VspOspViewCellsManager::ComputeSampleContributions(const VssRayContainer &rays, 
     6956                                                                                                                 const bool addContributions, 
     6957                                                                                                                 const bool storeViewCells, 
     6958                                                                                                                 const bool useHitObjects) 
     6959{ 
     6960        if (!ViewCellsConstructed())  
     6961                return 0; 
     6962         
    70026963        float sum = 0.0f; 
    7003  
    70046964        VssRayContainer::const_iterator it, it_end = rays.end(); 
    70056965 
    70066966        VssRayContainer tmpRays;         
    7007         RayPacket packet; 
    70086967 
    70096968        for (it = rays.begin(); it != it_end; ++ it)  
    70106969        { 
    7011                 if (!ViewCellsConstructed())  
    7012                 { 
    7013                         // view cells not yet constructed 
    7014                         // just take the lenghts of the rays as contributions 
    7015                         if ((*it)->mTerminationObject) 
     6970                sum += ComputeSampleContribution(*(*it), addContributions, storeViewCells, useHitObjects); 
     6971 
     6972                tmpRays.push_back(new VssRay(*(*it))); 
     6973                 
     6974                if (tmpRays.size() == 4) 
     6975                { 
     6976                        // cast packets of 4 rays 
     6977                        RayPacket packet(tmpRays); 
     6978                        mHierarchyManager->CastLineSegment(packet); 
     6979                 
     6980                        for (int i = 0; i < 4; ++ i) 
    70166981                        { 
    7017                                 sum += (*it)->Length(); 
     6982                                ComputeSampleContribution(*tmpRays[i], addContributions, true, useHitObjects); 
     6983 
     6984                                ////////// 
     6985                                // compare results 
     6986 
     6987                                cout << "ray " << i << ": " << (int)tmpRays[i]->mViewCells.size() << " " << (int)packet.mViewCells[i].size() << endl; 
    70186988                        } 
    7019                 }  
    7020                 else  
    7021                 { 
    7022                         sum += ComputeSampleContribution(*(*it), addContributions, storeViewCells, useHitObjects); 
    7023  
    7024                         tmpRays.push_back(new VssRay(*it)); 
     6989 
    70256990                         
    7026                         if (tmpRays.size() == 4) 
    7027                         { 
    7028                                 // cast packets of 4 rays 
    7029                                 RayPacket packet(tmpRays); 
    7030                                 mHierarchyManager->CastLineSegment(packet); 
    7031  
    7032                                 for (int i = 0; i < 4; ++ i) 
    7033                                 { 
    7034                                         ComputeSampleContribution(tmpRays[i], addContributions, true, useHitObjects); 
    7035                                 } 
    7036  
    7037                                 // compare results 
    7038                                 ////////// 
    7039  
    7040                                 CLEAR_CONTAINER(tmpRays); 
    7041                         } 
    7042                 } 
    7043         } 
     6991                         
     6992                        CLEAR_CONTAINER(tmpRays); 
     6993                } 
     6994        } 
     6995cout << "=================\nhere6"<<endl; 
     6996        CLEAR_CONTAINER(tmpRays); 
    70446997 
    70456998        cout << "view cell cast time: " << viewCellCastTimer.TotalTime() << " s" << endl; 
     
    70537006 
    70547007#endif 
    7055 #endif 
    7056  
    7057 } 
     7008 
     7009 
     7010} 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.h

    r2332 r2353  
    12251225}; 
    12261226 
    1227 #define TEST_EVALUATION 0 
    1228  
    1229 /** 
    1230         Manages different higher order operations on the view cells. 
     1227 
     1228 
     1229/**     Manages different higher order operations on the view cells. 
    12311230*/ 
    12321231class VspOspViewCellsManager: public ViewCellsManager 
     
    13011300 
    13021301#if TEST_PACKETS 
    1303 #ifdef USE_SSE 
    1304  
    1305         float ViewCellsManager::ComputeSampleContributions(const VssRayContainer &rays, 
    1306                                                                const bool addContributions, 
    1307                                                                                                            const bool storeViewCells, 
    1308                                                                                                            const bool useHitObjects); 
    1309  
     1302 
     1303        float ComputeSampleContributions(const VssRayContainer &rays, 
     1304                                             const bool addContributions, 
     1305                                                                         const bool storeViewCells, 
     1306                                                                         const bool useHitObjects = false); 
    13101307#endif 
    1311 #endif 
    13121308 
    13131309protected: 
     
    13151311        VspOspViewCellsManager(ViewCellsTree *vcTree, HierarchyManager *hm); 
    13161312         
    1317 #if 1//TEST_EVALUATION 
    13181313        virtual void EvalViewCellPartition(); 
    1319 #endif 
    13201314 
    13211315        /** Exports view cell geometry. 
     
    13491343        static HierarchyManager *CreateHierarchyManager(const string &name); 
    13501344 
    1351         //void ExportStats(const string &mergeStats); 
    1352  
    13531345        /** collect objects intersecting a given spatial box  
    13541346        */ 
  • GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.cpp

    r2351 r2353  
    16231623 
    16241624        const float oldRenderCost = penaltyOld * pOverall; 
    1625         const float newRenderCost = sc.mCorrectedFrontRenderCost * pFront +  
    1626                                                                 sc.mCorrectedBackRenderCost * pBack; 
     1625        const float newRenderCost = sc.mCorrectedFrontRenderCost * pFront + sc.mCorrectedBackRenderCost * pBack; 
    16271626 
    16281627 
     
    16341633 
    16351634#if GTP_DEBUG 
    1636         Debug << "old: " << normalizedOldRenderCost << " new: " << newRenderCost / viewSpaceVol << " corr: " << tData.mCorrectedRenderCost << " ratio: " << oldRenderCostRatio << endl; 
     1635        Debug << "old: " << normalizedOldRenderCost << " new: " << newRenderCost / viewSpaceVol  
     1636                  << " corr: " << tData.mCorrectedRenderCost << " ratio: " << oldRenderCostRatio << endl; 
    16371637#endif 
    16381638 
     
    24252425                        tStack.push(LineTraversalData(farChild, extp, maxt)); //TODO 
    24262426 
     2427                        // new exit point for near child 
    24272428                        extp = origin + dir * tdist; 
    24282429                        maxt = tdist; 
     
    24532454                                break; 
    24542455 
     2456                        // set new entry point for far child 
    24552457                        entp = extp; 
    24562458                        mint = maxt; 
     
    24692471 
    24702472 
     2473int VspTree::TraverseRayPacket(RayPacket &rp, const bool useMailboxing) 
     2474{ 
    24712475#ifdef USE_SSE 
    2472 int VspTree::TraverseRayPacket(RayPacket &rp, 
    2473                                                            const bool useMailboxing) 
    2474 { 
    24752476        int hits = 0; 
    24762477 
     
    24792480        float zero = 0.0f; 
    24802481 
    2481         __m128 one4 = _mm_load_ps(&one); 
    2482         __m128 zero4 = _mm_load_ps(&zero); 
    2483  
    2484         __m128 *entp4; 
    2485         __m128 *extp4; 
    2486  
    2487         union { float mask[4]; __m128 mask4; }; 
     2482        __m128 one4 = _mm_load1_ps(&one); 
     2483        __m128 zero4 = _mm_load1_ps(&zero); 
     2484 
     2485        union { __m128 mask4; float mask[4];}; 
     2486        union { __m128 mask4_2; float mask_2[4];}; 
     2487 
    24882488        mask4 = one4; 
    24892489 
    2490         __m128 entpX4 = rp.mOriginX4; 
    2491         __m128 entpY4 = rp.mOriginY4; 
    2492         __m128 entpZ4 = rp.mOriginZ4; 
    2493          
    2494         __m128 extpX4 = rp.mTerminationX4; 
    2495         __m128 extpY4 = rp.mTerminationY4; 
    2496         __m128 extpZ4 = rp.mTerminationZ4; 
     2490        __declspec(align(16)) __m128 entp4[] = {rp.mOriginX4, rp.mOriginY4, rp.mOriginZ4}; 
     2491        __declspec(align(16)) __m128 extp4[] = {rp.mTerminationX4, rp.mTerminationY4, rp.mTerminationZ4}; 
    24972492 
    24982493        __m128 *origin = &rp.mOriginX4; 
     
    25112506        __m128 minT4 = zero4; 
    25122507 
    2513         stack<PacketTraversalData *> tStack; 
    2514  
     2508        PacketTraversalStack tStack(1000); 
    25152509 
    25162510        VspNode *node = mRoot; 
     
    25272521                { 
    25282522                        VspInterior *in = static_cast<VspInterior *>(node); 
    2529                          
    2530                         entp4 = &entpX4; 
    2531                         extp4 = &extpX4; 
    2532  
     2523                 
    25332524                        position = in->GetPosition(); 
    25342525                        axis = in->GetAxis(); 
    25352526 
    2536                         position4 = _mm_load_ps(&position); 
     2527                        position4 = _mm_load1_ps(&position); 
    25372528 
    25382529                        // are the entry points all in near leaf? 
     
    25402531                        { 
    25412532                                // are the exit points all in near leaf? 
    2542                                 if (_mm_movemask_ps(_mm_and_ps(_mm_cmpgt_ps(extp4[axis], position4), mask4))) 
     2533                                if (_mm_movemask_ps(_mm_and_ps(_mm_cmple_ps(extp4[axis], position4), mask4))) 
    25432534                                { 
    25442535                                        node = in->GetBack(); 
     
    25552546                        else 
    25562547                        { 
    2557                                 if (_mm_movemask_ps(_mm_and_ps(_mm_cmpgt_ps(position4, extp4[axis]), mask4))) 
     2548                                if (_mm_movemask_ps(_mm_and_ps(_mm_cmple_ps(position4, entp4[axis]), mask4)) && 
     2549                                        _mm_movemask_ps(_mm_and_ps(_mm_cmple_ps(position4, extp4[axis]), mask4))) 
    25582550                                { 
    25592551                                        node = in->GetFront(); 
     
    25732565                        const __m128 tDist4 = _mm_mul_ps(_mm_sub_ps(position4, origin[axis]), termination[axis]); 
    25742566                         
     2567                        mask4 = _mm_and_ps(_mm_cmplt_ps(tDist4, minT4), mask4); 
     2568            mask4_2 = _mm_and_ps(_mm_cmpgt_ps(tDist4, minT4), mask4); 
     2569 
    25752570                        // push far child for further processing 
    2576                         tStack.push(new PacketTraversalData(farChild, extpX4, extpY4, extpZ4, maxT4, mask4)); 
     2571                        tStack.Push(PacketTraversalData(farChild, extp4[0], extp4[1], extp4[2], maxT4, mask4_2)); 
    25772572 
    25782573                        // compute new exit point 
    2579                         extpX4 = _mm_add_ps(_mm_mul_ps(dirX4, tDist4), rp.mOriginX4); 
    2580                         extpY4 = _mm_add_ps(_mm_mul_ps(dirY4, tDist4), rp.mOriginY4); 
    2581                         extpZ4 = _mm_add_ps(_mm_mul_ps(dirZ4, tDist4), rp.mOriginZ4); 
     2574                        extp4[0] = _mm_add_ps(_mm_mul_ps(dirX4, tDist4), rp.mOriginX4); 
     2575                        extp4[1] = _mm_add_ps(_mm_mul_ps(dirY4, tDist4), rp.mOriginY4); 
     2576                        extp4[2] = _mm_add_ps(_mm_mul_ps(dirZ4, tDist4), rp.mOriginZ4); 
    25822577 
    25832578                        maxT4 = tDist4; 
    2584  
    2585                         mask4 = _mm_cmplt_ps( maxT4, minT4); 
    25862579                } 
    25872580                else 
     
    26022595                                for (int i = 0; i < 4; ++i) 
    26032596                                { 
     2597                                        // push view cells for all valid rays 
    26042598                                        if (mask[i])  
    26052599                                                rp.mViewCells[i].push_back(viewCell); 
     
    26102604 
    26112605                        // get the next node from the stack 
    2612                         if (tStack.empty()) 
     2606                        if (tStack.Empty()) 
    26132607                                break; 
    2614  
    2615                         entpX4 = extpX4; 
    2616                         entpY4 = extpY4; 
    2617                         entpZ4 = extpZ4; 
     2608                         
     2609                        // use memcopy? 
     2610                        entp4[0] = extp4[0]; 
     2611                        entp4[1] = extp4[1]; 
     2612                        entp4[2] = extp4[2]; 
    26182613 
    26192614                        minT4 = maxT4; 
     2615 
     2616                        const PacketTraversalData &s = tStack.Top(); 
     2617                        node = s.mNode; 
    26202618                         
    2621                         PacketTraversalData *s  = tStack.top(); 
    2622                         node = s->mNode; 
     2619                        extp4[0] = s.mExitPointX4; 
     2620                        extp4[1] = s.mExitPointY4; 
     2621                        extp4[2] = s.mExitPointZ4; 
     2622 
     2623                        maxT4 = s.mMaxT4; 
     2624                        mask4 = s.mMask4; 
    26232625                         
    2624                         extpX4 = s->mExitPointX4; 
    2625                         extpY4 = s->mExitPointY4; 
    2626                         extpZ4 = s->mExitPointZ4; 
    2627  
    2628                         maxT4 = s->mMaxT4; 
    2629  
    2630                         mask4 = s->mMask4; 
    2631  
    2632                         tStack.pop(); 
    2633                         delete s; 
    2634                 } 
    2635         } 
    2636  
     2626                        tStack.Pop(); 
     2627                } 
     2628        } 
     2629         
    26372630        return hits; 
    26382631 
    2639 /* 
    2640         const int offs[4] = {(rp.dx[0] >= 0) ? 1 : 0,  (rp.dy[0] >= 0)? 1 : 0,  (rp.dz[0] >= 0)? 1 : 0, 0}; 
    2641  
    2642         while (!node->IsLeaf()) 
    2643         { 
    2644                 PacketTraversalData *tData = tStack.top(); 
    2645                 tStack.pop(); 
    2646  
    2647                 node = tData->node; 
    2648                 VspInterior *interior = static_cast<VspInterior *>(node); 
    2649                 tn4 = tData->tn4; 
    2650                 tf4 = tData->tf4; 
    2651                 mask = tData->mask4; 
    2652  
    2653                 position = interior->GetPosition(); 
    2654                 const __m128 position4 = _mm_load_ps(&pos); 
    2655  
    2656                 const int axis = interior->GetAxis(); 
    2657                 const __m128 d4 = _mm_mul_ps(_mm_sub_ps(splitPos, origin[axis]), termination[axis]); 
    2658  
    2659                 VspNode* ln = offs[axis] ? interior->GetFront() : interior->GetBack(); 
    2660  
    2661                 if (!_mm_movemask_ps(_mm_and_ps(_mm_cmpgt_ps(d4, tn4), mask))) 
    2662                 {  
    2663                         node = ln;  
    2664                         continue;  
    2665                 } 
    2666  
    2667                 node = offs[axis]^1 ? interior->GetFront() : interior->GetBack();// + (offs[aidx]^1); 
    2668  
    2669                 if (_mm_movemask_ps( _mm_and_ps( _mm_cmplt_ps(d4, tf4), mask))) 
    2670                 { 
    2671                         const __m128 mask2 = _mm_cmpgt_ps(d4, tn4); 
    2672                         const __m128 mask3 = _mm_cmplt_ps(d4, tf4); 
    2673  
    2674  
    2675                         tData->tf4 = tf4 = _mm_or_ps(_mm_and_ps(mask3, d4), _mm_andnot_ps( mask3, tf4)); 
    2676                         tData->node = (VspNode *)ln; 
    2677                         tData->mask4 = mask; 
    2678                         tData->tn4 = _mm_or_ps( _mm_and_ps( mask2, d4 ), _mm_andnot_ps( mask2, tn4 ) ); 
    2679                         mask = _mm_cmplt_ps( tn4, tf4 ); 
    2680                 } 
    2681         }*/ 
    2682 } 
     2632#else 
     2633 
     2634        return 0; 
    26832635#endif 
     2636} 
    26842637 
    26852638 
  • GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.h

    r2347 r2353  
    11281128        int CompressObjects(VspLeaf *leaf); 
    11291129 
     1130        int TraverseRayPacket(RayPacket &rp, const bool useMailboxing); 
    11301131 
    11311132#ifdef USE_SSE 
    11321133        struct PacketTraversalData 
    11331134        { 
     1135                PacketTraversalData () {} 
     1136         
     1137                PacketTraversalData (VspNode *n,  
     1138                                         const __m128 &px, const __m128 &py, const __m128 &pz,  
     1139                                                         const __m128 &maxt, 
     1140                                                         const __m128 &mask): 
     1141                mNode(n),  
     1142                mExitPointX4(px), mExitPointY4(py), mExitPointZ4(pz), 
     1143                mMaxT4(maxt), 
     1144                mMask4(mask) 
     1145                {} 
     1146 
    11341147                VspNode *mNode; 
    11351148 
    1136                 union { float mExitPointX[4]; __m128 mExitPointX4; }; 
    1137                 union { float mExitPointY[4]; __m128 mExitPointY4; }; 
    1138                 union { float mExitPointZ[4]; __m128 mExitPointZ4; }; 
    1139  
    1140                 union { float mMaxT[4]; __m128 mMaxT4; }; 
    1141                 union { float mMask[4]; __m128 mMask4; }; 
    1142  
    1143                 PacketTraversalData () {} 
    1144                 PacketTraversalData (VspNode *n,  
    1145                         const __m128 &px, const __m128 &py, const __m128 &pz,  
    1146                         const __m128 &maxt, 
    1147                         const __m128 &mask): 
    1148                 mNode(n),  
    1149                         mExitPointX4(px), mExitPointY4(py), mExitPointZ4(pz), 
    1150                         mMaxT4(maxt), 
    1151                         mMask4(mask) 
    1152                 {} 
     1149                union { __m128 mExitPointX4; float mExitPointX[4]; }; 
     1150                union { __m128 mExitPointY4; float mExitPointY[4]; }; 
     1151                union { __m128 mExitPointZ4; float mExitPointZ[4]; }; 
     1152 
     1153                union { __m128 mMaxT4; float mMaxT[4]; }; 
     1154                union { __m128 mMask4; float mMask[4]; }; 
    11531155        }; 
    11541156 
    11551157 
    1156         int TraverseRayPacket(RayPacket &rp, const bool useMailboxing); 
     1158        struct __declspec(align(16)) PacketTraversalStack 
     1159        { 
     1160                // for performance 
     1161                friend class VspTree; 
     1162 
     1163        public: 
     1164                PacketTraversalStack(const int depth): 
     1165                mStackPtr(0),  
     1166                //mDepth(depth) 
     1167                mDepth(1000) 
     1168                { 
     1169                        //mData = new PacketTraversalData[mDepth]; 
     1170                } 
     1171 
     1172                ~PacketTraversalStack() 
     1173                { 
     1174                        //delete [] mData; 
     1175                } 
     1176                 
     1177                //PacketTraversalStack() {} 
     1178 
     1179                void Pop() {-- mStackPtr;} 
     1180                const PacketTraversalData &Top() const { return mData[mStackPtr - 1];} 
     1181                 
     1182                void Push(const PacketTraversalData &tData)  
     1183                { 
     1184                        // note: faster with direct assignments 
     1185                        mData[mStackPtr ++] = tData; 
     1186                        //if (mStackPtr == mDepth) std::cerr << "this can never happen!!" << std::endl; 
     1187                } 
     1188 
     1189                bool Empty() const {return mStackPtr <= 0;} 
     1190 
     1191        protected: 
     1192 
     1193                // static array to avoid using operator new 
     1194                //PacketTraversalData *mData; 
     1195                PacketTraversalData mData[1000]; 
     1196 
     1197                int mStackPtr; 
     1198                int mDepth; 
     1199 
     1200        }; 
    11571201 
    11581202#endif 
  • GTP/trunk/Lib/Vis/Preprocessing/src/VssRay.h

    r2342 r2353  
    2222#define VSS_STORE_VIEWCELLS 1 
    2323 
    24 #ifdef USE_SSE 
    25  
    26 struct RayPacket 
    27 { 
    28         union { float mOriginX[4]; __m128 mOriginX4; }; 
    29         union { float mOriginY[4]; __m128 mOriginY4; }; 
    30         union { float mOriginZ[4]; __m128 mOriginZ4; }; 
    31  
    32         union { float mTerminationX[4]; __m128 mTerminationX4; }; 
    33         union { float mTerminationY[4]; __m128 mTerminationY4; }; 
    34         union { float mTerminationZ[4]; __m128 mTerminationZ4; }; 
    35  
    36         ViewCellContainer mViewCells[4]; 
    37 }; 
    38  
    39  
    40 #endif 
    4124 
    4225 
     
    345328  void PrintStatistics(std::ostream &s); 
    346329  int SelectRays(const int number, VssRayContainer &selected, const bool copy=false) const; 
    347   int 
    348   GetContributingRays(VssRayContainer &selected, 
    349                                           const int minPass 
    350                                           ) const; 
    351    
    352 }; 
    353  
    354 /* 
    355 struct VssRayDistribution { 
    356   VssRayDistribution() { mContribution = -1.0f; } 
    357   SimpleRayContainer mRays; 
    358   vector<VssRayContainer> mVssRays; 
    359   float mContribution; 
    360   float mTime; 
    361 }; 
    362  
    363 struct VssRayDistributionMixture { 
    364   VssRayDistributionMixture() {} 
    365    
    366   vector<VssRayDistribution> distributions; 
    367 }; 
    368 */ 
    369  
    370 }; 
    371  
    372 #endif 
     330  int GetContributingRays(VssRayContainer &selected, const int minPass) const; 
     331   
     332}; 
     333 
     334 
     335struct RayPacket 
     336{ 
     337        RayPacket(const VssRayContainer &rays) 
     338        { 
     339                for (int i = 0; i < 4; ++ i) 
     340                        mOriginX[i] = rays[i]->mOrigin[0]; 
     341 
     342                for (int i = 0; i < 4; ++ i) 
     343                        mOriginY[i] = rays[i]->mOrigin[1]; 
     344 
     345                for (int i = 0; i < 4; ++ i) 
     346                        mOriginZ[i] = rays[i]->mOrigin[2]; 
     347        } 
     348#ifdef USE_SSE   
     349        union { float mOriginX[4]; __m128 mOriginX4; }; 
     350        union { float mOriginY[4]; __m128 mOriginY4; }; 
     351        union { float mOriginZ[4]; __m128 mOriginZ4; }; 
     352 
     353        union { float mTerminationX[4]; __m128 mTerminationX4; }; 
     354        union { float mTerminationY[4]; __m128 mTerminationY4; }; 
     355        union { float mTerminationZ[4]; __m128 mTerminationZ4; }; 
     356#else 
     357        float mOriginX[4]; 
     358        float mOriginY[4]; 
     359        float mOriginZ[4]; 
     360 
     361        float mTerminationX[4]; 
     362        float mTerminationY[4]; 
     363        float mTerminationZ[4]; 
     364#endif 
     365        ViewCellContainer mViewCells[4]; 
     366}; 
     367 
     368 
     369}; 
     370 
     371#endif 
  • GTP/trunk/Lib/Vis/Preprocessing/src/main.cpp

    r2176 r2353  
    184184        } 
    185185#endif 
    186          
     186 
    187187        Environment::GetSingleton()->Parse(argc, argv, USE_EXE_PATH); 
    188188        MeshKdTree::ParseEnvironment(); 
Note: See TracChangeset for help on using the changeset viewer.