Changeset 2069


Ignore:
Timestamp:
01/31/07 18:11:51 (17 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreBoundingBoxConverter.h

    r2066 r2069  
    1 #ifndef _PlatFormBoundingBoxConverter_H__ 
    2 #define _PlatFormBoundingBoxConverter_H__ 
     1#ifndef _PlatformBoundingBoxConverter_H__ 
     2#define _PlatformBoundingBoxConverter_H__ 
    33  
    44#include "OgreAxisAlignedBox.h" 
     
    173173 
    174174#define ENLARGE_OBJECT_BBOX 0 
    175 #define ENLRAGE_NODE_BBOX 0  
     175#define ENLRAGE_NODE_BBOX 0 
     176 
    176177template<typename T> 
    177178void PlatFormBoundingBoxConverter<T>::FindIntersectingObjects(const AxisAlignedBox &box, 
     
    195196        mSceneMgr->findNodesIn(box, sceneNodeList, NULL); 
    196197 
     198        list<SceneNode *>::const_iterator sit, sit_end = sceneNodeList.end(); 
     199 
    197200        GtpVisibilityPreprocessor::AxisAlignedBox3 nodeBox =  
    198201                OgreTypeConverter::ConvertFromOgre(box); 
     
    215218                         
    216219                        // get the bounding box of the objects 
    217 #if ENLARGE_OBJECT_BBOX) 
     220#if ENLARGE_OBJECT_BBOX 
    218221                        // compare with enlarged entitiy box 
    219222                        const AxisAlignedBox bbox = EnlargeBox(mo->getWorldBoundingBox()); 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreMeshInstance.h

    r2066 r2069  
    1 #ifndef _OgreMeshIntance_H__ 
    2 #define _OgreMeshIntance_H__ 
     1#ifndef _OGREMESHINTANCE_H__ 
     2#define _OGREMESHINTANCE_H__ 
    33 
    44#include <OgreEntity.h> 
     
    1010        Wrapper for Ogre object intances for use with the preprocessed view cells. 
    1111*/ 
    12 #if 0 
     12#if 1 
    1313class __declspec(dllexport) OgreMeshInstance: public GtpVisibilityPreprocessor::Intersectable 
    1414{ 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreBvHierarchy.cpp

    r2066 r2069  
    15361536                        it != leaf->mBvhRenderables.end(); it ++) 
    15371537                { 
    1538                         SceneNode *sn = static_cast<SceneNode *>(*it); 
     1538                        SceneNode *sn = static_cast<BvHierarchySceneNode *>(*it); 
    15391539 
    15401540                        if (sn != exclude) 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreKdTree.cpp

    r2066 r2069  
    15091509} 
    15101510 
    1511 void KdTree::recFindNodesIn(const AxisAlignedBox &box, std::list<SceneNode *> &list, SceneNode *exclude, Node * node, bool full) 
     1511void KdTree::recFindNodesIn(const AxisAlignedBox &box,  
     1512                                                        std::list<SceneNode *> &list,  
     1513                                                        SceneNode *exclude,  
     1514                                                        Node * node,  
     1515                                                        bool full) 
    15121516{ 
    15131517        // check intersection 
     
    15281532                        it != leaf->mKdRenderables.end(); it ++) 
    15291533                { 
    1530                         SceneNode *sn = static_cast<SceneNode *>(*it); 
     1534                        SceneNode *sn = static_cast<KdTreeSceneNode *>(*it); 
    15311535 
    15321536                        if (sn != exclude) 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/Plugin_VisibilitySceneManager.vcproj

    r1926 r2069  
    7474                        OutputDirectory="..\lib\$(ConfigurationName)" 
    7575                        IntermediateDirectory="..\obj\$(ConfigurationName)" 
     76                        ConfigurationType="2" 
     77                        CharacterSet="2" 
     78                        WholeProgramOptimization="TRUE"> 
     79                        <Tool 
     80                                Name="VCCLCompilerTool" 
     81                                Optimization="3" 
     82                                GlobalOptimizations="TRUE" 
     83                                InlineFunctionExpansion="2" 
     84                                EnableIntrinsicFunctions="TRUE" 
     85                                ImproveFloatingPointConsistency="FALSE" 
     86                                FavorSizeOrSpeed="1" 
     87                                OmitFramePointers="TRUE" 
     88                                EnableFiberSafeOptimizations="TRUE" 
     89                                OptimizeForProcessor="0" 
     90                                OptimizeForWindowsApplication="TRUE" 
     91                                AdditionalIncludeDirectories="&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\include&quot;;&quot;$(OGRE_PATH)\Samples\Common\include&quot;;&quot;$(OGRE_PATH)\Dependencies\include\CEGUI&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\include&quot;;&quot;$(OGRE_PATH)\OgreMain\include&quot;;&quot;$(OGRE_PATH)\Dependencies\include&quot;;..\include;..\..\..\OnlineCullingCHC\include;..\..\..\Preprocessing\src;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\include;..\..\..\Preprocessing\src\Timer" 
     92                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;PLUGIN_KD_TERRAIN_EXPORTS;GTP_VISIBILITY_MODIFIED_OGRE" 
     93                                StringPooling="TRUE" 
     94                                RuntimeLibrary="2" 
     95                                BufferSecurityCheck="FALSE" 
     96                                EnableFunctionLevelLinking="TRUE" 
     97                                RuntimeTypeInfo="FALSE" 
     98                                UsePrecompiledHeader="0" 
     99                                WarningLevel="3" 
     100                                Detect64BitPortabilityProblems="TRUE" 
     101                                DebugInformationFormat="3"/> 
     102                        <Tool 
     103                                Name="VCCustomBuildTool"/> 
     104                        <Tool 
     105                                Name="VCLinkerTool" 
     106                                IgnoreImportLibrary="TRUE" 
     107                                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 IVReader.lib" 
     108                                OutputFile="$(OutDir)/Plugin_VisibilitySceneManager.dll" 
     109                                Version="0.99" 
     110                                LinkIncremental="1" 
     111                                SuppressStartupBanner="TRUE" 
     112                                AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\OgreMain\lib\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib&quot;;&quot;$(OGRE_PATH)\Dependencies\lib\$(ConfigurationName)&quot;;&quot;..\..\..\Preprocessing\lib\$(ConfigurationName)&quot;;..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;..\..\..\Preprocessing\src\GL;..\..\..\..\..\..\..\NonGTP\Zlib\lib;&quot;..\..\lib\$(ConfigurationName)&quot;;&quot;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\$(ConfigurationName)&quot;" 
     113                                ModuleDefinitionFile="..\misc\OgreVisibilitySceneManager.def" 
     114                                GenerateDebugInformation="FALSE" 
     115                                SubSystem="2" 
     116                                OptimizeReferences="2" 
     117                                EnableCOMDATFolding="2" 
     118                                ImportLibrary="$(OutDir)/Plugin_VisibilitySceneManager.lib" 
     119                                TargetMachine="1"/> 
     120                        <Tool 
     121                                Name="VCMIDLTool"/> 
     122                        <Tool 
     123                                Name="VCPostBuildEventTool" 
     124                                CommandLine="copy $(OutDir)\$(TargetFileName) $(OGRE_PATH)\Samples\Common\bin\$(ConfigurationName)"/> 
     125                        <Tool 
     126                                Name="VCPreBuildEventTool"/> 
     127                        <Tool 
     128                                Name="VCPreLinkEventTool"/> 
     129                        <Tool 
     130                                Name="VCResourceCompilerTool"/> 
     131                        <Tool 
     132                                Name="VCWebServiceProxyGeneratorTool"/> 
     133                        <Tool 
     134                                Name="VCXMLDataGeneratorTool"/> 
     135                        <Tool 
     136                                Name="VCWebDeploymentTool"/> 
     137                        <Tool 
     138                                Name="VCManagedWrapperGeneratorTool"/> 
     139                        <Tool 
     140                                Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
     141                </Configuration> 
     142                <Configuration 
     143                        Name="mlrt|Win32" 
     144                        OutputDirectory="$(ConfigurationName)" 
     145                        IntermediateDirectory="$(ConfigurationName)" 
     146                        ConfigurationType="2" 
     147                        CharacterSet="2" 
     148                        WholeProgramOptimization="TRUE"> 
     149                        <Tool 
     150                                Name="VCCLCompilerTool" 
     151                                Optimization="3" 
     152                                GlobalOptimizations="TRUE" 
     153                                InlineFunctionExpansion="2" 
     154                                EnableIntrinsicFunctions="TRUE" 
     155                                ImproveFloatingPointConsistency="TRUE" 
     156                                FavorSizeOrSpeed="1" 
     157                                OmitFramePointers="TRUE" 
     158                                EnableFiberSafeOptimizations="TRUE" 
     159                                OptimizeForProcessor="2" 
     160                                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" 
     161                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;GTP_VISIBILITY_MODIFIED_OGRE" 
     162                                StringPooling="TRUE" 
     163                                RuntimeLibrary="2" 
     164                                BufferSecurityCheck="FALSE" 
     165                                EnableFunctionLevelLinking="TRUE" 
     166                                RuntimeTypeInfo="TRUE" 
     167                                UsePrecompiledHeader="0" 
     168                                WarningLevel="3" 
     169                                Detect64BitPortabilityProblems="TRUE" 
     170                                DebugInformationFormat="3"/> 
     171                        <Tool 
     172                                Name="VCCustomBuildTool"/> 
     173                        <Tool 
     174                                Name="VCLinkerTool" 
     175                                IgnoreImportLibrary="TRUE" 
     176                                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" 
     177                                OutputFile="$(OutDir)/Plugin_VisibilitySceneManager.dll" 
     178                                Version="0.99" 
     179                                LinkIncremental="1" 
     180                                SuppressStartupBanner="TRUE" 
     181                                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" 
     182                                ModuleDefinitionFile="..\misc\OgreVisibilitySceneManager.def" 
     183                                GenerateDebugInformation="TRUE" 
     184                                SubSystem="2" 
     185                                OptimizeReferences="2" 
     186                                EnableCOMDATFolding="2" 
     187                                ImportLibrary="$(OutDir)/Plugin_VisibilitySceneManager.lib" 
     188                                TargetMachine="1"/> 
     189                        <Tool 
     190                                Name="VCMIDLTool"/> 
     191                        <Tool 
     192                                Name="VCPostBuildEventTool" 
     193                                CommandLine="copy $(OutDir)\$(TargetFileName) $(OGRE_PATH)\Samples\Common\bin\$(ConfigurationName)"/> 
     194                        <Tool 
     195                                Name="VCPreBuildEventTool"/> 
     196                        <Tool 
     197                                Name="VCPreLinkEventTool"/> 
     198                        <Tool 
     199                                Name="VCResourceCompilerTool"/> 
     200                        <Tool 
     201                                Name="VCWebServiceProxyGeneratorTool"/> 
     202                        <Tool 
     203                                Name="VCXMLDataGeneratorTool"/> 
     204                        <Tool 
     205                                Name="VCWebDeploymentTool"/> 
     206                        <Tool 
     207                                Name="VCManagedWrapperGeneratorTool"/> 
     208                        <Tool 
     209                                Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
     210                </Configuration> 
     211                <Configuration 
     212                        Name="Release_Internal|Win32" 
     213                        OutputDirectory="$(ConfigurationName)" 
     214                        IntermediateDirectory="$(ConfigurationName)" 
     215                        ConfigurationType="2" 
     216                        CharacterSet="2" 
     217                        WholeProgramOptimization="TRUE"> 
     218                        <Tool 
     219                                Name="VCCLCompilerTool" 
     220                                Optimization="3" 
     221                                GlobalOptimizations="TRUE" 
     222                                InlineFunctionExpansion="2" 
     223                                EnableIntrinsicFunctions="TRUE" 
     224                                ImproveFloatingPointConsistency="TRUE" 
     225                                FavorSizeOrSpeed="1" 
     226                                OmitFramePointers="TRUE" 
     227                                EnableFiberSafeOptimizations="TRUE" 
     228                                OptimizeForProcessor="2" 
     229                                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" 
     230                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;GTP_VISIBILITY_MODIFIED_OGRE" 
     231                                StringPooling="TRUE" 
     232                                RuntimeLibrary="2" 
     233                                BufferSecurityCheck="FALSE" 
     234                                EnableFunctionLevelLinking="TRUE" 
     235                                RuntimeTypeInfo="TRUE" 
     236                                UsePrecompiledHeader="0" 
     237                                WarningLevel="3" 
     238                                Detect64BitPortabilityProblems="TRUE" 
     239                                DebugInformationFormat="3"/> 
     240                        <Tool 
     241                                Name="VCCustomBuildTool"/> 
     242                        <Tool 
     243                                Name="VCLinkerTool" 
     244                                IgnoreImportLibrary="TRUE" 
     245                                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" 
     246                                OutputFile="$(OutDir)/Plugin_VisibilitySceneManager.dll" 
     247                                Version="0.99" 
     248                                LinkIncremental="1" 
     249                                SuppressStartupBanner="TRUE" 
     250                                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" 
     251                                ModuleDefinitionFile="..\misc\OgreVisibilitySceneManager.def" 
     252                                GenerateDebugInformation="TRUE" 
     253                                SubSystem="2" 
     254                                OptimizeReferences="2" 
     255                                EnableCOMDATFolding="2" 
     256                                ImportLibrary="$(OutDir)/Plugin_VisibilitySceneManager.lib" 
     257                                TargetMachine="1"/> 
     258                        <Tool 
     259                                Name="VCMIDLTool"/> 
     260                        <Tool 
     261                                Name="VCPostBuildEventTool" 
     262                                CommandLine="copy $(OutDir)\$(TargetFileName) $(OGRE_PATH)\Samples\Common\bin\$(ConfigurationName)"/> 
     263                        <Tool 
     264                                Name="VCPreBuildEventTool"/> 
     265                        <Tool 
     266                                Name="VCPreLinkEventTool"/> 
     267                        <Tool 
     268                                Name="VCResourceCompilerTool"/> 
     269                        <Tool 
     270                                Name="VCWebServiceProxyGeneratorTool"/> 
     271                        <Tool 
     272                                Name="VCXMLDataGeneratorTool"/> 
     273                        <Tool 
     274                                Name="VCWebDeploymentTool"/> 
     275                        <Tool 
     276                                Name="VCManagedWrapperGeneratorTool"/> 
     277                        <Tool 
     278                                Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
     279                </Configuration> 
     280                <Configuration 
     281                        Name="Release Internal|Win32" 
     282                        OutputDirectory="$(ConfigurationName)" 
     283                        IntermediateDirectory="$(ConfigurationName)" 
     284                        ConfigurationType="2" 
     285                        CharacterSet="2" 
     286                        WholeProgramOptimization="TRUE"> 
     287                        <Tool 
     288                                Name="VCCLCompilerTool" 
     289                                Optimization="3" 
     290                                GlobalOptimizations="TRUE" 
     291                                InlineFunctionExpansion="2" 
     292                                EnableIntrinsicFunctions="TRUE" 
     293                                ImproveFloatingPointConsistency="TRUE" 
     294                                FavorSizeOrSpeed="1" 
     295                                OmitFramePointers="TRUE" 
     296                                EnableFiberSafeOptimizations="TRUE" 
     297                                OptimizeForProcessor="2" 
     298                                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" 
     299                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;GTP_VISIBILITY_MODIFIED_OGRE" 
     300                                StringPooling="TRUE" 
     301                                RuntimeLibrary="2" 
     302                                BufferSecurityCheck="FALSE" 
     303                                EnableFunctionLevelLinking="TRUE" 
     304                                RuntimeTypeInfo="TRUE" 
     305                                UsePrecompiledHeader="0" 
     306                                WarningLevel="3" 
     307                                Detect64BitPortabilityProblems="TRUE" 
     308                                DebugInformationFormat="3"/> 
     309                        <Tool 
     310                                Name="VCCustomBuildTool"/> 
     311                        <Tool 
     312                                Name="VCLinkerTool" 
     313                                IgnoreImportLibrary="TRUE" 
     314                                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" 
     315                                OutputFile="$(OutDir)/Plugin_VisibilitySceneManager.dll" 
     316                                Version="0.99" 
     317                                LinkIncremental="1" 
     318                                SuppressStartupBanner="TRUE" 
     319                                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" 
     320                                ModuleDefinitionFile="..\misc\OgreVisibilitySceneManager.def" 
     321                                GenerateDebugInformation="TRUE" 
     322                                SubSystem="2" 
     323                                OptimizeReferences="2" 
     324                                EnableCOMDATFolding="2" 
     325                                ImportLibrary="$(OutDir)/Plugin_VisibilitySceneManager.lib" 
     326                                TargetMachine="1"/> 
     327                        <Tool 
     328                                Name="VCMIDLTool"/> 
     329                        <Tool 
     330                                Name="VCPostBuildEventTool" 
     331                                CommandLine="copy $(OutDir)\$(TargetFileName) $(OGRE_PATH)\Samples\Common\bin\$(ConfigurationName)"/> 
     332                        <Tool 
     333                                Name="VCPreBuildEventTool"/> 
     334                        <Tool 
     335                                Name="VCPreLinkEventTool"/> 
     336                        <Tool 
     337                                Name="VCResourceCompilerTool"/> 
     338                        <Tool 
     339                                Name="VCWebServiceProxyGeneratorTool"/> 
     340                        <Tool 
     341                                Name="VCXMLDataGeneratorTool"/> 
     342                        <Tool 
     343                                Name="VCWebDeploymentTool"/> 
     344                        <Tool 
     345                                Name="VCManagedWrapperGeneratorTool"/> 
     346                        <Tool 
     347                                Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
     348                </Configuration> 
     349                <Configuration 
     350                        Name="Release_qt|Win32" 
     351                        OutputDirectory="$(ConfigurationName)" 
     352                        IntermediateDirectory="$(ConfigurationName)" 
    76353                        ConfigurationType="2" 
    77354                        CharacterSet="2" 
     
    140417                                Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
    141418                </Configuration> 
    142                 <Configuration 
    143                         Name="mlrt|Win32" 
    144                         OutputDirectory="$(ConfigurationName)" 
    145                         IntermediateDirectory="$(ConfigurationName)" 
    146                         ConfigurationType="2" 
    147                         CharacterSet="2" 
    148                         WholeProgramOptimization="TRUE"> 
    149                         <Tool 
    150                                 Name="VCCLCompilerTool" 
    151                                 Optimization="3" 
    152                                 GlobalOptimizations="TRUE" 
    153                                 InlineFunctionExpansion="2" 
    154                                 EnableIntrinsicFunctions="TRUE" 
    155                                 ImproveFloatingPointConsistency="TRUE" 
    156                                 FavorSizeOrSpeed="1" 
    157                                 OmitFramePointers="TRUE" 
    158                                 EnableFiberSafeOptimizations="TRUE" 
    159                                 OptimizeForProcessor="2" 
    160                                 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" 
    161                                 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;GTP_VISIBILITY_MODIFIED_OGRE" 
    162                                 StringPooling="TRUE" 
    163                                 RuntimeLibrary="2" 
    164                                 BufferSecurityCheck="FALSE" 
    165                                 EnableFunctionLevelLinking="TRUE" 
    166                                 RuntimeTypeInfo="TRUE" 
    167                                 UsePrecompiledHeader="0" 
    168                                 WarningLevel="3" 
    169                                 Detect64BitPortabilityProblems="TRUE" 
    170                                 DebugInformationFormat="3"/> 
    171                         <Tool 
    172                                 Name="VCCustomBuildTool"/> 
    173                         <Tool 
    174                                 Name="VCLinkerTool" 
    175                                 IgnoreImportLibrary="TRUE" 
    176                                 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" 
    177                                 OutputFile="$(OutDir)/Plugin_VisibilitySceneManager.dll" 
    178                                 Version="0.99" 
    179                                 LinkIncremental="1" 
    180                                 SuppressStartupBanner="TRUE" 
    181                                 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" 
    182                                 ModuleDefinitionFile="..\misc\OgreVisibilitySceneManager.def" 
    183                                 GenerateDebugInformation="TRUE" 
    184                                 SubSystem="2" 
    185                                 OptimizeReferences="2" 
    186                                 EnableCOMDATFolding="2" 
    187                                 ImportLibrary="$(OutDir)/Plugin_VisibilitySceneManager.lib" 
    188                                 TargetMachine="1"/> 
    189                         <Tool 
    190                                 Name="VCMIDLTool"/> 
    191                         <Tool 
    192                                 Name="VCPostBuildEventTool" 
    193                                 CommandLine="copy $(OutDir)\$(TargetFileName) $(OGRE_PATH)\Samples\Common\bin\$(ConfigurationName)"/> 
    194                         <Tool 
    195                                 Name="VCPreBuildEventTool"/> 
    196                         <Tool 
    197                                 Name="VCPreLinkEventTool"/> 
    198                         <Tool 
    199                                 Name="VCResourceCompilerTool"/> 
    200                         <Tool 
    201                                 Name="VCWebServiceProxyGeneratorTool"/> 
    202                         <Tool 
    203                                 Name="VCXMLDataGeneratorTool"/> 
    204                         <Tool 
    205                                 Name="VCWebDeploymentTool"/> 
    206                         <Tool 
    207                                 Name="VCManagedWrapperGeneratorTool"/> 
    208                         <Tool 
    209                                 Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
    210                 </Configuration> 
    211                 <Configuration 
    212                         Name="Release_Internal|Win32" 
    213                         OutputDirectory="$(ConfigurationName)" 
    214                         IntermediateDirectory="$(ConfigurationName)" 
    215                         ConfigurationType="2" 
    216                         CharacterSet="2" 
    217                         WholeProgramOptimization="TRUE"> 
    218                         <Tool 
    219                                 Name="VCCLCompilerTool" 
    220                                 Optimization="3" 
    221                                 GlobalOptimizations="TRUE" 
    222                                 InlineFunctionExpansion="2" 
    223                                 EnableIntrinsicFunctions="TRUE" 
    224                                 ImproveFloatingPointConsistency="TRUE" 
    225                                 FavorSizeOrSpeed="1" 
    226                                 OmitFramePointers="TRUE" 
    227                                 EnableFiberSafeOptimizations="TRUE" 
    228                                 OptimizeForProcessor="2" 
    229                                 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" 
    230                                 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;GTP_VISIBILITY_MODIFIED_OGRE" 
    231                                 StringPooling="TRUE" 
    232                                 RuntimeLibrary="2" 
    233                                 BufferSecurityCheck="FALSE" 
    234                                 EnableFunctionLevelLinking="TRUE" 
    235                                 RuntimeTypeInfo="TRUE" 
    236                                 UsePrecompiledHeader="0" 
    237                                 WarningLevel="3" 
    238                                 Detect64BitPortabilityProblems="TRUE" 
    239                                 DebugInformationFormat="3"/> 
    240                         <Tool 
    241                                 Name="VCCustomBuildTool"/> 
    242                         <Tool 
    243                                 Name="VCLinkerTool" 
    244                                 IgnoreImportLibrary="TRUE" 
    245                                 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" 
    246                                 OutputFile="$(OutDir)/Plugin_VisibilitySceneManager.dll" 
    247                                 Version="0.99" 
    248                                 LinkIncremental="1" 
    249                                 SuppressStartupBanner="TRUE" 
    250                                 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" 
    251                                 ModuleDefinitionFile="..\misc\OgreVisibilitySceneManager.def" 
    252                                 GenerateDebugInformation="TRUE" 
    253                                 SubSystem="2" 
    254                                 OptimizeReferences="2" 
    255                                 EnableCOMDATFolding="2" 
    256                                 ImportLibrary="$(OutDir)/Plugin_VisibilitySceneManager.lib" 
    257                                 TargetMachine="1"/> 
    258                         <Tool 
    259                                 Name="VCMIDLTool"/> 
    260                         <Tool 
    261                                 Name="VCPostBuildEventTool" 
    262                                 CommandLine="copy $(OutDir)\$(TargetFileName) $(OGRE_PATH)\Samples\Common\bin\$(ConfigurationName)"/> 
    263                         <Tool 
    264                                 Name="VCPreBuildEventTool"/> 
    265                         <Tool 
    266                                 Name="VCPreLinkEventTool"/> 
    267                         <Tool 
    268                                 Name="VCResourceCompilerTool"/> 
    269                         <Tool 
    270                                 Name="VCWebServiceProxyGeneratorTool"/> 
    271                         <Tool 
    272                                 Name="VCXMLDataGeneratorTool"/> 
    273                         <Tool 
    274                                 Name="VCWebDeploymentTool"/> 
    275                         <Tool 
    276                                 Name="VCManagedWrapperGeneratorTool"/> 
    277                         <Tool 
    278                                 Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
    279                 </Configuration> 
    280                 <Configuration 
    281                         Name="Release Internal|Win32" 
    282                         OutputDirectory="$(ConfigurationName)" 
    283                         IntermediateDirectory="$(ConfigurationName)" 
    284                         ConfigurationType="2" 
    285                         CharacterSet="2" 
    286                         WholeProgramOptimization="TRUE"> 
    287                         <Tool 
    288                                 Name="VCCLCompilerTool" 
    289                                 Optimization="3" 
    290                                 GlobalOptimizations="TRUE" 
    291                                 InlineFunctionExpansion="2" 
    292                                 EnableIntrinsicFunctions="TRUE" 
    293                                 ImproveFloatingPointConsistency="TRUE" 
    294                                 FavorSizeOrSpeed="1" 
    295                                 OmitFramePointers="TRUE" 
    296                                 EnableFiberSafeOptimizations="TRUE" 
    297                                 OptimizeForProcessor="2" 
    298                                 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" 
    299                                 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;GTP_VISIBILITY_MODIFIED_OGRE" 
    300                                 StringPooling="TRUE" 
    301                                 RuntimeLibrary="2" 
    302                                 BufferSecurityCheck="FALSE" 
    303                                 EnableFunctionLevelLinking="TRUE" 
    304                                 RuntimeTypeInfo="TRUE" 
    305                                 UsePrecompiledHeader="0" 
    306                                 WarningLevel="3" 
    307                                 Detect64BitPortabilityProblems="TRUE" 
    308                                 DebugInformationFormat="3"/> 
    309                         <Tool 
    310                                 Name="VCCustomBuildTool"/> 
    311                         <Tool 
    312                                 Name="VCLinkerTool" 
    313                                 IgnoreImportLibrary="TRUE" 
    314                                 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" 
    315                                 OutputFile="$(OutDir)/Plugin_VisibilitySceneManager.dll" 
    316                                 Version="0.99" 
    317                                 LinkIncremental="1" 
    318                                 SuppressStartupBanner="TRUE" 
    319                                 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" 
    320                                 ModuleDefinitionFile="..\misc\OgreVisibilitySceneManager.def" 
    321                                 GenerateDebugInformation="TRUE" 
    322                                 SubSystem="2" 
    323                                 OptimizeReferences="2" 
    324                                 EnableCOMDATFolding="2" 
    325                                 ImportLibrary="$(OutDir)/Plugin_VisibilitySceneManager.lib" 
    326                                 TargetMachine="1"/> 
    327                         <Tool 
    328                                 Name="VCMIDLTool"/> 
    329                         <Tool 
    330                                 Name="VCPostBuildEventTool" 
    331                                 CommandLine="copy $(OutDir)\$(TargetFileName) $(OGRE_PATH)\Samples\Common\bin\$(ConfigurationName)"/> 
    332                         <Tool 
    333                                 Name="VCPreBuildEventTool"/> 
    334                         <Tool 
    335                                 Name="VCPreLinkEventTool"/> 
    336                         <Tool 
    337                                 Name="VCResourceCompilerTool"/> 
    338                         <Tool 
    339                                 Name="VCWebServiceProxyGeneratorTool"/> 
    340                         <Tool 
    341                                 Name="VCXMLDataGeneratorTool"/> 
    342                         <Tool 
    343                                 Name="VCWebDeploymentTool"/> 
    344                         <Tool 
    345                                 Name="VCManagedWrapperGeneratorTool"/> 
    346                         <Tool 
    347                                 Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
    348                 </Configuration> 
    349                 <Configuration 
    350                         Name="Release_qt|Win32" 
    351                         OutputDirectory="$(ConfigurationName)" 
    352                         IntermediateDirectory="$(ConfigurationName)" 
    353                         ConfigurationType="2" 
    354                         CharacterSet="2" 
    355                         WholeProgramOptimization="TRUE"> 
    356                         <Tool 
    357                                 Name="VCCLCompilerTool" 
    358                                 Optimization="3" 
    359                                 GlobalOptimizations="TRUE" 
    360                                 InlineFunctionExpansion="2" 
    361                                 EnableIntrinsicFunctions="TRUE" 
    362                                 ImproveFloatingPointConsistency="TRUE" 
    363                                 FavorSizeOrSpeed="1" 
    364                                 OmitFramePointers="TRUE" 
    365                                 EnableFiberSafeOptimizations="TRUE" 
    366                                 OptimizeForProcessor="0" 
    367                                 OptimizeForWindowsApplication="TRUE" 
    368                                 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" 
    369                                 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;PLUGIN_KD_TERRAIN_EXPORTS;GTP_VISIBILITY_MODIFIED_OGRE" 
    370                                 StringPooling="TRUE" 
    371                                 RuntimeLibrary="2" 
    372                                 BufferSecurityCheck="FALSE" 
    373                                 EnableFunctionLevelLinking="TRUE" 
    374                                 RuntimeTypeInfo="TRUE" 
    375                                 UsePrecompiledHeader="0" 
    376                                 WarningLevel="3" 
    377                                 Detect64BitPortabilityProblems="TRUE" 
    378                                 DebugInformationFormat="3"/> 
    379                         <Tool 
    380                                 Name="VCCustomBuildTool"/> 
    381                         <Tool 
    382                                 Name="VCLinkerTool" 
    383                                 IgnoreImportLibrary="TRUE" 
    384                                 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 IVReader.lib" 
    385                                 OutputFile="$(OutDir)/Plugin_VisibilitySceneManager.dll" 
    386                                 Version="0.99" 
    387                                 LinkIncremental="1" 
    388                                 SuppressStartupBanner="TRUE" 
    389                                 AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\OgreMain\lib\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib&quot;;&quot;$(OGRE_PATH)\Dependencies\lib\$(ConfigurationName)&quot;;&quot;..\..\..\Preprocessing\lib\$(ConfigurationName)&quot;;..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;..\..\..\Preprocessing\src\GL;..\..\..\..\..\..\..\NonGTP\Zlib\lib;&quot;..\..\lib\$(ConfigurationName)&quot;;&quot;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\$(ConfigurationName)&quot;" 
    390                                 ModuleDefinitionFile="..\misc\OgreVisibilitySceneManager.def" 
    391                                 GenerateDebugInformation="FALSE" 
    392                                 SubSystem="2" 
    393                                 OptimizeReferences="2" 
    394                                 EnableCOMDATFolding="2" 
    395                                 ImportLibrary="$(OutDir)/Plugin_VisibilitySceneManager.lib" 
    396                                 TargetMachine="1"/> 
    397                         <Tool 
    398                                 Name="VCMIDLTool"/> 
    399                         <Tool 
    400                                 Name="VCPostBuildEventTool" 
    401                                 CommandLine="copy $(OutDir)\$(TargetFileName) $(OGRE_PATH)\Samples\Common\bin\$(ConfigurationName)"/> 
    402                         <Tool 
    403                                 Name="VCPreBuildEventTool"/> 
    404                         <Tool 
    405                                 Name="VCPreLinkEventTool"/> 
    406                         <Tool 
    407                                 Name="VCResourceCompilerTool"/> 
    408                         <Tool 
    409                                 Name="VCWebServiceProxyGeneratorTool"/> 
    410                         <Tool 
    411                                 Name="VCXMLDataGeneratorTool"/> 
    412                         <Tool 
    413                                 Name="VCWebDeploymentTool"/> 
    414                         <Tool 
    415                                 Name="VCManagedWrapperGeneratorTool"/> 
    416                         <Tool 
    417                                 Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
    418                 </Configuration> 
    419419        </Configurations> 
    420420        <References> 
  • GTP/trunk/Lib/Vis/Preprocessing/scripts/generate_viewcells.env

    r2066 r2069  
    1212 
    1313Preprocessor { 
    14 samplesPerPass 3000000 
     14samplesPerPass 6000000 
    1515        useGlRenderer false 
    1616        type vss 
     
    1919        loadMeshes false 
    2020        # internal raycaster 
    21         rayCastMethod 0 
     21        #rayCastMethod 0 
    2222        # intel raycaster 
    23         #rayCastMethod 1 
     23        rayCastMethod 1 
    2424        exportVisibility false 
    2525        loadKdTree false 
     
    159159                samples 20000 
    160160                exportRays true 
    161                 exportGeometry true 
     161                exportGeometry false 
    162162                exportMergedViewCells false 
    163163                useClipPlane true 
     
    167167        } 
    168168 
    169         #showVisualization true 
    170         showVisualization false 
     169        showVisualization true 
     170        #showVisualization false 
    171171        evaluateViewCells false 
    172172         
     
    190190VspBspTree { 
    191191        Construction { 
    192                 samples 2000000 
     192                samples 900000 
    193193                epsilon 0.0000001 
    194194                randomize false 
     
    238238                minGlobalCostRatio      0.0001 
    239239 
    240                 maxViewCells            5000 
     240                maxViewCells            6000 
    241241         
    242242                # used for pvs criterium 
  • GTP/trunk/Lib/Vis/Preprocessing/src/Environment.cpp

    r2060 r2069  
    12371237                                 "render_sampler_use_occlusion_queries=", 
    12381238                                 "true"); 
    1239  
    1240 //    RegisterOption("VssPreprocessor.initialSamples", 
    1241 //                               optInt, 
    1242 //                               "vss_initial_samples=", 
    1243 //                               "100000"); 
    12441239   
    12451240  RegisterOption("VssPreprocessor.testBeamSampling",  
     
    12471242                                "vss_beam_sampling=",  
    12481243                                "false"); 
    1249  
    1250 //   RegisterOption("VssPreprocessor.vssSamples", 
    1251 //                               optInt, 
    1252 //                               "vss_samples=", 
    1253 //                               "1000000"); 
    1254          
    1255 //   RegisterOption("VssPreprocessor.vssSamplesPerPass", 
    1256 //                               optInt, 
    1257 //                               "vss_samples_per_pass=", 
    1258 //                               "1000"); 
    1259    
    1260 //   RegisterOption("VssPreprocessor.samplesPerPass", 
    1261 //                               optInt, 
    1262 //                               "vss_samples_per_pass=", 
    1263 //                               "100000"); 
    12641244 
    12651245  RegisterOption("VssPreprocessor.useImportanceSampling", 
  • GTP/trunk/Lib/Vis/Preprocessing/src/IntersectableWrapper.h

    r2066 r2069  
    1 #ifndef __KDINTERSECTABLE_H 
    2 #define __KDINTERSECTABLE_H 
     1#ifndef __INTERSECTABLEWRAPPER_H 
     2#define __INTERSECTABLEWRAPPER_H 
    33 
    44#include "AxisAlignedBox3.h" 
  • GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp

    r2066 r2069  
    12211221{ 
    12221222 
    1223   const long t1 = GetTime(); 
    1224   if (rays.size() > 10000) { 
    1225         mRayCaster->SortRays(rays); 
    1226         cout<<"Rays sorted in "<<TimeDiff(t1, GetTime())<<" ms."<<endl; 
    1227          
    1228         if (0) { 
    1229           VssRayContainer tmpRays; 
    1230           int m = 50000; 
    1231           for (int i=m; i < m+20; i++) { 
    1232                 tmpRays.push_back(new VssRay(rays[i].mOrigin, 
    1233                                                                          rays[i].mOrigin + 100.0f*rays[i].mDirection, 
    1234                                                                          NULL, 
    1235                                                                          NULL 
    1236                                                                          ) 
    1237                                                   ); 
    1238                  
    1239           } 
    1240           ExportRays("sorted_rays.x3d", tmpRays, 200); 
    1241         } 
    1242   } 
    1243    
    1244   SimpleRayContainer::const_iterator rit, rit_end = rays.end(); 
     1223        const long t1 = GetTime(); 
     1224         
     1225        if ((int)rays.size() > 10000) { 
     1226         
     1227                //mRayCaster->SortRays(rays); 
     1228                cout<<"Rays sorted in "<<TimeDiff(t1, GetTime())<<" ms."<<endl; 
     1229 
     1230                if (0) { 
     1231                        VssRayContainer tmpRays; 
     1232                        int m = 890000; 
     1233 
     1234                        for (int i=m; i < m+20; i++) { 
     1235                                tmpRays.push_back(new VssRay(rays[i].mOrigin, 
     1236                                        rays[i].mOrigin + 100.0f*rays[i].mDirection, 
     1237                                        NULL, 
     1238                                        NULL 
     1239                                        ) 
     1240                                        ); 
     1241 
     1242                        } 
     1243                        ExportRays("sorted_rays.x3d", tmpRays, 200); 
     1244                } 
     1245        } 
     1246 
     1247        SimpleRayContainer::const_iterator rit, rit_end = rays.end(); 
    12451248 
    12461249        SimpleRayContainer rayBucket; 
     
    12981301                                                        pruneInvalidRays); 
    12991302                 
     1303        } 
     1304 
     1305        cout << "here5 " << vssRays.size()<<endl; 
     1306 
     1307        if (1) { 
     1308          VssRayContainer tmpRays; 
     1309          int m = 700000; 
     1310           
     1311          for (int i=m; i < m+20; i++) { 
     1312                  if (vssRays[i]) 
     1313                tmpRays.push_back(vssRays[i]);           
     1314          } 
     1315          ExportRays("sorted_rays2.x3d", tmpRays, 200); 
    13001316        } 
    13011317 
  • GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.vcproj

    r2066 r2069  
    7777                                DisableLanguageExtensions="FALSE" 
    7878                                ForceConformanceInForLoopScope="FALSE" 
    79                                 RuntimeTypeInfo="TRUE" 
     79                                RuntimeTypeInfo="FALSE" 
    8080                                UsePrecompiledHeader="0" 
    8181                                BrowseInformation="1" 
  • GTP/trunk/Lib/Vis/Preprocessing/src/RayCaster.h

    r2063 r2069  
    8282          if (mRays) 
    8383                delete mRays; 
     84          cout << "here4" << endl; 
    8485          mRays = new VssRay[number]; 
    8586          mNumber = number; 
     
    9394                if (mIndex == mNumber) 
    9495                        mIndex = 0; 
    95           return mRays + mIndex++; 
     96          return mRays + mIndex ++; 
    9697        } 
    9798 
     
    121122         
    122123  struct Intersection 
    123         { 
    124                 Intersection(): mObject(NULL), mFaceId(0) 
    125                 {} 
     124  { 
     125          Intersection(): mObject(NULL), mFaceId(0) 
     126          {} 
    126127 
    127                 Intersection(const Vector3 &p, const Vector3 &n, Intersectable *o, const int f): 
    128                         mPoint(p), mNormal(n), mObject(o), mFaceId(f) 
    129                 {} 
     128          Intersection(const Vector3 &p, const Vector3 &n, Intersectable *o, const int f): 
     129          mPoint(p), mNormal(n), mObject(o), mFaceId(f) 
     130          {} 
    130131 
    131                 Intersection(const Vector3 &p): mPoint(p), mObject(NULL), mFaceId(0) 
    132                 {} 
    133                 Vector3 mPoint; 
    134                 Vector3 mNormal; 
    135                 Intersectable *mObject; 
    136                 int mFaceId; 
    137         }; 
     132          Intersection(const Vector3 &p): mPoint(p), mObject(NULL), mFaceId(0) 
     133          {} 
     134          Vector3 mPoint; 
     135          Vector3 mNormal; 
     136          Intersectable *mObject; 
     137          int mFaceId; 
     138  }; 
    138139 
    139140 
    140         int ProcessRay(const SimpleRay &ray, 
    141                                    Intersection &hitA, 
    142                                    Intersection &hitB, 
    143                                    VssRayContainer &vssRays, 
    144                                    const AxisAlignedBox3 &box, 
    145                                    const bool castDoubleRay, 
    146                                    const bool pruneInvalidRays = true); 
     141  int ProcessRay(const SimpleRay &ray, 
     142          Intersection &hitA, 
     143          Intersection &hitB, 
     144          VssRayContainer &vssRays, 
     145          const AxisAlignedBox3 &box, 
     146          const bool castDoubleRay, 
     147          const bool pruneInvalidRays = true); 
    147148 
    148         /** Checks if ray is valid. 
    149                 I.e., the ray is in valid view space. 
    150                 @note: clamps the ray to valid view space. 
    151         */ 
    152         bool ValidateRay(const Vector3 &origin, 
    153                                         const Vector3 &direction, 
    154                                 const AxisAlignedBox3 &box, 
    155                                         Intersection &hit); 
     149  /** Checks if ray is valid. 
     150  I.e., the ray is in valid view space. 
     151  @note: clamps the ray to valid view space. 
     152  */ 
     153  bool ValidateRay(const Vector3 &origin, 
     154          const Vector3 &direction, 
     155          const AxisAlignedBox3 &box, 
     156          Intersection &hit); 
    156157 
    157         bool 
    158                 ClipToViewSpaceBox(const Vector3 &origin, 
    159                                                    const Vector3 &termination, 
    160                                                    Vector3 &clippedOrigin, 
    161                                                    Vector3 &clippedTermination); 
    162          
     158  bool 
     159          ClipToViewSpaceBox(const Vector3 &origin, 
     160          const Vector3 &termination, 
     161          Vector3 &clippedOrigin, 
     162          Vector3 &clippedTermination); 
    163163 
    164164 
    165165 
    166    
     166 
     167 
    167168 
    168169  const Preprocessor &mPreprocessor; 
  • GTP/trunk/Lib/Vis/Preprocessing/src/SamplingStrategy.cpp

    r2066 r2069  
    88#include "Mutation.h" 
    99#include "PerfTimer.h" 
     10 
    1011 
    1112namespace GtpVisibilityPreprocessor { 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp

    r2066 r2069  
    38443844        Exporter *exporter; 
    38453845 
    3846 #if 0 
    3847         // export merged view cells 
    3848         mColorCode = 0; // use random colors 
    3849  
    3850         exporter = Exporter::GetExporter("merged_view_cells.wrl"); 
    3851  
    3852         cout << "exporting view cells after merge ... "; 
    3853  
    3854         if (exporter) 
    3855         { 
    3856                 if (mExportGeometry) 
    3857                 { 
    3858                         exporter->ExportGeometry(objects); 
    3859                 } 
    3860  
    3861                 exporter->SetFilled(); 
    3862                 ExportViewCellsForViz(exporter, NULL, mColorCode, GetClipPlane()); 
    3863  
    3864                 delete exporter; 
    3865         } 
    3866         cout << "finished" << endl; 
    3867 #endif 
    3868  
    38693846        // export merged view cells using pvs color coding 
    38703847        exporter = Exporter::GetExporter("merged_view_cells_pvs.wrl"); 
  • GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.cpp

    r2066 r2069  
    679679                if (r == mRoot) 
    680680                { 
    681                         Debug << "VSP BSP tree construction time spent at root: " 
    682                                   << TimeDiff(startTime, GetTime())*1e-3 << "s" << endl; 
     681                        cout << "VSP BSP tree construction time spent at root: " 
     682                                 << TimeDiff(startTime, GetTime())*1e-3 << "s" << endl; 
    683683                } 
    684684 
Note: See TracChangeset for help on using the changeset viewer.