Ignore:
Timestamp:
08/23/06 19:19:26 (18 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreKdTreeSceneManager.cpp

    r1258 r1264  
    685685                else //-- the hierarchical culling algorithm 
    686686                { 
    687                         // this is also called in TerrainSceneManager: really 
    688                         // necessary? 
     687                        // this is also called in TerrainSceneManager: really necessary? 
    689688                        //mDestRenderSystem -> setLightingEnabled(false); 
    690689 
     
    697696 
    698697                        //-- hierarchical culling 
     698 
    699699                        // the objects of different layers (e.g., background, scene,  
    700700                        // overlay) must be identified and rendered one after another 
     
    781781} 
    782782 
    783 //void KdTreeSceneManager::_renderNodes(const KdRenderableList& nodelist, Camera * cam,  
    784 //      bool onlyShadowCasters, int leavePassesInQueue) 
     783 
    785784void KdTreeSceneManager::_renderNode(KdTree::NodePtr node, Camera * cam,  
    786785                                                                         bool onlyShadowCasters, int leavePassesInQueue) 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp

    r1251 r1264  
    4040mIsDepthPassPhase(false), 
    4141mUseItemBuffer(false), 
    42 //mUseItemBuffer(true), 
    4342mIsItemBufferPhase(false), 
    4443mCurrentEntityId(1), 
     
    4645mSkipTransparents(false), 
    4746mRenderTransparentsForItemBuffer(true), 
    48 //mExecuteVertexProgramForAllPasses(true), 
    4947mExecuteVertexProgramForAllPasses(false), 
    5048mIsHierarchicalCulling(false), 
     
    5654mDeleteQueueAfterRendering(true) 
    5755{ 
     56        Ogre::LogManager::getSingleton().logMessage("creating occlusion culling scene manager"); 
     57 
    5858        mHierarchyInterface = new OctreeHierarchyInterface(this, mDestRenderSystem); 
    5959         
     
    321321         
    322322         
    323         // -- delete lists stored for visualization 
     323        // lists only used for visualization 
    324324        mVisible.clear(); 
    325325        mBoxes.clear(); 
     
    331331        { 
    332332                OctreeSceneManager::_renderVisibleObjects(); 
    333  
    334333                return; 
    335334        } 
     
    457456                OGRE_DELETE(mRenderQueue); // HACK: should rather only be cleared ... 
    458457 
    459         if (0) WriteLog(); // write out stats 
     458        if (1) WriteLog(); // write out stats 
    460459} 
    461460 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreSceneContentGenerator.cpp

    r897 r1264  
    6565                createChildSceneNode(String(name) + "Node", position); 
    6666 
    67         //std::stringstream d; d << "new node: " << name << "Node"; 
    68         //Ogre::LogManager::getSingleton().logMessage(d.str()); 
    69  
    7067        //ent->setCastShadows(false); 
    7168        node->attachObject(ent); 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreVisibilitySceneManagerDll.cpp

    r1165 r1264  
    2424*/ 
    2525 
    26 //#include <OgreVisibilityTerrainSceneManager.h> 
    2726#include <OgreOcclusionCullingSceneManager.h> 
    2827#include <OgreKdTreeSceneManager.h> 
    29  
    30 //#include <OgreHeightmapTerrainPageSource.h> 
    3128#include <OgreRoot.h> 
    3229#include <OgreLogManager.h> 
     
    4037namespace Ogre { 
    4138 
    42 //VisibilityTerrainSceneManagerFactory *visibilityTerrainPlugin; 
     39 
    4340OcclusionCullingSceneManagerFactory *occlusionCullingPlugin; 
    4441KdTreeSceneManagerFactory *kdTreeFactory; 
     
    5249 
    5350        // Create new scene manager 
    54         //visibilityTerrainPlugin = new VisibilityTerrainSceneManagerFactory(visManager); 
    5551        occlusionCullingPlugin = new OcclusionCullingSceneManagerFactory(visManager); 
    5652        kdTreeFactory = new KdTreeSceneManagerFactory(visManager); 
     53 
    5754        // Construct listener manager singleton 
    5855        new TerrainPageSourceListenerManager(); 
    5956 
    6057        // Register 
    61         //Root::getSingleton().addSceneManagerFactory(visibilityTerrainPlugin); 
    6258        Root::getSingleton().addSceneManagerFactory(occlusionCullingPlugin); 
    6359        Root::getSingleton().addSceneManagerFactory(kdTreeFactory); 
     
    6662extern "C" void __declspec(dllexport) dllShutdownPlugin() 
    6763{ 
    68         //Root::getSingleton().removeSceneManagerFactory(visibilityTerrainPlugin); 
    6964        Root::getSingleton().removeSceneManagerFactory(occlusionCullingPlugin); 
    7065        Root::getSingleton().removeSceneManagerFactory(kdTreeFactory); 
     66 
    7167        // destroy listener manager 
    7268        delete TerrainPageSourceListenerManager::getSingletonPtr(); 
     
    7773        //delete heightmapTerrainPageSource; 
    7874        // BUG: crashes on delete!!!! FIX this  
    79  
    80         //delete visibilityTerrainPlugin; 
    8175        delete occlusionCullingPlugin; 
    8276        delete kdTreeFactory; 
Note: See TracChangeset for help on using the changeset viewer.