Changeset 259 for trunk/VUT/Ogre


Ignore:
Timestamp:
09/06/05 18:18:47 (19 years ago)
Author:
mattausch
Message:

refined measurements

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

Legend:

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

    r254 r259  
    436436        if (key == "NumHierarchyNodes") 
    437437        { 
    438                 * static_cast<unsigned int *>(val) = (unsigned int)mNumOctreeNodes; 
     438                * static_cast<unsigned int *>(val) = (unsigned int)mNumOctants; 
    439439                return true; 
    440440        } 
     
    473473          << "Use optimization: " << StringConverter::toString(mHierarchyInterface->GetTestGeometryForVisibleLeaves()) << ", " 
    474474          << "Algorithm type: " << mVisibilityManager->GetCullingManagerType() << "\n" 
    475           << "Hierarchy nodes: " << mNumOctreeNodes << ", "  
     475          << "Hierarchy nodes: " << mNumOctants << ", "  
    476476          << "Traversed nodes: " << mHierarchyInterface->GetNumTraversedNodes() << ", " 
    477477          << "Rendered nodes: " << mHierarchyInterface->GetNumRenderedNodes() << ", " 
  • trunk/VUT/Ogre/src/OgreVisibilityTerrainSceneManager.cpp

    r254 r259  
    239239void VisibilityTerrainSceneManager::_renderVisibleObjects() 
    240240{ 
     241 
    241242        InitDepthPass();          // create material for depth pass 
    242243        InitItemBufferPass(); // create material for item buffer pass 
     
    282283 
    283284                TerrainSceneManager::_renderVisibleObjects(); 
    284                  
    285285 
    286286#ifdef GTP_VISIBILITY_MODIFIED_OGRE 
     
    293293                addSpecialCaseRenderQueue(RENDER_QUEUE_SKIES_LATE); 
    294294                addSpecialCaseRenderQueue(RENDER_QUEUE_OVERLAY); 
     295         
     296                // exclude this queues from hierarchical rendering 
    295297                setSpecialCaseRenderQueueMode(SceneManager::SCRQM_EXCLUDE); 
    296  
    297298 
    298299                // set all necessary parameters for  
     
    333334                // used for depth pass, transparents, overlay  
    334335                clearSpecialCaseRenderQueues(); 
     336 
    335337                TerrainSceneManager::_renderVisibleObjects(); 
    336338        } 
    337339                 
    338         // set the new render level index  
     340        // HACK: set the new render level index, important to avoid cracks 
     341        // in terrain caused by LOD 
    339342        TerrainRenderable::NextRenderLevelIndex(); 
    340343         
     
    345348        OGRE_DELETE(mRenderQueue); // HACK: should be cleared before... 
    346349        //WriteLog(); // write out stats 
     350 
    347351} 
    348352 
     
    438442        if (key == "NumHierarchyNodes") 
    439443        { 
    440                 * static_cast<unsigned int *>(val) = (unsigned int)mNumOctreeNodes; 
     444                * static_cast<unsigned int *>(val) = (unsigned int)mNumOctants; 
    441445                return true; 
    442446        } 
     
    477481          << "Use optimization: " << StringConverter::toString(mHierarchyInterface->GetTestGeometryForVisibleLeaves()) << ", " 
    478482          << "Algorithm type: " << mVisibilityManager->GetCullingManagerType() << ", " 
    479           << "Hierarchy nodes: " << mNumOctreeNodes << ", "  
     483          << "Hierarchy nodes: " << mNumOctants << ", "  
    480484          << "Traversed nodes: " << mHierarchyInterface->GetNumTraversedNodes() << ", " 
    481485          << "Rendered nodes: " << mHierarchyInterface->GetNumRenderedNodes() << ", " 
Note: See TracChangeset for help on using the changeset viewer.