Changeset 1264 for GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src
- Timestamp:
- 08/23/06 19:19:26 (18 years ago)
- 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 685 685 else //-- the hierarchical culling algorithm 686 686 { 687 // this is also called in TerrainSceneManager: really 688 // necessary? 687 // this is also called in TerrainSceneManager: really necessary? 689 688 //mDestRenderSystem -> setLightingEnabled(false); 690 689 … … 697 696 698 697 //-- hierarchical culling 698 699 699 // the objects of different layers (e.g., background, scene, 700 700 // overlay) must be identified and rendered one after another … … 781 781 } 782 782 783 //void KdTreeSceneManager::_renderNodes(const KdRenderableList& nodelist, Camera * cam, 784 // bool onlyShadowCasters, int leavePassesInQueue) 783 785 784 void KdTreeSceneManager::_renderNode(KdTree::NodePtr node, Camera * cam, 786 785 bool onlyShadowCasters, int leavePassesInQueue) -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp
r1251 r1264 40 40 mIsDepthPassPhase(false), 41 41 mUseItemBuffer(false), 42 //mUseItemBuffer(true),43 42 mIsItemBufferPhase(false), 44 43 mCurrentEntityId(1), … … 46 45 mSkipTransparents(false), 47 46 mRenderTransparentsForItemBuffer(true), 48 //mExecuteVertexProgramForAllPasses(true),49 47 mExecuteVertexProgramForAllPasses(false), 50 48 mIsHierarchicalCulling(false), … … 56 54 mDeleteQueueAfterRendering(true) 57 55 { 56 Ogre::LogManager::getSingleton().logMessage("creating occlusion culling scene manager"); 57 58 58 mHierarchyInterface = new OctreeHierarchyInterface(this, mDestRenderSystem); 59 59 … … 321 321 322 322 323 // -- delete lists stored for visualization323 // lists only used for visualization 324 324 mVisible.clear(); 325 325 mBoxes.clear(); … … 331 331 { 332 332 OctreeSceneManager::_renderVisibleObjects(); 333 334 333 return; 335 334 } … … 457 456 OGRE_DELETE(mRenderQueue); // HACK: should rather only be cleared ... 458 457 459 if ( 0) WriteLog(); // write out stats458 if (1) WriteLog(); // write out stats 460 459 } 461 460 -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreSceneContentGenerator.cpp
r897 r1264 65 65 createChildSceneNode(String(name) + "Node", position); 66 66 67 //std::stringstream d; d << "new node: " << name << "Node";68 //Ogre::LogManager::getSingleton().logMessage(d.str());69 70 67 //ent->setCastShadows(false); 71 68 node->attachObject(ent); -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreVisibilitySceneManagerDll.cpp
r1165 r1264 24 24 */ 25 25 26 //#include <OgreVisibilityTerrainSceneManager.h>27 26 #include <OgreOcclusionCullingSceneManager.h> 28 27 #include <OgreKdTreeSceneManager.h> 29 30 //#include <OgreHeightmapTerrainPageSource.h>31 28 #include <OgreRoot.h> 32 29 #include <OgreLogManager.h> … … 40 37 namespace Ogre { 41 38 42 //VisibilityTerrainSceneManagerFactory *visibilityTerrainPlugin; 39 43 40 OcclusionCullingSceneManagerFactory *occlusionCullingPlugin; 44 41 KdTreeSceneManagerFactory *kdTreeFactory; … … 52 49 53 50 // Create new scene manager 54 //visibilityTerrainPlugin = new VisibilityTerrainSceneManagerFactory(visManager);55 51 occlusionCullingPlugin = new OcclusionCullingSceneManagerFactory(visManager); 56 52 kdTreeFactory = new KdTreeSceneManagerFactory(visManager); 53 57 54 // Construct listener manager singleton 58 55 new TerrainPageSourceListenerManager(); 59 56 60 57 // Register 61 //Root::getSingleton().addSceneManagerFactory(visibilityTerrainPlugin);62 58 Root::getSingleton().addSceneManagerFactory(occlusionCullingPlugin); 63 59 Root::getSingleton().addSceneManagerFactory(kdTreeFactory); … … 66 62 extern "C" void __declspec(dllexport) dllShutdownPlugin() 67 63 { 68 //Root::getSingleton().removeSceneManagerFactory(visibilityTerrainPlugin);69 64 Root::getSingleton().removeSceneManagerFactory(occlusionCullingPlugin); 70 65 Root::getSingleton().removeSceneManagerFactory(kdTreeFactory); 66 71 67 // destroy listener manager 72 68 delete TerrainPageSourceListenerManager::getSingletonPtr(); … … 77 73 //delete heightmapTerrainPageSource; 78 74 // BUG: crashes on delete!!!! FIX this 79 80 //delete visibilityTerrainPlugin;81 75 delete occlusionCullingPlugin; 82 76 delete kdTreeFactory;
Note: See TracChangeset
for help on using the changeset viewer.