Changeset 101 for trunk


Ignore:
Timestamp:
05/16/05 21:44:35 (20 years ago)
Author:
mattausch
Message:

corrected error when calculating distance for octree nodes

Location:
trunk/VUT/Ogre/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/Ogre/src/OgreOctreeHierarchyInterface.cpp

    r94 r101  
    6363{ 
    6464        AxisAlignedBox *box = &static_cast<Octree *>(node)->mBox; 
    65         Vector3 mid = ((box->getMinimum() - box->getMaximum()) * 0.5) + box->getMinimum(); 
     65        Vector3 mid = ((box->getMaximum() - box->getMinimum()) * 0.5) + box->getMinimum(); 
    6666 
    6767        return (mCullCamera->getDerivedPosition() - mid).squaredLength(); 
  • trunk/VUT/Ogre/src/OgreVisibilityTerrainSceneManager.cpp

    r100 r101  
    3939        //mVisibilityManager->GetCullingManager()->InitFrame(); 
    4040         
    41         // standard scenemanager rendering without hierarchical culling 
     41        // standard terrain scenemanager rendering without hierarchical culling 
    4242        if(!mUseVisibilityCulling || mShowVisualization) 
    4343        {        
    44                 OctreeSceneManager::_renderVisibleObjects(); 
     44                TerrainSceneManager::_renderVisibleObjects(); 
    4545                return; 
    4646        }  
     
    127127void VisibilityTerrainSceneManager::_updateSceneGraph(Camera* cam) 
    128128{ 
    129         //mHierarchyInterface->setNumSceneNodes((int)mSceneNodes.size()); 
     129        // mHierarchyInterface->setNumSceneNodes((int)mSceneNodes.size()); 
    130130        mVisibilityManager->GetCullingManager()->SetHierarchyInterface(mHierarchyInterface); 
    131131        mHierarchyInterface->SetRenderSystem(mDestRenderSystem); 
     
    227227 
    228228        d << "Algorithm type: " << mVisibilityManager->GetCullingManagerType() << ", " 
    229           << "Hierarchy nodes: " << mNumOctreeNodes << ", " << "Traversed nodes: " << mHierarchyInterface->GetNumTraversedNodes() << ", " 
     229          << "Hierarchy nodes: " << mNumOctreeNodes << ", "  
     230          << "Traversed nodes: " << mHierarchyInterface->GetNumTraversedNodes() << ", " 
    230231          << "Rendered nodes: " << mHierarchyInterface->GetNumRenderedNodes() << ", " 
    231232          << "Query culled nodes: " << mVisibilityManager->GetCullingManager()->GetNumQueryCulledNodes() << ", " 
Note: See TracChangeset for help on using the changeset viewer.