- Timestamp:
- 05/16/05 21:44:35 (20 years ago)
- Location:
- trunk/VUT/Ogre/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/Ogre/src/OgreOctreeHierarchyInterface.cpp
r94 r101 63 63 { 64 64 AxisAlignedBox *box = &static_cast<Octree *>(node)->mBox; 65 Vector3 mid = ((box->getM inimum() - box->getMaximum()) * 0.5) + box->getMinimum();65 Vector3 mid = ((box->getMaximum() - box->getMinimum()) * 0.5) + box->getMinimum(); 66 66 67 67 return (mCullCamera->getDerivedPosition() - mid).squaredLength(); -
trunk/VUT/Ogre/src/OgreVisibilityTerrainSceneManager.cpp
r100 r101 39 39 //mVisibilityManager->GetCullingManager()->InitFrame(); 40 40 41 // standard scenemanager rendering without hierarchical culling41 // standard terrain scenemanager rendering without hierarchical culling 42 42 if(!mUseVisibilityCulling || mShowVisualization) 43 43 { 44 OctreeSceneManager::_renderVisibleObjects();44 TerrainSceneManager::_renderVisibleObjects(); 45 45 return; 46 46 } … … 127 127 void VisibilityTerrainSceneManager::_updateSceneGraph(Camera* cam) 128 128 { 129 // mHierarchyInterface->setNumSceneNodes((int)mSceneNodes.size());129 // mHierarchyInterface->setNumSceneNodes((int)mSceneNodes.size()); 130 130 mVisibilityManager->GetCullingManager()->SetHierarchyInterface(mHierarchyInterface); 131 131 mHierarchyInterface->SetRenderSystem(mDestRenderSystem); … … 227 227 228 228 d << "Algorithm type: " << mVisibilityManager->GetCullingManagerType() << ", " 229 << "Hierarchy nodes: " << mNumOctreeNodes << ", " << "Traversed nodes: " << mHierarchyInterface->GetNumTraversedNodes() << ", " 229 << "Hierarchy nodes: " << mNumOctreeNodes << ", " 230 << "Traversed nodes: " << mHierarchyInterface->GetNumTraversedNodes() << ", " 230 231 << "Rendered nodes: " << mHierarchyInterface->GetNumRenderedNodes() << ", " 231 232 << "Query culled nodes: " << mVisibilityManager->GetCullingManager()->GetNumQueryCulledNodes() << ", "
Note: See TracChangeset
for help on using the changeset viewer.