Changeset 2168


Ignore:
Timestamp:
02/26/07 18:49:46 (17 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk
Files:
20 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TerrainFrameListener.cpp

    r2145 r2168  
    570570                                                                                                bool relativeVisibility,  
    571571                                                                                                bool useItemBuffer) 
    572 { 
     572{Ogre::LogManager::getSingleton().logMessage("here225"); 
    573573        int itemBufferMode = useItemBuffer ? mItemBufferMode : 0; 
    574574         
     
    581581        GtpVisibility::VisibilityManager *visManager = NULL; 
    582582         
    583         if (!mSceneMgr->getOption("VisibilityManager", visManager)) 
     583        if (!mSceneMgr->getOption("VisibilityManager", &visManager)) 
     584        { 
     585                Ogre::LogManager::getSingleton().logMessage("no vismanager found"); 
    584586                return; 
    585  
     587        } 
    586588        GtpVisibility::HierarchyInterface *hierarchyInterface = NULL; 
    587         if (!mSceneMgr->getOption("HierarchyInterface", hierarchyInterface)) 
     589        if (!mSceneMgr->getOption("HierarchyInterface", &hierarchyInterface)) 
     590        { 
     591                Ogre::LogManager::getSingleton().logMessage("no hierarchy interface found"); 
    588592                return; 
    589  
     593        } 
     594Ogre::LogManager::getSingleton().logMessage("here663"); 
    590595        mQueryManager = new OcclusionQueriesQueryManager(hierarchyInterface, 
    591596                        mWindow->getViewport(0), queryModes, itemBufferMode); 
    592  
     597Ogre::LogManager::getSingleton().logMessage("here6699"); 
    593598        //mQueryManager = new PlatformQueryManager(sm->GetHierarchyInterface(), mWindow->getViewport(0), false); 
    594599 
     
    599604        GtpVisibility::MeshInfoContainer visibleGeometry; 
    600605        GtpVisibility::PatchInfoContainer visiblePatches; 
    601  
     606Ogre::LogManager::getSingleton().logMessage("here999"); 
    602607 
    603608        if (fromPoint) 
    604         { 
     609        {Ogre::LogManager::getSingleton().logMessage("her11e5"); 
    605610                mQueryManager-> 
    606611                        ComputeFromPointVisibility(mCamNode->getPosition(), &visibleNodes,  
     
    609614        else 
    610615        { 
     616                Ogre::LogManager::getSingleton().logMessage("here995"); 
    611617                mQueryManager->ComputeCameraVisibility(*mCamera, 
    612618                            &visibleNodes, &visibleGeometry, &visiblePatches, relativeVisibility); 
     
    15201526 
    15211527        case KC_F5: 
    1522                 applyVisibilityQuery(false, mShiftPressed, mUseItemBuffer); 
    1523                 break; 
     1528                { 
     1529                        const bool fromPoint = false; 
     1530                        applyVisibilityQuery(fromPoint, mShiftPressed, mUseItemBuffer); 
     1531                        break; 
     1532                } 
    15241533 
    15251534        case KC_F6: 
    1526                 applyVisibilityQuery(true, mShiftPressed, mUseItemBuffer); 
    1527                 break; 
    1528          
     1535                { 
     1536                        const bool fromPoint = true; 
     1537                        applyVisibilityQuery(fromPoint, mShiftPressed, mUseItemBuffer); 
     1538                        break; 
     1539                }        
    15291540        case KC_F7: 
    15301541                ++ mCurrentObjectType; 
     
    15341545 
    15351546        case KC_F8: 
    1536                 {       // generate new objects 
     1547                {        
     1548                        // generate new objects 
    15371549                        const int objNum = 500; 
    15381550                        mApplication->generateScene(objNum, mCurrentObjectType); 
     
    15501562                break; 
    15511563         
    1552          
     1564        case KC_F12: 
     1565                break; 
    15531566        //KEY_PRESSED(KC_F3, 0.3, writeFrames()); 
    15541567        //KEY_PRESSED(KC_F4, 0.3, loadFrames()); 
  • GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TerrainFrameListener.h

    r2145 r2168  
    373373        bool mStatsOn; 
    374374        bool mLMouseDown; 
    375         bool mRMouseDown;     // True if the mouse buttons are down 
     375        // True if the mouse buttons are down 
     376        bool mRMouseDown;     
    376377        bool mShutdownRequested; 
    377378        bool mDisplayCameraDetails; 
  • GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TestCullingTerrain.vcproj

    r2130 r2168  
    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="FALSE" 
     100                                GenerateDebugInformation="TRUE" 
    101101                                SubSystem="2" 
    102102                                OptimizeReferences="2" 
  • GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TestCullingTerrainApplication.cpp

    r2130 r2168  
    530530        mTerrainContentGenerator = new TerrainContentGenerator(mSceneMgr); 
    531531                 
    532         if (!msShowHillyTerrain) 
    533                 return; 
    534  
    535532        // if no objects in file, we generate new objects 
    536         if (!mTerrainContentGenerator->LoadObjects("objects.out")) 
     533        if (msShowHillyTerrain && !mTerrainContentGenerator->LoadObjects("objects.out")) 
    537534        { 
    538535                // the objects are generated randomly distributed over the terrain 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp

    r2164 r2168  
    10401040        if (key == "VisibilityManager") 
    10411041        { 
    1042                 * static_cast<GtpVisibility::VisibilityManager **>(val) =  
    1043                         (GtpVisibility::VisibilityManager *)mVisibilityManager; 
    1044                 return true; 
    1045         } 
    1046         if (key == "HierarchInterface") 
    1047         { 
    1048                 * static_cast<GtpVisibility::HierarchyInterface **>(val) =  
    1049                         (GtpVisibility::HierarchyInterface *)mHierarchyInterface; 
     1042                //Ogre::LogManager::getSingleton().logMessage("here77"); 
     1043                * static_cast<GtpVisibility::VisibilityManager **>(val) = mVisibilityManager; 
     1044                return true; 
     1045        } 
     1046        if (key == "HierarchyInterface") 
     1047        { 
     1048                * static_cast<GtpVisibility::HierarchyInterface **>(val) = mHierarchyInterface; 
    10501049                return true; 
    10511050        } 
    10521051        if (key == "ShowTerrain") 
    10531052        { 
    1054                 * static_cast<bool *>(val) = (bool *)mShowTerrain; 
     1053                * static_cast<bool *>(val) = mShowTerrain; 
    10551054                return true; 
    10561055        } 
    10571056        if (key == "UseDepthPass") 
    10581057        { 
    1059                 * static_cast<bool *>(val) = (bool *)mUseDepthPass; 
     1058                * static_cast<bool *>(val) = mUseDepthPass; 
    10601059                return true; 
    10611060        } 
    10621061        if (key == "FlushQueue") 
    10631062        { 
    1064                 * static_cast<bool *>(val) = (bool *)mDeleteQueueAfterRendering; 
     1063                * static_cast<bool *>(val) = mDeleteQueueAfterRendering; 
    10651064                return true; 
    10661065        } 
    10671066        if (key == "NormalExecution") 
    10681067        { 
    1069                 * static_cast<bool *>(val) = (bool *)mNormalExecution; 
     1068                * static_cast<bool *>(val) = mNormalExecution; 
    10701069                return true; 
    10711070        } 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionQueriesQueryManager.cpp

    r2066 r2168  
    3232        // disable overlays, reset them later 
    3333        bool overlayEnabled = mViewport->getOverlaysEnabled(); 
    34  
     34Ogre::LogManager::getSingleton().logMessage("here020202"); 
    3535        /////////// 
    3636        //-- render scene with item buffer (i.e., objects with their id as color codes) 
     
    209209                                   GtpVisibility::PatchInfoContainer *visiblePatches, 
    210210                               bool relativeVisibility) 
    211 { 
     211{Ogre::LogManager::getSingleton().logMessage("here5"); 
    212212        PlatformQueryManager::ComputeFromPointVisibility(point, visibleNodes,  
    213213                visibleGeometry, visiblePatches, relativeVisibility); 
     
    216216        // (duplicates occur if an object is on the edge of the viewport) 
    217217        RemoveDuplicateNodes(visibleNodes); 
    218          
     218        Ogre::LogManager::getSingleton().logMessage("here6"); 
    219219        if (mItemBufferMode != GEOMETRY_VISIBILITY) 
    220220        { 
    221221                RemoveDuplicateGeometry(visibleGeometry); 
    222222        } 
    223          
     223        Ogre::LogManager::getSingleton().logMessage("here7"); 
    224224        if (mItemBufferMode != PATCH_VISIBILITY) 
    225225        { 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/Plugin_VisibilitySceneManager.vcproj

    r2130 r2168  
    112112                                AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\OgreMain\lib\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib&quot;;&quot;$(OGRE_PATH)\Dependencies\lib\$(ConfigurationName)&quot;;&quot;..\..\..\Preprocessing\lib\$(ConfigurationName)&quot;;..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;..\..\..\Preprocessing\src\GL;..\..\..\..\..\..\..\NonGTP\Zlib\lib;&quot;..\..\lib\$(ConfigurationName)&quot;;&quot;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\$(ConfigurationName)&quot;;&quot;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\ObjReader\lib\$(ConfigurationName)&quot;" 
    113113                                ModuleDefinitionFile="..\misc\OgreVisibilitySceneManager.def" 
    114                                 GenerateDebugInformation="FALSE" 
     114                                GenerateDebugInformation="TRUE" 
    115115                                SubSystem="2" 
    116116                                OptimizeReferences="2" 
  • GTP/trunk/Lib/Vis/Preprocessing/include/Containers.h

    r863 r2168  
    33 
    44#include <vector> 
    5 using namespace std; 
     5//using namespace std; 
    66 
    77namespace GtpVisibilityPreprocessor { 
  • GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.vcproj

    r2164 r2168  
    221221                                OptimizeForProcessor="3" 
    222222                                OptimizeForWindowsApplication="TRUE" 
    223                                 AdditionalIncludeDirectories="..\src;..\..\..\..\..\..\NonGTP\Devil\include;..\..\..\..\..\..\NonGTP\Zlib\include;..\..\..\..\..\..\NonGTP\Xerces;..\..\..\..\..\..\NonGTP\Boost;..\MultiLevelRayTracing;&quot;$(QTDIR)\include\QtCore&quot;;&quot;$(QTDIR)\include\QtGui&quot;;&quot;$(QTDIR)\include&quot;;&quot;$(QTDIR)\include\QtOpenGl&quot;;&quot;$(CG_INC_PATH)&quot;;Timer;..\src\ootl\src\;..\src\ootl\src\cpp;..\src\ootl\src\include\ootl\sandbox;..\src\ootl\src;..\src\ootl\src\include\ootl;..\src\sparsehash\src\google\sparsehash;..\src\sparsehash\src\windows;..\src\sparsehash\src\google;..\src\sparsehash\src;..\src\ootl\" 
     223                                AdditionalIncludeDirectories="..\src;..\..\..\..\..\..\NonGTP\Devil\include;..\..\..\..\..\..\NonGTP\Zlib\include;..\..\..\..\..\..\NonGTP\Xerces;..\..\..\..\..\..\NonGTP\Boost;..\MultiLevelRayTracing;&quot;$(QTDIR)\include\QtCore&quot;;&quot;$(QTDIR)\include\QtGui&quot;;&quot;$(QTDIR)\include&quot;;&quot;$(QTDIR)\include\QtOpenGl&quot;;&quot;$(CG_INC_PATH)&quot;;Timer;..\src\ootl\src\;..\src\ootl\src\cpp;..\src\ootl\src\include\ootl\sandbox;..\src\ootl\src;..\src\ootl\src\include\ootl;..\src\sparsehash\src\google\sparsehash;..\src\sparsehash\src\windows;..\src\sparsehash\src\google;..\src\sparsehash\src;..\src\ootl\;..\src\ootl\src\cpp\include\;..\src\ootl\src\cpp\include\ootl\mswin" 
    224224                                PreprocessorDefinitions="WIN32;NDEBUG;_LIB;GTP_INTERNAL;USE_QT;USE_HASH_PVS" 
    225225                                ExceptionHandling="TRUE" 
  • GTP/trunk/Lib/Vis/Preprocessing/src/PvsBase.h

    r2117 r2168  
    55#include "Containers.h" 
    66 
    7 using namespace std; 
     7//using namespace std; 
    88 
    99namespace GtpVisibilityPreprocessor { 
  • GTP/trunk/Lib/Vis/Preprocessing/src/SamplingPreprocessor.h

    r1966 r2168  
    33 
    44#include <fstream> 
    5 using namespace std; 
     5//using namespace std; 
    66 
    77#include "Preprocessor.h" 
  • GTP/trunk/Lib/Vis/Preprocessing/src/SamplingStrategy.h

    r2076 r2168  
    33 
    44#include <vector> 
    5 using namespace std; 
     5//using namespace std; 
    66 
    77#include "common.h" 
  • GTP/trunk/Lib/Vis/Preprocessing/src/SceneGraph.h

    r1958 r2168  
    33 
    44#include <string> 
    5 using namespace std; 
     5//using namespace std; 
    66 
    77#include "Containers.h" 
  • GTP/trunk/Lib/Vis/Preprocessing/src/SubdivisionCandidate.h

    r1895 r2168  
    55#include "FlexibleHeap.h" 
    66 
    7 using namespace std; 
     7//using namespace std; 
    88 
    99namespace GtpVisibilityPreprocessor { 
  • GTP/trunk/Lib/Vis/Preprocessing/src/TraversalTree.h

    r2149 r2168  
    33 
    44#include <functional> 
    5 using namespace std; 
     5//using namespace std; 
    66 
    77#include "Containers.h" 
  • GTP/trunk/Lib/Vis/Preprocessing/src/Vector3.h

    r1958 r2168  
    33 
    44#include <iostream> 
    5 using namespace std; 
     5//using namespace std; 
    66#include <math.h> 
    77#include "common.h" 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp

    r2164 r2168  
    22052205        // one mesh per view cell 
    22062206        Mesh *mesh = MeshManager::GetSingleton()->CreateResource(); 
    2207  
     2207//ootl::hash_map<int, Intersectable *> hmap(-2, NULL); 
    22082208        //////////// 
    22092209        //-- construct prism 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.h

    r2124 r2168  
    77#include "Containers.h" 
    88#include "ViewCell.h" 
    9  
     9//#include "ootl_map.hpp" 
    1010 
    1111namespace GtpVisibilityPreprocessor { 
  • GTP/trunk/Lib/Vis/Preprocessing/src/VssPreprocessor.h

    r2063 r2168  
    33 
    44#include <fstream> 
    5 using namespace std; 
     5//using namespace std; 
    66 
    77#include "Preprocessor.h" 
  • GTP/trunk/Lib/Vis/Preprocessing/src/VssRay.h

    r2116 r2168  
    77#include "Containers.h" 
    88 
    9 using namespace std; 
     9//using namespace std; 
    1010 
    1111 
Note: See TracChangeset for help on using the changeset viewer.